Mercurial > projects > mde
comparison mde/gui/renderer/SimpleRenderer.d @ 111:1655693702fc
Resolved ticket #4, allowing widgets to reload strings and recalculate sizes mid-run.
Removed prefinalize and finalize and added setup as the new second initialization phase, which can be re-run.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 06 Dec 2008 17:41:42 +0000 |
parents | 2a1428ec5344 |
children | b16a534f5302 |
comparison
equal
deleted
inserted
replaced
110:6acd96f8685f | 111:1655693702fc |
---|---|
146 else | 146 else |
147 glColor3f (c, 0f, 0f); | 147 glColor3f (c, 0f, 0f); |
148 glRecti (x+2,y+14, x+14,y+2); | 148 glRecti (x+2,y+14, x+14,y+2); |
149 } | 149 } |
150 | 150 |
151 TextAdapter getAdapter (char[] text, int col) { | 151 TextAdapter getAdapter (int col) { |
152 TextAdapter a; | 152 TextAdapter a; |
153 a.font = defaultFont; | 153 a.font = defaultFont; |
154 a.content = text; | |
155 a.colour_ = Colour (col); | 154 a.colour_ = Colour (col); |
156 a.index_ = size_t.max; | 155 a.index_ = size_t.max; |
157 return a; | 156 return a; |
158 } | 157 } |
159 | 158 |