#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);
#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;
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));
#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;
#pragma once
+#include <common/items/item.qh>
+#include <menu/anim/animhost.qh>
#include <menu/xonotic/datasource.qh>
#define TOPICS(X) \
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));
#include "topics.qh"
+#include "entries.qh"
+
void XonoticTopicList_clickListBoxItem(entity this, float i, vector where)
{
m_play_click_sound(MENU_SOUND_SELECT);