diff options
| author | Thomas <lordskelethom@gmail.com> | 2010-05-30 12:01:11 +0000 |
|---|---|---|
| committer | Thomas <lordskelethom@gmail.com> | 2010-05-30 12:01:11 +0000 |
| commit | 361380d63039737df51c1ed684d5f70758c96790 (patch) | |
| tree | 6709a802772f65dc26eb6acf332023b89bf193f8 /src/game/client/components/menus.cpp | |
| parent | 47b68170ad8a0d6b4fd5be182d8ba0c953114cb4 (diff) | |
| download | zcatch-361380d63039737df51c1ed684d5f70758c96790.tar.gz zcatch-361380d63039737df51c1ed684d5f70758c96790.zip | |
*some esthetic changes
*split "CHud::RenderGoals()" *added "reload" command *added the ability to show last chat lines (+show_chat) *updated french.txt
Diffstat (limited to 'src/game/client/components/menus.cpp')
| -rw-r--r-- | src/game/client/components/menus.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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(); |