Mercurial > projects > mde
comparison mde/mde.d @ 103:42e241e7be3e
ContentList content type; getting content items/lists from Options generically via content.Items, and a new addContent widget function. Several improvements to generic handling of content. New button-with-text widget.
Some tidy-up.
Some name changes, to increase uniformity.
Bug-fix: floating widgets of fixed size could previously be made larger than intended from config dimdata.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Tue, 25 Nov 2008 18:01:44 +0000 |
parents | ba035eba07b4 |
children | 20f7d813bb0f |
comparison
equal
deleted
inserted
replaced
102:ba035eba07b4 | 103:42e241e7be3e |
---|---|
1 /* LICENSE BLOCK | 1 /* LICENSE BLOCK |
2 Part of mde: a Modular D game-oriented Engine | 2 Part of mde: a Modular D game-oriented Engine |
3 Copyright © 2007-2008 Diggory Hardy | 3 Copyright © 2007-2008 Diggory Hardy |
4 | 4 |
5 This program is free software: you can redistribute it and/or modify it under the terms | 5 This program is free software: you can redistribute it and/or modify it under the terms |
6 of the GNU General Public License as published by the Free Software Foundation, either | 6 of the GNU General Public License as published by the Free Software Foundation, either |
79 * be called at the end to optimise. */ | 79 * be called at the end to optimise. */ |
80 mainSchedule.add (SCHEDULE.DRAW, &Screen.draw).request = true; // Draw, per event and first frame only. | 80 mainSchedule.add (SCHEDULE.DRAW, &Screen.draw).request = true; // Draw, per event and first frame only. |
81 mainSchedule.add (mainSchedule.getNewID, &mde.events.pollEvents).frame = true; | 81 mainSchedule.add (mainSchedule.getNewID, &mde.events.pollEvents).frame = true; |
82 //END Main loop setup | 82 //END Main loop setup |
83 | 83 |
84 double pollInterval = miscOpts.pollInterval(); | 84 double pollInterval = miscOpts.pollInterval(); |
85 while (run) { | 85 while (run) { |
86 mainSchedule.execute (Clock.now()); | 86 mainSchedule.execute (Clock.now()); |
87 | 87 |
88 Thread.sleep (pollInterval); // sleep this many seconds | 88 Thread.sleep (pollInterval); // sleep this many seconds |
89 } | 89 } |