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

Public Member Functions

 ATTRIB (MenuItem, parent, entity)
 ATTRIB (MenuItem, tooltip, string)
virtual void cellDraw ()
virtual void cellIsValid ()
virtual void cellSelect ()
virtual void configureXonoticPicker ()
virtual void destroy ()
virtual void draw ()
virtual void focusEnter ()
virtual void focusLeave ()
virtual void hideNotify ()
virtual void keyDown ()
virtual void keyUp ()
virtual void mouseDrag ()
virtual void mouseMove ()
virtual void mousePress ()
virtual void mouseRelease ()
virtual void moveFocus ()
virtual void relinquishFocus ()
virtual void resizeNotify ()
virtual void showNotify ()
virtual void toString ()

Public Attributes

bool allowFocusSound = false
float alpha = 1
float columns = 2
float disabled = 0
float disabledAlpha = SKINALPHA_DISABLED
bool focusable = true
bool focused = false
vector focusedCell = '-1 -1 0'
float focusedCellAlpha = 0
float focusedCellTime = 0
vector origin = '0 0 0'
float preferredFocusPriority = 0
vector pressedCell = '-1 -1 0'
vector realCellSize = '0 0 0'
float rows = 3
vector selectedCell = '-1 -1 0'
vector size = '0 0 0'

Detailed Description

Definition at line 4 of file picker.qh.

Member Function Documentation

◆ ATTRIB() [1/2]

MenuItem::ATTRIB ( MenuItem ,
parent ,
entity  )
inherited

References entity(), and parent.

◆ ATTRIB() [2/2]

MenuItem::ATTRIB ( MenuItem ,
tooltip ,
string  )
inherited

◆ cellDraw()

virtual void XonoticPicker::cellDraw ( )
virtual

Reimplemented in XonoticCharmap, and XonoticCrosshairPicker.

References cellDraw(), entity(), METHOD, and vector.

Referenced by cellDraw().

◆ cellIsValid()

virtual void XonoticPicker::cellIsValid ( )
virtual

Reimplemented in XonoticCharmap, and XonoticCrosshairPicker.

References cellIsValid(), entity(), METHOD, and vector.

Referenced by cellIsValid().

◆ cellSelect()

virtual void XonoticPicker::cellSelect ( )
virtual

Reimplemented in XonoticCharmap, and XonoticCrosshairPicker.

References cellSelect(), entity(), METHOD, and vector.

Referenced by cellSelect().

◆ configureXonoticPicker()

virtual void XonoticPicker::configureXonoticPicker ( )
virtual

◆ destroy()

◆ draw()

virtual void XonoticPicker::draw ( )
virtual

Reimplemented from MenuItem.

References draw(), entity(), and METHOD.

Referenced by draw().

◆ focusEnter()

void MenuItem::focusEnter ( )
virtualinherited

Reimplemented in Nexposee, XonoticCreditsDialog, XonoticServerList, and XonoticWinnerDialog.

Definition at line 94 of file item.qc.

95 {
97 }
bool allowFocusSound
Definition item.qh:26
void m_play_focus_sound()
Definition menu.qc:1097

References allowFocusSound, focusEnter(), and m_play_focus_sound().

Referenced by focusEnter().

◆ focusLeave()

void MenuItem::focusLeave ( )
virtualinherited

Reimplemented in Container, InputContainer, ListBox, XonoticCharmap, XonoticColorpicker, and XonoticInputBox.

Definition at line 99 of file item.qc.

100 {}

References focusLeave().

Referenced by focusLeave().

◆ hideNotify()

void MenuItem::hideNotify ( )
virtualinherited

Reimplemented in Container, and XonoticCvarList.

Definition at line 59 of file item.qc.

60 {}

References hideNotify().

Referenced by hideNotify().

◆ keyDown()

virtual void XonoticPicker::keyDown ( )
virtual

Reimplemented from MenuItem.

Reimplemented in XonoticCharmap.

References entity(), keyDown(), and METHOD.

Referenced by keyDown().

◆ keyUp()

void MenuItem::keyUp ( )
virtualinherited

Reimplemented in Container, Nexposee, and Slider.

Definition at line 67 of file item.qc.

68 {
69 return 0; // unhandled
70 }

References keyUp().

Referenced by keyUp().

◆ mouseDrag()

virtual void XonoticPicker::mouseDrag ( )
virtual

Reimplemented from MenuItem.

