home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 March / Chip_2002-03_cd1.bin / sharewar / winamp / 300b / skins / assmosis.wal / Scripts / cfgstring.m < prev    next >
Text File  |  2001-11-07  |  395b  |  21 lines

  1. #include "../../../lib/std.mi"
  2.  
  3. Global Text txt;
  4. Global Edit editor;
  5. Global CfgGroup cgroup;
  6.  
  7. System.onScriptLoaded() {
  8.   cgroup = getScriptGroup();
  9.   txt = cgroup.getObject("cfg.txt");
  10.   editor = cgroup.getObject("cfg.edit");
  11. }
  12.  
  13. editor.onEnter() {
  14.   cgroup.cfgSetString(getText());
  15. }
  16.  
  17. cgroup.onCfgChanged() {
  18.   txt.setText(cfgGetName());
  19.   editor.setText(cfgGetString());
  20. }
  21.