From 073044747b5a3f172e5b03ab58b373cdd645c087 Mon Sep 17 00:00:00 2001 From: Damian Kaczmarek Date: Tue, 14 Dec 2010 01:20:47 +0100 Subject: -Working ui_scale parameter. (doing it properly would require lots of framework/interface job ...) --- src/game/client/ui.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game/client/ui.h') diff --git a/src/game/client/ui.h b/src/game/client/ui.h index 477799f7..9ff85dd5 100644 --- a/src/game/client/ui.h +++ b/src/game/client/ui.h @@ -6,7 +6,7 @@ class CUIRect { // TODO: Refactor: Redo UI scaling - float Scale() const { return 1.0f; } + float Scale() const; public: float x, y, w, h; @@ -85,12 +85,13 @@ public: // TODO: Refactor: Redo UI scaling void SetScale(float s); - float Scale() const { return 1.0f; } + float Scale(); int DoButtonLogic(const void *pID, const char *pText /* TODO: Refactor: Remove */, int Checked, const CUIRect *pRect); // TODO: Refactor: Remove this? void DoLabel(const CUIRect *pRect, const char *pText, float Size, int Align, int MaxWidth = -1); + void DoLabelScaled(const CUIRect *pRect, const char *pText, float Size, int Align, int MaxWidth = -1); }; -- cgit 1.4.1