]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/bigbutton.c
rebrand nexuiz -> xonotic, will fix possible mess later
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / bigbutton.c
diff --git a/qcsrc/menu/xonotic/bigbutton.c b/qcsrc/menu/xonotic/bigbutton.c
new file mode 100644 (file)
index 0000000..8a2a117
--- /dev/null
@@ -0,0 +1,23 @@
+#ifdef INTERFACE
+CLASS(XonoticBigButton) EXTENDS(XonoticButton)
+       METHOD(XonoticBigButton, configureXonoticBigButton, void(entity, string, vector))
+       ATTRIB(XonoticBigButton, image, string, SKINGFX_BUTTON_BIG)
+       ATTRIB(XonoticBigButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)
+ENDCLASS(XonoticButton)
+entity makeXonoticButton(string theText, vector theColor);
+#endif
+
+#ifdef IMPLEMENTATION
+entity makeXonoticBigButton(string theText, vector theColor)
+{
+       entity me;
+       me = spawnXonoticBigButton();
+       me.configureXonoticBigButton(me, theText, theColor);
+       return me;
+}
+
+void configureXonoticBigButtonXonoticBigButton(entity me, string theText, vector theColor)
+{
+       me.configureXonoticButton(me, theText, theColor);
+}
+#endif