From 74c8d33a2b830a47c31272bcf16cbbfd404ce0e8 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 8 Nov 2007 00:05:14 +0000 Subject: * Merge and move text paint functions into ui_shared.c * Add aspectBias to indicate alignment on non-4:3 video modes * Add "reset " 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 --- ui/tremulous_humanitem.menu | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ui/tremulous_humanitem.menu') diff --git a/ui/tremulous_humanitem.menu b/ui/tremulous_humanitem.menu index bc2204f6..551334be 100644 --- a/ui/tremulous_humanitem.menu +++ b/ui/tremulous_humanitem.menu @@ -79,8 +79,8 @@ style WINDOW_STYLE_EMPTY rect INFO_X INFO_Y INFO_W INFO_H textscale .33 - textalign ITEM_ALIGN_LEFT - textvalign ITEM_VALIGN_TOP + textalign ALIGN_LEFT + textvalign VALIGN_TOP textalignx INFO_TOFF textaligny INFO_TOFF border WINDOW_BORDER_FULL @@ -99,8 +99,8 @@ type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect ((2*BORDER)+LIST_W) (H-(BORDER+BUTT_H)) 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 backcolor .5 0 0 .25 @@ -120,8 +120,8 @@ type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect (W-((2*BORDER)+(2*BUTT_W))) (H-(BORDER+BUTT_H)) 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 backcolor .5 0 0 .25 @@ -141,8 +141,8 @@ type ITEM_TYPE_BUTTON style WINDOW_STYLE_EMPTY rect (W-(BORDER+BUTT_W)) (H-(BORDER+BUTT_H)) 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 backcolor .5 0 0 .25 -- cgit