From 658a857a2d545fe9fb3700d4903e5cbd5206267c Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 2 Nov 2020 11:40:05 +1000 Subject: [PATCH] Fix compilation unit test --- qcsrc/menu/xonotic/guide/description.qh | 2 ++ qcsrc/menu/xonotic/guide/entries.qc | 4 ++++ qcsrc/menu/xonotic/guide/entries.qh | 2 ++ qcsrc/menu/xonotic/guide/tab.qc | 4 ++++ qcsrc/menu/xonotic/guide/tab.qh | 3 +++ qcsrc/menu/xonotic/guide/topics.qc | 2 ++ 6 files changed, 17 insertions(+) diff --git a/qcsrc/menu/xonotic/guide/description.qh b/qcsrc/menu/xonotic/guide/description.qh index 1e8b6ea7ca..19f59ec186 100644 --- a/qcsrc/menu/xonotic/guide/description.qh +++ b/qcsrc/menu/xonotic/guide/description.qh @@ -2,6 +2,8 @@ #include 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); diff --git a/qcsrc/menu/xonotic/guide/entries.qc b/qcsrc/menu/xonotic/guide/entries.qc index 7084e3b6d8..358e639d36 100644 --- a/qcsrc/menu/xonotic/guide/entries.qc +++ b/qcsrc/menu/xonotic/guide/entries.qc @@ -1,5 +1,9 @@ #include "entries.qh" +#include +#include +#include + string XonoticEntryList_cb_name, XonoticEntryList_cb_icon; void XonoticEntryList_cb(string _name, string _icon) { XonoticEntryList_cb_name = _name; diff --git a/qcsrc/menu/xonotic/guide/entries.qh b/qcsrc/menu/xonotic/guide/entries.qh index ea1d599dc9..90727615b4 100644 --- a/qcsrc/menu/xonotic/guide/entries.qh +++ b/qcsrc/menu/xonotic/guide/entries.qh @@ -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)); diff --git a/qcsrc/menu/xonotic/guide/tab.qc b/qcsrc/menu/xonotic/guide/tab.qc index 8b14a82fa6..a0217bdcb2 100644 --- a/qcsrc/menu/xonotic/guide/tab.qc +++ b/qcsrc/menu/xonotic/guide/tab.qc @@ -1,5 +1,9 @@ #include "tab.qh" +#include +#include +#include + void XonoticGuideTab_fill(entity this) { entity topics = this.topicList; diff --git a/qcsrc/menu/xonotic/guide/tab.qh b/qcsrc/menu/xonotic/guide/tab.qh index ad791856c2..3c0b637a80 100644 --- a/qcsrc/menu/xonotic/guide/tab.qh +++ b/qcsrc/menu/xonotic/guide/tab.qh @@ -1,5 +1,7 @@ #pragma once +#include +#include #include #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)); diff --git a/qcsrc/menu/xonotic/guide/topics.qc b/qcsrc/menu/xonotic/guide/topics.qc index f47fb72eb6..ad75a34fa1 100644 --- a/qcsrc/menu/xonotic/guide/topics.qc +++ b/qcsrc/menu/xonotic/guide/topics.qc @@ -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); -- 2.39.2