References entity(), METHOD, mouseDrag(), and vector.

Referenced by mouseDrag().

◆ mouseMove()

virtual void XonoticPicker::mouseMove ( )
virtual

Reimplemented from MenuItem.

References entity(), METHOD, mouseMove(), and vector.

Referenced by mouseMove(), and mousePress().

◆ mousePress()

void XonoticPicker::mousePress ( )
virtual

Reimplemented from MenuItem.

Definition at line 42 of file picker.qc.

43{
44 this.mouseMove(this, pos);
45
46 if(this.focusedCell.x >= 0)
47 {
48 this.pressed = 1;
49 this.pressedCell = this.focusedCell;
50 }
51
52 return true;
53}
vector pressedCell
Definition picker.qh:29
vector focusedCell
Definition picker.qh:26
virtual void mouseMove()
bool pressed
Definition picker.qc:3

References focusedCell, mouseMove(), mousePress(), pressed, pressedCell, and vector.

Referenced by configureXonoticPicker(), and mousePress().

◆ mouseRelease()

virtual void XonoticPicker::mouseRelease ( )
virtual

Reimplemented from MenuItem.

References entity(), METHOD, mouseRelease(), and vector.

Referenced by mouseRelease().

◆ moveFocus()

virtual void XonoticPicker::moveFocus ( )
virtual

References entity(), METHOD, moveFocus(), and vector.

Referenced by moveFocus().

◆ relinquishFocus()

void MenuItem::relinquishFocus ( )
virtualinherited

Definition at line 11 of file item.qc.

12 {
13 entity par = this.parent;
14 if (!par) return;
15 if (par.instanceOfContainer) par.setFocus(par, NULL);
16 }
entity parent
Definition animhost.qc:7
entity() spawn
#define NULL
Definition post.qh:14

References entity(), NULL, parent, and relinquishFocus().

Referenced by relinquishFocus().

◆ resizeNotify()

◆ showNotify()

◆ toString()

void MenuItem::toString ( )
virtualinherited

Reimplemented in CheckBox, Image, Label, Slider, and XonoticWeaponsList.

Definition at line 102 of file item.qc.

103 {
104 return string_null;
105 }
string string_null
Definition nil.qh:9

References string_null, and toString().

Referenced by toString().

Member Data Documentation

◆ allowFocusSound

bool MenuItem::allowFocusSound = false
inherited

Definition at line 26 of file item.qh.

Referenced by focusEnter().

◆ alpha

float XonoticPicker::alpha = 1

Definition at line 14 of file picker.qh.

◆ columns

float XonoticPicker::columns = 2

Definition at line 18 of file picker.qh.

◆ disabled

float XonoticPicker::disabled = 0

Definition at line 13 of file picker.qh.

◆ disabledAlpha

float XonoticPicker::disabledAlpha = SKINALPHA_DISABLED

Definition at line 15 of file picker.qh.

◆ focusable

bool XonoticPicker::focusable = true

Definition at line 12 of file picker.qh.

◆ focused

bool MenuItem::focused = false
inherited

Definition at line 24 of file item.qh.

◆ focusedCell

vector XonoticPicker::focusedCell = '-1 -1 0'

Definition at line 26 of file picker.qh.

Referenced by mousePress().

◆ focusedCellAlpha

float XonoticPicker::focusedCellAlpha = 0

Definition at line 27 of file picker.qh.

◆ focusedCellTime

float XonoticPicker::focusedCellTime = 0

Definition at line 28 of file picker.qh.

◆ origin

vector MenuItem::origin = '0 0 0'
inherited

Definition at line 29 of file item.qh.

Referenced by resizeNotify().

◆ preferredFocusPriority

float MenuItem::preferredFocusPriority = 0
inherited

Definition at line 28 of file item.qh.

◆ pressedCell

vector XonoticPicker::pressedCell = '-1 -1 0'

Definition at line 29 of file picker.qh.

Referenced by mousePress().

◆ realCellSize

vector XonoticPicker::realCellSize = '0 0 0'

Definition at line 24 of file picker.qh.

◆ rows

float XonoticPicker::rows = 3

Definition at line 17 of file picker.qh.

◆ selectedCell

vector XonoticPicker::selectedCell = '-1 -1 0'

Definition at line 25 of file picker.qh.

◆ size

vector MenuItem::size = '0 0 0'
inherited

Definition at line 30 of file item.qh.

Referenced by resizeNotify().


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