Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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"
19 ATTRIB(XonoticRegisteredSettingsList, stringFilter, string);
20 ATTRIB(XonoticRegisteredSettingsList, typeToSearchString, string);
25 METHOD(XonoticRegisteredSettingsList, drawListBoxItem, void(entity this, int i, vector absSize, bool isSelected, bool isFocused));
28 METHOD(XonoticRegisteredSettingsList, resizeNotify, void(entity this, vector relOrigin, vector relSize, vector absOrigin, vector absSize));
32
33#include "tab.qh"
34#include "scrollpanel.qh"
41 // XonoticScrollPanel disabled because it's broken, see https://gitlab.com/xonotic/xonotic-data.pk3dir/merge_requests/548
42 // It will probably require a different implementation since XonoticScrollPanel should be an instance of Container, not ListBox
43 //ATTRIB(XonoticGameSettingsTab, currentPanel, entity, NEW(XonoticScrollPanel));
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void getEntryTooltip()
virtual void reload()
reload all entries matching filter returning how many matches were found
virtual void getEntry()
get entry i passing name and icon through returns if it is not null returns DataSource_false if out o...
ATTRIB(XonoticGameSettingsTab, currentItem, entity)
virtual void fill()
XonoticRegisteredSettingsList(DataSource _source)
ATTRIB(XonoticRegisteredSettingsList, stringFilterBox, entity)
entity() spawn
entity makeXonoticGameSettingsTab()
string name
Definition menu.qh:30
#define NEW(cname,...)
Definition oo.qh:117
#define CLASS(...)
Definition oo.qh:145
#define ENDCLASS(cname)
Definition oo.qh:281
#define METHOD(cname, name, prototype)
Definition oo.qh:269
#define CONSTRUCTOR(cname,...)
Definition oo.qh:213
vector
Definition self.qh:92
entity this
Definition self.qh:72