home *** CD-ROM | disk | FTP | other *** search
- #include "../../../lib/std.mi"
-
- Global Text txt;
- Global Edit editor;
- Global CfgGroup cgroup;
-
- System.onScriptLoaded() {
- cgroup = getScriptGroup();
- txt = cgroup.getObject("cfg.txt");
- editor = cgroup.getObject("cfg.edit");
- editor.setAutoEnter(true);
- }
-
- editor.onEnter() {
- cgroup.cfgSetInt(stringToInteger(getText()));
- }
-
- cgroup.onCfgChanged() {
- txt.setText(cfgGetName());
- editor.setText(integerToString(cfgGetInt()));
- }
-