diff options
Diffstat (limited to 'src/game/client/ui.cpp')
-rw-r--r-- | src/game/client/ui.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/client/ui.cpp b/src/game/client/ui.cpp index 03b764b1f..44c66cfa5 100644 --- a/src/game/client/ui.cpp +++ b/src/game/client/ui.cpp @@ -766,3 +766,13 @@ float CUI::GetClientIDRectWidth(float FontSize) return 0; return 1.4f * FontSize + 0.2f * FontSize; } + +float CUI::GetListHeaderHeight() const +{ + return ms_ListheaderHeight + (m_pConfig->m_UiWideview ? 3.0f : 0.0f); +} + +float CUI::GetListHeaderHeightFactor() const +{ + return 1.0f + (m_pConfig->m_UiWideview ? (3.0f/ms_ListheaderHeight) : 0.0f); +} |