16 if (returns) returns(it.titleTooltip);
34 if (!this.source)
return;
38 draw_Fill(
'0 0 0',
'1 1 0', SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED);
39 }
else if (isFocused) {
72 this.
nItems = this.source.reload(this.source, this.stringFilter);
79 this.realFontSize_y = this.
fontSize / (this.itemAbsSize_y = (absSize.y * this.
itemHeight));
80 this.realFontSize_x = this.
fontSize / (this.itemAbsSize_x = (absSize.x * (1 - this.
controlWidth)));
86 this.onChange(
this, this.onChangeEntity);
90 this.source = _source;
100 me.configureDialog(me);
106 entity c = me.currentPanel;
107 if (c.classname ==
"XonoticScrollPanel")
110 s.viewportHeight = 15.5;
114 entity removing = me.currentItem;
117 if (removing == adding)
return;
119 me.currentItem =
NULL;
120 c.removeItem(c, removing);
123 me.currentItem = adding;
124 adding.resizeNotify(adding,
'0 0 0', c.size,
'0 0 0', c.size);
125 c.addItem(c, adding,
'0 0 0',
'1 1 0', 1);
127 s.resizeNotify(s,
'0 0 0', s.size,
'0 0 0', s.size);
132 entity topics = me.topicList;
133 topics.onChange = me.topicChangeNotify;
134 topics.onChangeEntity = me;
138 me.gotoRC(me, 0, col);
139 me.TD(me, me.rows, width, topics);
141 col += width, width = me.columns - col;
142 me.gotoRC(me, 0, col); me.setFirstColumn(me, me.currentColumn);
143 me.TD(me, me.rows, width, me.currentPanel);
145 me.topicChangeNotify(topics, me);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void getEntry()
get entry i passing name and icon through returns if it is not null returns DataSource_false if out o...
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...
virtual void topicChangeNotify()
virtual void configureXonoticListBox()
virtual void setSelected()
virtual void focusedItemChangeNotify()
XonoticRegisteredSettingsList(DataSource _source)
virtual void resizeNotify()
virtual void drawListBoxItem()
entity makeXonoticGameSettingsTab()
void XonoticRegisteredSettingsList_getNameIcon_cb(string _name, string _icon)
void XonoticRegisteredSettingsList_getTooltip_cb(string _tooltip)
string XonoticRegisteredSettingsList_cb_tooltip
string XonoticRegisteredSettingsList_cb_name
void XonoticGameSettingsTab_fill(entity me)
#define METHOD(cname, name, prototype)
#define CONSTRUCTOR(cname,...)
#define CONSTRUCT(cname,...)
#define REGISTRY_COUNT(id)
#define REGISTRY_GET(id, i)