Try to check this link http://blog.aehmlo.com/2012/08/03/new-tweak-readme/
Aehmlo Lxaitn explains in details how to make a simple tweak and add a settings to enable/disable it.
It works for me.
Hope it's what you need.
You may also want to install "Theos Tutorials" from Cydia. It's author is ReverseEffect.
Anothe tutorial from http://shahiddev.blogspot.com/2011/11/mobilesubstrate-tweak-tutorial-with.html
go to "Settings"
What about if the user would like to disable our tweak? We can give him the
ability to enable or disable it from a preference bundle.
(We could use just a plist for something simple like this, but we’ll use a
preference bundle project in order to try it out). I’m going to skip a few
steps with this, since you can figure them out yourself, looking at the
source code you can download below.
- Launch the new instance creator, and initiate a “PreferenceBundle” project.
- Add that project as a “subproject” in your main tweak project, by
adding the SUBPROJECTS = tutorialsettings key in the Makefile.
- The structure of the preference bundle is given by a plist containing
a collection os PSSpecifiers, used by the standard Preferences app.
- Create a switch controlling the “Enabled” key.
- For its “defaults” key set it to the package id you used before
(com.filippobiga.tutorial). This means it’ll write to a plist with
that name in the Preferences folder of the user.
- Now you need to modify the code in the Tweak.xm to read the user’s
Settings and determine if it should flash the screen or not.
That’s it!