Xonotic
dialog_settings_game.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "datasource.qh"
5  METHOD(SettingSource, getEntry, entity(entity this, int i, void(string name, string icon) returns));
6  METHOD(SettingSource, getEntryTooltip, entity(entity this, int i, void(string theTooltip) returns));
7  METHOD(SettingSource, reload, int(entity this, string filter));
9 
10 #include "listbox.qh"
13  ATTRIB(XonoticRegisteredSettingsList, itemAbsSize, vector, '0 0 0');
14  ATTRIB(XonoticRegisteredSettingsList, origin, vector, '0 0 0');
15  ATTRIB(XonoticRegisteredSettingsList, realFontSize, vector, '0 0 0');
16  ATTRIB(XonoticRegisteredSettingsList, realUpperMargin, float, 0);
17  ATTRIB(XonoticRegisteredSettingsList, rowsPerItem, float, 2);
18  ATTRIB(XonoticRegisteredSettingsList, stringFilterBox, entity);
19  ATTRIB(XonoticRegisteredSettingsList, stringFilter, string);
20  ATTRIB(XonoticRegisteredSettingsList, typeToSearchString, string);
21  ATTRIB(XonoticRegisteredSettingsList, typeToSearchTime, float, 0);
22  ATTRIB(XonoticRegisteredSettingsList, source, DataSource);
23  ATTRIB(XonoticRegisteredSettingsList, onChange, void(entity, entity));
24  ATTRIB(XonoticRegisteredSettingsList, onChangeEntity, entity);
25  METHOD(XonoticRegisteredSettingsList, focusedItemChangeNotify, void(entity));
26  METHOD(XonoticRegisteredSettingsList, drawListBoxItem, void(entity this, int i, vector absSize, bool isSelected, bool isFocused));
27  METHOD(XonoticRegisteredSettingsList, focusedItemChangeNotify, void(entity this));
28  METHOD(XonoticRegisteredSettingsList, refilter, void(entity this));
29  METHOD(XonoticRegisteredSettingsList, resizeNotify, void(entity this, vector relOrigin, vector relSize, vector absOrigin, vector absSize));
30  METHOD(XonoticRegisteredSettingsList, setSelected, void(entity this, int i));
31  CONSTRUCTOR(XonoticRegisteredSettingsList, DataSource _source);
32 ENDCLASS(XonoticRegisteredSettingsList)
33 
34 #include "tab.qh"
35 #include "scrollpanel.qh"
37  ATTRIB(XonoticGameSettingsTab, intendedWidth, float, 0.9);
38  ATTRIB(XonoticGameSettingsTab, rows, float, 15.5);
39  ATTRIB(XonoticGameSettingsTab, columns, float, 6.5);
40  ATTRIB(XonoticGameSettingsTab, source, DataSource, NEW(SettingSource));
41  ATTRIB(XonoticGameSettingsTab, topicList, entity, NEW(XonoticRegisteredSettingsList, this.source));
42  // XonoticScrollPanel disabled because it's broken, see https://gitlab.com/xonotic/xonotic-data.pk3dir/merge_requests/548
43  // It will probably require a different implementation since XonoticScrollPanel should be an instance of Container, not ListBox
44  //ATTRIB(XonoticGameSettingsTab, currentPanel, entity, NEW(XonoticScrollPanel));
45  ATTRIB(XonoticGameSettingsTab, currentPanel, entity, NEW(XonoticTab));
46  ATTRIB(XonoticGameSettingsTab, currentItem, entity);
47  METHOD(XonoticGameSettingsTab, topicChangeNotify, void(entity, entity this));
48  METHOD(XonoticGameSettingsTab, fill, void(entity this));
49  INIT(XonoticGameSettingsTab)
50  {
51  this.configureDialog(this);
52  }
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
Definition: tab.qh:4
entity() spawn
origin
Definition: ent_cs.qc:114
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
#define INIT(cname)
Definition: oo.qh:198
entity this
Definition: self.qh:83
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define ENDCLASS(cname)
Definition: oo.qh:269
#define CONSTRUCTOR(cname,...)
Definition: oo.qh:201