comparison examples/guiDemo.d @ 128:41582439a42b

Added support for dynamic EnumContent loading and saving, with translation loading. WMScreen.init removed; code moved to this() since class is now created by main() instead of a static this(). Fix for SwitchWidget not passing events. Still some resizing bugs evident in SwitchWidget :-(
author Diggory Hardy <diggory.hardy@gmail.com>
date Wed, 14 Jan 2009 20:24:14 +0000
parents 5b37d0400732
children 264028f4115a
comparison
equal deleted inserted replaced
127:3328c6fb77ca 128:41582439a42b
43 } 43 }
44 44
45 // Set up the gui 45 // Set up the gui
46 scope WMScreen gui = new WMScreen ("guiDemo"); 46 scope WMScreen gui = new WMScreen ("guiDemo");
47 StageState guiLoad () { // init func 47 StageState guiLoad () { // init func
48 gui.init;
49 gui.loadDesign(); 48 gui.loadDesign();
50 return StageState.ACTIVE; 49 return StageState.ACTIVE;
51 } 50 }
52 StageState guiSave () { 51 StageState guiSave () {
53 gui.save; 52 gui.save;