diff options
author | Tim Angus <tim@ngus.net> | 2007-11-08 00:05:14 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2007-11-08 00:05:14 +0000 |
commit | 74c8d33a2b830a47c31272bcf16cbbfd404ce0e8 (patch) | |
tree | e57fc261700a619fbf9a09a589706a5165653221 /ui/ingame.menu | |
parent | c6a9027b7cf0d35401cae346b67ca95c5f55b4a1 (diff) |
* Merge and move text paint functions into ui_shared.c
* Add aspectBias to indicate alignment on non-4:3 video modes
* Add "reset <item>" script command to reset an item
* Compensate for aspect ratio in lots and lots and lots of places
* Release edit field focus when tabbing away
* Fix infinite loop bug in text wrapping code when rect is very narrow
* Mung .menu scripts to line things up correctly on non-4:3 ratios
Diffstat (limited to 'ui/ingame.menu')
-rw-r--r-- | ui/ingame.menu | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/ingame.menu b/ui/ingame.menu index 07b969e6..90b4cf12 100644 --- a/ui/ingame.menu +++ b/ui/ingame.menu @@ -39,6 +39,7 @@ focusColor 1 .75 0 1 disableColor .5 .5 .5 1 backColor 0 0 0 1 + aspectBias ALIGN_LEFT onEsc { @@ -67,8 +68,8 @@ rect BUTT_BAR_X BUTT_BAR_Y BUTT_W BUTT_H type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY - textalign ITEM_ALIGN_RIGHT - textvalign ITEM_VALIGN_CENTER + textalign ALIGN_RIGHT + textvalign VALIGN_CENTER textalignx -BUTT_TEXT_S textscale .4 forecolor 1 1 1 1 @@ -87,8 +88,8 @@ type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect (BUTT_BAR_X+BUTT_W) BUTT_BAR_Y BUTT_W BUTT_H - textalign ITEM_ALIGN_CENTER - textvalign ITEM_VALIGN_CENTER + textalign ALIGN_CENTER + textvalign VALIGN_CENTER textscale .4 forecolor 1 1 1 1 visible MENU_TRUE @@ -106,8 +107,8 @@ type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect (BUTT_BAR_X+(2*BUTT_W)) BUTT_BAR_Y BUTT_W BUTT_H - textalign ITEM_ALIGN_LEFT - textvalign ITEM_VALIGN_CENTER + textalign ALIGN_LEFT + textvalign VALIGN_CENTER textalignx BUTT_TEXT_S textscale .4 forecolor 1 1 1 1 |