From d1f455ba277df793e2f7c6276cbee0d897b796ce Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 8 Sep 2024 14:01:13 +0100 Subject: Improve the HUD API slightly - Add text size measurement (for centring etc.). - Add a wchar_t equivalent since ushort would be wrong on Linux. Avoid actually using wchar.h because it's a big bloaty header, particularly on Windows. --- gamedata/vguimatsurface.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gamedata/vguimatsurface.txt') diff --git a/gamedata/vguimatsurface.txt b/gamedata/vguimatsurface.txt index a9dc3f2..e35c125 100644 --- a/gamedata/vguimatsurface.txt +++ b/gamedata/vguimatsurface.txt @@ -45,5 +45,8 @@ vtidx_GetFontTall vtidx_GetCharacterWidth OrangeBoxbased 71 L4D 71 +vtidx_GetTextSize + OrangeBoxbased 72 + L4D 72 # vi: sw=4 ts=4 noet tw=80 cc=80 -- cgit v1.2.3