summaryrefslogtreecommitdiffhomepage
path: root/gamedata/vguimatsurface.kv
diff options
context:
space:
mode:
authorMatthew Wozniak <sirtomato999@gmail.com>2022-11-17 14:34:47 -0300
committerMichael Smith <mikesmiffy128@gmail.com>2023-12-19 16:29:08 +0000
commit374ae0fbc44db36d9abb6b5b1fe065bc3949e201 (patch)
tree04b1a66a5898bdd420c9cd523cc40a0062511aef /gamedata/vguimatsurface.kv
parente3d7cc9c80159849289a8bab03eca088b758941b (diff)
Add VGUI HUD overlay drawing feature
Currently only supports Orange Box and Left 4 Dead branches. There's quite a large amount of gamedata involved in making this work, and figuring it out for the likes of Portal 2 doesn't seem like a major priority at the moment.
Diffstat (limited to 'gamedata/vguimatsurface.kv')
-rw-r--r--gamedata/vguimatsurface.kv69
1 files changed, 69 insertions, 0 deletions
diff --git a/gamedata/vguimatsurface.kv b/gamedata/vguimatsurface.kv
new file mode 100644
index 0000000..19857be
--- /dev/null
+++ b/gamedata/vguimatsurface.kv
@@ -0,0 +1,69 @@
+// = vguimatsurface library =
+
+// ISurface
+vtidx_DrawSetColor {
+ OrangeBoxbased 10
+ L4D 10
+}
+vtidx_DrawFilledRect {
+ OrangeBoxbased 12
+ L4D 12
+}
+vtidx_DrawOutlinedRect {
+ OrangeBoxbased 14
+ L4D 14
+}
+vtidx_DrawLine {
+ OrangeBoxbased 15
+ L4D 15
+}
+vtidx_DrawPolyLine {
+ OrangeBoxbased 16
+ L4D 16
+}
+vtidx_DrawSetTextFont {
+ OrangeBoxbased 17
+ L4D 17
+}
+vtidx_DrawSetTextColor {
+ OrangeBoxbased 18
+ L4D 18
+}
+vtidx_DrawSetTextPos {
+ OrangeBoxbased 20
+ L4D 20
+}
+vtidx_DrawPrintText {
+ OrangeBoxbased 22
+ L4D 22
+}
+vtidx_GetScreenSize {
+ OrangeBoxbased 37
+ L4D {
+ default 37
+ L4D2_2147plus 35
+ }
+}
+// Unused: currently no good way to create custom fonts without leaking them
+//vtidx_CreateFont {
+// OrangeBoxbased 64
+// L4D {
+// default 64
+// L4D2_2147plus 63
+// }
+//}
+//vtidx_SetFontGlyphSet {
+// OrangeBoxbased 65
+// L4D {
+// default 65
+// L4D2_2147plus 64
+// }
+//}
+vtidx_GetFontTall {
+ OrangeBoxbased 67
+ L4D 67
+}
+vtidx_GetCharacterWidth {
+ OrangeBoxbased 71
+ L4D 71
+}