Mercurial > projects > mde
comparison mde/gui/WidgetData.d @ 76:65780e0e48e6
Re-enabled click event passing in the gui to make ButtonWidget work.
Bugfix (pass void* not class reference).
Change to allow compilation with dmd 1.027 (don't use DefaultData's Arg!() template).
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 28 Jul 2008 18:49:18 +0100 |
parents | 25cb7420dc91 |
children | 3dfd934100f7 |
comparison
equal
deleted
inserted
replaced
75:25cb7420dc91 | 76:65780e0e48e6 |
---|---|
90 try { | 90 try { |
91 reader = confDir.makeMTReader (fileName, PRIORITY.HIGH_LOW, null, true); | 91 reader = confDir.makeMTReader (fileName, PRIORITY.HIGH_LOW, null, true); |
92 | 92 |
93 // Read from the HEADER: | 93 // Read from the HEADER: |
94 // Get the renderer | 94 // Get the renderer |
95 char[]* p = "Renderer" in reader.dataset.header.Arg!(char[]); | 95 char[]* p = "Renderer" in reader.dataset.header._charA; |
96 if (p is null || *p is null) { | 96 if (p is null || *p is null) { |
97 logger.warn ("No renderer specified: using \"Simple\""); | 97 logger.warn ("No renderer specified: using \"Simple\""); |
98 rendName = "Simple"; | 98 rendName = "Simple"; |
99 } | 99 } |
100 else | 100 else |
101 rendName = *p; | 101 rendName = *p; |
102 | 102 |
103 // Get which section to use | 103 // Get which section to use |
104 p = "Design" in reader.dataset.header.Arg!(char[]); | 104 p = "Design" in reader.dataset.header._charA; |
105 if (p is null || *p is null) { | 105 if (p is null || *p is null) { |
106 logger.warn ("No gui design specified: trying \"Default\""); | 106 logger.warn ("No gui design specified: trying \"Default\""); |
107 defaultDesign = "Default"; | 107 defaultDesign = "Default"; |
108 } | 108 } |
109 else | 109 else |