home *** CD-ROM | disk | FTP | other *** search
- #include "../../../lib/std.mi"
-
- Global Text txt;
- Global ToggleButton tgbutton;
- Global CfgGroup cgroup;
- Global Button butt;
-
- System.onScriptLoaded() {
- cgroup = getScriptGroup();
- txt = cgroup.getObject("cfg.txt");
- tgbutton = cgroup.getObject("cfg.toggle");
- butt = cgroup.getObject("cfg.toggle2");
- }
-
- tgbutton.onToggle(int on) {
- cgroup.cfgSetInt(on);
- }
-
- cgroup.onCfgChanged() {
- txt.setText(cfgGetName());
- tgbutton.setActivated(cfgGetInt());
- }
-
- butt.onLeftClick() {
- tgbutton.leftClick();
- }
-