diff options
| author | Damian Kaczmarek <rush@rushbase.net> | 2010-12-14 01:20:47 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-01-05 12:14:36 +0100 |
| commit | 073044747b5a3f172e5b03ab58b373cdd645c087 (patch) | |
| tree | 6c8425d2346f61d5f9bab3a0ae79a1a0281c8d5a /src/game/client/ui.h | |
| parent | aad2438882943b23a72cee28c1b71d217883ebf9 (diff) | |
| download | zcatch-073044747b5a3f172e5b03ab58b373cdd645c087.tar.gz zcatch-073044747b5a3f172e5b03ab58b373cdd645c087.zip | |
-Working ui_scale parameter.
(doing it properly would require lots of framework/interface job ...)
Diffstat (limited to 'src/game/client/ui.h')
| -rw-r--r-- | src/game/client/ui.h | 5 |
1 files changed, 3 insertions, 2 deletions
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); }; |