]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/tabcontroller.qc
Hardcode tooltips
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / tabcontroller.qc
index ec30b9c2d44ea687e32248f27a0ffd14196c07bf..2fae65a89b4599d70830c88dfed67a111f592afb 100644 (file)
@@ -3,6 +3,7 @@
 #include "../item/modalcontroller.qc"
 CLASS(XonoticTabController, ModalController)
        METHOD(XonoticTabController, configureXonoticTabController, void(entity, float));
+       METHOD(XonoticTabController, makeTabButton_T, entity(entity, string, entity, string));
        METHOD(XonoticTabController, makeTabButton, entity(entity, string, entity));
        ATTRIB(XonoticTabController, rows, float, 0)
        ATTRIB(XonoticTabController, fontSize, float, SKINFONTSIZE_NORMAL)
@@ -23,14 +24,18 @@ void XonoticTabController_configureXonoticTabController(entity me, float theRows
 {
        me.rows = theRows;
 }
-entity XonoticTabController_makeTabButton(entity me, string theTitle, entity tab)
+entity XonoticTabController_makeTabButton_T(entity me, string theTitle, entity tab, string theTooltip)
 {
        entity b;
        if(me.rows != tab.rows)
                error("Tab dialog height mismatch!");
-       b = makeXonoticButton(theTitle, '0 0 0');
+       b = makeXonoticButton_T(theTitle, '0 0 0', theTooltip);
                me.addTab(me, tab, b);
        // TODO make this real tab buttons (with color parameters, and different gfx)
        return b;
 }
+entity XonoticTabController_makeTabButton(entity me, string theTitle, entity tab)
+{
+       return XonoticTabController_makeTabButton_T(me, theTitle, tab, string_null);
+}
 #endif