From 361380d63039737df51c1ed684d5f70758c96790 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 30 May 2010 12:01:11 +0000 Subject: *some esthetic changes *split "CHud::RenderGoals()" *added "reload" command *added the ability to show last chat lines (+show_chat) *updated french.txt --- src/game/client/components/menus.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/game/client/components/menus.cpp') diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 763e33b4..29063b80 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -268,7 +268,8 @@ int CMenus::DoEditBox(void *pID, const CUIRect *pRect, char *pStr, unsigned StrS CUIRect Textbox = *pRect; RenderTools()->DrawUIRect(&Textbox, vec4(1, 1, 1, 0.5f), Corners, 3.0f); - Textbox.VMargin(3.0f, &Textbox); + Textbox.VMargin(2.0f, &Textbox); + Textbox.HMargin(2.0f, &Textbox); const char *pDisplayStr = pStr; char aStars[128]; @@ -320,9 +321,9 @@ int CMenus::DoEditBox(void *pID, const CUIRect *pRect, char *pStr, unsigned StrS Textbox = *pRect; Textbox.VSplitLeft(2.0f, 0, &Textbox); Textbox.x += (w-*Offset)*UI()->Scale(); - Textbox.y -= FontSize/10.f; + if((2*time_get()/time_freq()) % 2) // make it blink - UI()->DoLabel(&Textbox, "|", FontSize*1.1f, -1); + UI()->DoLabel(&Textbox, "|", FontSize, -1); } UI()->ClipDisable(); -- cgit 1.4.1