Mercurial > projects > mde
comparison mde/content/miscContent.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 | d3b2cefd46c9 |
children | ad91de8867a0 |
comparison
equal
deleted
inserted
replaced
127:3328c6fb77ca | 128:41582439a42b |
---|---|
55 class ErrorContent : Content | 55 class ErrorContent : Content |
56 { | 56 { |
57 this (char[] name, char[] msg) { | 57 this (char[] name, char[] msg) { |
58 super (name); | 58 super (name); |
59 this.msg = msg; | 59 this.msg = msg; |
60 logger.error (name ~ ": " ~ msg); | |
60 } | 61 } |
61 | 62 |
62 override char[] toString (uint i) { | 63 override char[] toString (uint i) { |
63 return i == 0 ? msg | 64 return i == 0 ? msg |
64 : i == 1 ? name_ | 65 : i == 1 ? name_ |