]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compilation unit test
authorMario <mario.mario@y7mail.com>
Mon, 2 Nov 2020 01:40:05 +0000 (11:40 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 2 Nov 2020 01:40:05 +0000 (11:40 +1000)
qcsrc/menu/xonotic/guide/description.qh
qcsrc/menu/xonotic/guide/entries.qc
qcsrc/menu/xonotic/guide/entries.qh
qcsrc/menu/xonotic/guide/tab.qc
qcsrc/menu/xonotic/guide/tab.qh
qcsrc/menu/xonotic/guide/topics.qc

index 1e8b6ea7ca808d1e437aaa8ca632911104f92bd8..19f59ec1868fad6d2e23713951bdf50e7f14c4e1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include <menu/xonotic/listbox.qh>
 CLASS(XonoticGuideDescription, XonoticListBox)
+    ATTRIB(XonoticGuideDescription, realFontSize, vector, '0 0 0');
+    ATTRIB(XonoticGuideDescription, realUpperMargin, float, 0);
        ATTRIB(XonoticGuideDescription, rowsPerItem, float, 1);
        ATTRIB(XonoticGuideDescription, selectionDoesntMatter, bool, true);
 
index 7084e3b6d80bf46fe3ebb30faeb6b986b58b6fce..358e639d369c9d149a8e59b9dcf077e313832b4a 100644 (file)
@@ -1,5 +1,9 @@
 #include "entries.qh"
 
+#include <menu/xonotic/listbox.qh>
+#include <menu/xonotic/inputbox.qh>
+#include <menu/xonotic/mainwindow.qh>
+
 string XonoticEntryList_cb_name, XonoticEntryList_cb_icon;
 void XonoticEntryList_cb(string _name, string _icon) {
     XonoticEntryList_cb_name = _name;
index ea1d599dc952d08cdec8b1a03d76cd123ade3f7d..90727615b452ca235c7fd18e6764a933d157549b 100644 (file)
@@ -17,6 +17,8 @@ CLASS(XonoticEntryList, XonoticListBox)
 
     METHOD(XonoticEntryList, drawListBoxItem, void(entity, int, vector, bool, bool));
     METHOD(XonoticEntryList, keyDown, float(entity, float, float, float));
+    ATTRIB(XonoticEntryList, onChange, void(entity, entity));
+    ATTRIB(XonoticEntryList, onChangeEntity, entity);
     METHOD(XonoticEntryList, refilter, void(entity));
     METHOD(XonoticEntryList, resizeNotify, void(entity, vector, vector, vector, vector));
     METHOD(XonoticEntryList, setSelected, void(entity, int));
index 8b14a82fa6506b298d67f8eaffd4ad22268fba23..a0217bdcb2343bae8f7219042602cd39101fbdb7 100644 (file)
@@ -1,5 +1,9 @@
 #include "tab.qh"
 
+#include <menu/xonotic/inputbox.qh>
+#include <menu/xonotic/maplist.qh>
+#include <menu/xonotic/textlabel.qh>
+
 void XonoticGuideTab_fill(entity this)
 {
     entity topics = this.topicList;
index ad791856c256aa1b2751747b718591eb45545d34..3c0b637a80c5beb2f2057f292abfb9c997b14286 100644 (file)
@@ -1,5 +1,7 @@
 #pragma once
 
+#include <common/items/item.qh>
+#include <menu/anim/animhost.qh>
 #include <menu/xonotic/datasource.qh>
 
 #define TOPICS(X) \
@@ -150,6 +152,7 @@ CLASS(XonoticGuideTab, XonoticTab)
     METHOD(XonoticGuideTab, topicChangeNotify, void(entity, entity));
     METHOD(XonoticGuideTab, entryChangeNotify, void(entity, entity));
 
+    ATTRIB(XonoticGuideTab, controlledTextbox, entity);
     ATTRIB(XonoticGuideTab, topicList, entity, NEW(XonoticTopicList, NEW(TopicSource)));
     ATTRIB(XonoticGuideTab, entryList, entity, NEW(XonoticEntryList, NULL));
     ATTRIB(XonoticGuideTab, descriptionPane, entity, NEW(XonoticGuideDescription));
index f47fb72eb640d5e9e8103de13c493f4eb85eb105..ad75a34fa1afbb3a795c9325c5b1c72e6c6b6201 100644 (file)
@@ -1,5 +1,7 @@
 #include "topics.qh"
 
+#include "entries.qh"
+
 void XonoticTopicList_clickListBoxItem(entity this, float i, vector where)
 {
     m_play_click_sound(MENU_SOUND_SELECT);