]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/item/inputbox.c
let's USE the super keyword! yay!
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / inputbox.c
index 03e1605daff2411d2a426874be3c823355024972..e34e5ff5296d8007a928709c4e43d79984578f25 100644 (file)
@@ -33,7 +33,7 @@ void InputBox_Clear_Click(entity btn, entity me);
 #ifdef IMPLEMENTATION
 void configureInputBoxInputBox(entity me, string theText, float theCursorPos, float theFontSize, string gfx)
 {
-       configureLabelLabel(me, theText, theFontSize, 0.0);
+       SUPER(InputBox).configureLabel(me, theText, theFontSize, 0.0);
        me.src = gfx;
        me.cursorPos = theCursorPos;
 }
@@ -42,7 +42,7 @@ void setTextInputBox(entity me, string txt)
 {
        if(me.text)
                strunzone(me.text);
-       setTextLabel(me, strzone(txt));
+       SUPER(InputBox).setText(me, strzone(txt));
 }
 
 void InputBox_Clear_Click(entity btn, entity me)
@@ -303,7 +303,7 @@ void drawInputBox(entity me)
        }
        else
                draw_Text(me.realOrigin - eX * me.scrollPos, me.text, me.realFontSize, '1 1 1', 1, 0);
-               // skipping drawLabel(me);
+               // skipping SUPER(InputBox).draw(me);
        if(!me.focused || (time - me.lastChangeTime) < floor(time - me.lastChangeTime) + 0.5)
                draw_Text(me.realOrigin + eX * (cursorPosInWidths - me.scrollPos), CURSOR, me.realFontSize, '1 1 1', 1, 0);