diff options
author | 2008-08-06 05:24:31 +0000 | |
---|---|---|
committer | 2008-08-06 05:24:31 +0000 | |
commit | 4a36b515ed656ccdaffe01af527524503d2d7bf3 (patch) | |
tree | aff4312b387c2f72fda3becc2a58b4bad4299ad4 /src/emu/ui.h | |
parent | 2d165fe1c3e7d1a543b35673359214d2d44b77a2 (diff) |
Changes to the cheat.xml format:
- new tag <comment> (within <cheat>) is read and preserved
when saved
- removed variable attribute from <parameter>; it is now
assumed to be 'param'
- added default attribute for <parameter>
Added new variable 'frame' accessible from cheat scripts. This
can be used in the conditional to prevent execution on every
frame, or for other effects (like displaying temporary messages).
Added new variable 'argindex' which is the index when processing
an <argument> with a count attribute greater than 1. Can be used
in expressions like:
<argument count="3">main.pb@(1000+argindex)</argument>
Reinstated the cheat menu. It now displays all loaded cheats and
allows for them to be activated. All known cheat behaviors should
be working now.
Diffstat (limited to 'src/emu/ui.h')
-rw-r--r-- | src/emu/ui.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/ui.h b/src/emu/ui.h index a512573ad62..18410b2de9e 100644 --- a/src/emu/ui.h +++ b/src/emu/ui.h @@ -24,7 +24,8 @@ ***************************************************************************/ /* preferred font height; use ui_get_line_height() to get actual height */ -#define UI_TARGET_FONT_HEIGHT (1.0f / 25.0f) +#define UI_TARGET_FONT_ROWS (25) +#define UI_TARGET_FONT_HEIGHT (1.0f / (float)UI_TARGET_FONT_ROWS) #define UI_MAX_FONT_HEIGHT (1.0f / 15.0f) /* width of lines drawn in the UI */ |