Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
SettingSource Class Reference
Inheritance diagram for SettingSource:
Collaboration diagram for SettingSource:

Public Member Functions

virtual void destroy ()
 cleanup on shutdown.
virtual void getEntry ()
 get entry i passing name and icon through returns if it is not null returns DataSource_false if out of bounds otherwise returns an entity or DataSource_true
virtual void getEntryTooltip ()
virtual void indexOf ()
 return the index of the first match for find.
virtual void reload ()
 reload all entries matching filter returning how many matches were found

Static Public Attributes

static entity false = NULL
static entity true = NEW(Object)

Detailed Description

Definition at line 4 of file dialog_settings_game.qh.

Member Function Documentation

◆ destroy()

virtual void DataSource::destroy ( )
inlinevirtualinherited

cleanup on shutdown.

optional

Definition at line 17 of file datasource.qh.

17{ }

References destroy(), and entity().

Referenced by destroy().

◆ getEntry()

void SettingSource::getEntry ( )
virtual

get entry i passing name and icon through returns if it is not null returns DataSource_false if out of bounds otherwise returns an entity or DataSource_true

Reimplemented from DataSource.

Definition at line 5 of file dialog_settings_game.qc.

6{
7 Lazy l = REGISTRY_GET(Settings, i);
8 entity it = l.m_get();
9 if (returns) returns(it.title, string_null);
10 return it;
11}
entity() spawn
string string_null
Definition nil.qh:9
#define REGISTRY_GET(id, i)
Definition registry.qh:43

References entity(), getEntry(), name, REGISTRY_GET, and string_null.

Referenced by getEntry().

◆ getEntryTooltip()

void SettingSource::getEntryTooltip ( )
virtual

Definition at line 12 of file dialog_settings_game.qc.

13{
14 Lazy l = REGISTRY_GET(Settings, i);
15 entity it = l.m_get();
16 if (returns) returns(it.titleTooltip);
17 return it;
18}

References entity(), getEntryTooltip(), and REGISTRY_GET.

Referenced by getEntryTooltip().

◆ indexOf()

virtual void DataSource::indexOf ( )
inlinevirtualinherited

return the index of the first match for find.

optional

Definition at line 13 of file datasource.qh.

13{ return -1; }

References entity(), find(), and indexOf().

Referenced by indexOf().

◆ reload()

void SettingSource::reload ( )
virtual

reload all entries matching filter returning how many matches were found

Reimplemented from DataSource.

Definition at line 19 of file dialog_settings_game.qc.

19{ return REGISTRY_COUNT(Settings); }
#define REGISTRY_COUNT(id)
Definition registry.qh:18

References entity(), REGISTRY_COUNT, and reload().

Referenced by reload().

Member Data Documentation

◆ false

entity DataSource::false = NULL
staticinherited

Definition at line 5 of file datasource.qh.

◆ true

entity DataSource::true = NEW(Object)
staticinherited

Definition at line 4 of file datasource.qh.


The documentation for this class was generated from the following files: