diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-03-05 20:54:17 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-03-05 20:54:17 -0500 |
commit | a0f6cd976b8661eb608794ae169185b45b1b0a88 (patch) | |
tree | c737e11d81e4ad719ff6a7c17c38eb360add50e3 /lib/junit_4 | |
parent | 82e91f3b85917f456214c121daa97ba65c7cce2a (diff) | |
download | fourpuzzle-a0f6cd976b8661eb608794ae169185b45b1b0a88.tar.gz fourpuzzle-a0f6cd976b8661eb608794ae169185b45b1b0a88.tar.bz2 fourpuzzle-a0f6cd976b8661eb608794ae169185b45b1b0a88.zip |
Engine: Created Message Escapes
Rewrote MessageWindow to render text through another class called TextRenderer, which takes settings and parses the text with its message escapes. The text-color-setting escape works perfectly but the pause escape doesn't. It works pretty well, except for some reason, if the escape is directly next to some text on the left, it won't be parsed. Also, the pause escape was implemented as \P rather than \| because | is a special character .in regular expressions. The variable-displaying escape was not added for two reasons: First of all, a dynamically introduced variable would mess up the generated layout and the text would not wrap correctly. Secondly, a much easier/better way of including a variable in a message than message escapes exists: Using string concatenation when writing the DisplayMessage() call. As FourPuzzle is a programming library, it is much more powerful than RM2K and clients need not resort to strange hacks such as message escapes to include variables in messages. Clients can include whatever dynamic data they wish in messages, rather than some predefined stuff RM2K provides. A small bug was discovered in PauseTimer that made it wait for it's underlying Interval to elapse before it could elapse, even if it had zero ticks remaining. This has been fixed. Closes #16
Diffstat (limited to 'lib/junit_4')
0 files changed, 0 insertions, 0 deletions