Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
entries.qh File Reference
Include dependency graph for entries.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XonoticEntryList

Functions

void EntryList_StringFilterBox_Change (entity box, entity me)
float EntryList_StringFilterBox_keyDown (entity me, float key, float ascii, float shift)

Function Documentation

◆ EntryList_StringFilterBox_Change()

void EntryList_StringFilterBox_Change ( entity box,
entity me )

Definition at line 156 of file entries.qc.

157{
158 strfree(me.stringFilter);
159 if (box.text != "")
160 me.stringFilter = strzone(box.text);
161
162 me.refilter(me);
163}
string strzone(string s)
#define strfree(this)
Definition string.qh:59

References entity(), strfree, and strzone().

Referenced by XonoticEntryList::keyDown(), XonoticGuideTab_fill(), and XonoticGuideTab_topicChangeNotify().

◆ EntryList_StringFilterBox_keyDown()

float EntryList_StringFilterBox_keyDown ( entity me,
float key,
float ascii,
float shift )

Definition at line 106 of file entries.qc.

107{
108 // in this section, note that onChangeEntity has the ref to entryList
109 // we make use of that, instead of extending a class to add one more attrib
110 switch (scan)
111 {
112 case K_KP_ENTER:
113 case K_ENTER:
114 // move the focus to the entryList
115 me.onChangeEntity.parent.setFocus(me.onChangeEntity.parent, me.onChangeEntity);
116 return 1;
117 case K_KP_UPARROW:
118 case K_UPARROW:
119 case K_KP_DOWNARROW:
120 case K_DOWNARROW:
121 // pass the event to the entryList (to scroll up and down)
122 return me.onChangeEntity.keyDown(me.onChangeEntity, scan, ascii, shift);
123 }
124 return SUPER(XonoticInputBox).keyDown(me, scan, ascii, shift);
125}
float K_UPARROW
Definition keycodes.qc:15
float K_DOWNARROW
Definition keycodes.qc:16
float K_KP_UPARROW
Definition keycodes.qc:64
float K_ENTER
Definition keycodes.qc:8
float K_KP_DOWNARROW
Definition keycodes.qc:53
float K_KP_ENTER
Definition keycodes.qc:74
#define SUPER(cname)
Definition oo.qh:231

References entity(), K_DOWNARROW, K_ENTER, K_KP_DOWNARROW, K_KP_ENTER, K_KP_UPARROW, K_UPARROW, and SUPER.

Referenced by XonoticGuideTab_fill().