]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/credits.qc
Fix typos in few cvar descriptions; remove a wrong comment (copy-paste leftover)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / credits.qc
index e3a8dec9d9800d7b3fc447f33f162f1c1617c1bf..816120b074981c6f897763bd8550cfb5fc916203 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CREDITS_H
-#define CREDITS_H
+#include "credits.qh"
 
 #define CREDITS(TITLE, FUNCTION, PERSON, PERSON_, NL) \
        TITLE(_("Core Team")) \
        NL() \
        NL() \
        TITLE(_("Game Engine")) \
-               FUNCTION(_("DarkPlaces")) \
+               FUNCTION("DarkPlaces") \
                        PERSON(Forest "LordHavoc" Hale) \
                NL() \
                FUNCTION(_("Engine Additions")) \
                NL() \
        NL() \
        TITLE(_("Compiler")) \
-               FUNCTION(_("GMQCC")) \
+               FUNCTION("GMQCC") \
                        PERSON(Wolfgang "Blub\0" Bumiller) \
                        PERSON(Dale "graphitemaster" Weiler) \
                NL() \
@@ -367,28 +366,6 @@ int credits_get()
 
 #undef CREDITS
 
-#include "listbox.qc"
-CLASS(XonoticCreditsList, XonoticListBox)
-       METHOD(XonoticCreditsList, configureXonoticCreditsList, void(entity));
-       ATTRIB(XonoticCreditsList, rowsPerItem, float, 1)
-       METHOD(XonoticCreditsList, draw, void(entity));
-       METHOD(XonoticCreditsList, drawListBoxItem, void(entity, int, vector, bool, bool));
-       METHOD(XonoticCreditsList, resizeNotify, void(entity, vector, vector, vector, vector));
-       METHOD(XonoticCreditsList, keyDown, float(entity, float, float, float));
-       METHOD(XonoticCreditsList, destroy, void(entity));
-       ATTRIB(XonoticCreditsList, selectionDoesntMatter, bool, true)
-
-       ATTRIB(XonoticCreditsList, realFontSize, vector, '0 0 0')
-       ATTRIB(XonoticCreditsList, realUpperMargin, float, 0)
-       ATTRIB(XonoticCreditsList, bufferIndex, float, 0)
-       ATTRIB(XonoticCreditsList, scrolling, float, 0)
-
-       ATTRIB(XonoticCreditsList, alphaBG, float, 0)
-ENDCLASS(XonoticCreditsList)
-entity makeXonoticCreditsList();
-#endif
-
-#ifdef IMPLEMENTATION
 entity makeXonoticCreditsList()
 {
        entity me;
@@ -425,7 +402,6 @@ void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize
 }
 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
 {
-       // layout: Ping, Credits name, Map name, NP, TP, MP
        string s;
        float theAlpha;
        vector theColor;
@@ -458,4 +434,3 @@ float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
        me.scrolling = 0;
        return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);
 }
-#endif