summary refs log tree commit diff stats
path: root/build.xml
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-03-05 20:54:17 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-03-05 20:54:17 -0500
commita0f6cd976b8661eb608794ae169185b45b1b0a88 (patch)
treec737e11d81e4ad719ff6a7c17c38eb360add50e3 /build.xml
parent82e91f3b85917f456214c121daa97ba65c7cce2a (diff)
downloadfourpuzzle-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 'build.xml')
0 files changed, 0 insertions, 0 deletions