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

Public Member Functions

 ATTRIB (Button, applyButton, entity)
 ATTRIB (Button, onClick, void(entity, entity))
 ATTRIB (Button, onClickEntity, entity)
 ATTRIB (Button, src, string)
 ATTRIB (Button, src2, string)
 ATTRIB (Button, srcSuffix, string)
 ATTRIB (Label, currentText, string)
 ATTRIB (Label, text, string)
 ATTRIB (Label, textEntity, entity)
 ATTRIB (MenuItem, parent, entity)
 ATTRIB (MenuItem, tooltip, string)
 ATTRIB (XonoticRadioButton, controlledCvar, string)
 ATTRIB (XonoticRadioButton, cvarOffValue, string)
 ATTRIB (XonoticRadioButton, cvarValue, string)
void CheckBox_Click (entity me, entity other)
virtual void configureButton ()
virtual void configureCheckBox ()
virtual void configureLabel ()
virtual void configureRadioButton ()
virtual void configureXonoticRadioButton ()
virtual void destroy ()
virtual void draw ()
virtual void focusEnter ()
virtual void focusLeave ()
virtual void hideNotify ()
virtual void keyDown ()
virtual void keyUp ()
virtual void loadCvars ()
virtual void mouseDrag ()
virtual void mouseMove ()
virtual void mousePress ()
virtual void mouseRelease ()
virtual void playClickSound ()
virtual void recalcPositionWithText ()
virtual void relinquishFocus ()
virtual void resizeNotify ()
virtual void saveCvars ()
virtual void setChecked ()
virtual void setText ()
virtual void showNotify ()
virtual void toString ()
 void (entity, entity) onClick

Public Attributes

float align = 0.5
bool allowColors = false
bool allowCut = false
float allowDeselect = 0
bool allowFocusSound = true
bool allowWrap = false
float allowWrap_spacing = 0
float alpha = SKINALPHA_TEXT
float alpha2 = 1
bool checked = false
float clickTime = 0
vector color = SKINCOLOR_RADIOBUTTON_N
vector color2 = '1 1 1'
vector colorC = SKINCOLOR_RADIOBUTTON_C
vector colorD = SKINCOLOR_RADIOBUTTON_D
vector colorF = SKINCOLOR_RADIOBUTTON_F
vector colorL = SKINCOLOR_TEXT
float condenseFactor = 1
float cvarValueIsAnotherCvar = 0
float disabled = 0
float disabledAlpha = SKINALPHA_DISABLED
bool disableOnClick = false
bool focusable = true
bool focused = false
float fontSize = SKINFONTSIZE_NORMAL
bool forcePressed = false
float group = 0
string image = SKINGFX_RADIOBUTTON
bool isBold = false
float keepspaceLeft = 0
float keepspaceRight = 0
float marginLeft = 0
float marginRight = 0
vector origin = '0 0 0'
bool overrideCondenseFactor = false
vector overrideRealOrigin = '0 0 0'
float preferredFocusPriority = 0
float pressed = 0
bool pulse = false
vector realFontSize = '0 0 0'
vector realOrigin = '0 0 0'
bool recalcPos = false
vector size = '0 0 0'
float src2scale = 1
float srcMulti = 0
float useDownAsChecked = 0

Detailed Description

Definition at line 4 of file radiobutton.qh.

Member Function Documentation

◆ ATTRIB() [1/14]

Button::ATTRIB ( Button ,
applyButton ,
entity  )
inherited

References applyButton, ATTRIB(), and entity().

◆ ATTRIB() [2/14]

Button::ATTRIB ( Button ,
onClick ,
void(entity, entity)  )
inherited

◆ ATTRIB() [3/14]

Button::ATTRIB ( Button ,
onClickEntity ,
entity  )
inherited

References ATTRIB(), and entity().

◆ ATTRIB() [4/14]

Button::ATTRIB ( Button ,
src ,
string  )
inherited

References ATTRIB().

◆ ATTRIB() [5/14]

Button::ATTRIB ( Button ,
src2 ,
string  )
inherited

References ATTRIB().

◆ ATTRIB() [6/14]

Button::ATTRIB ( Button ,
srcSuffix ,
string  )
inherited

References ATTRIB().

◆ ATTRIB() [7/14]

Label::ATTRIB ( Label ,
currentText ,
string  )
inherited

References ATTRIB().

◆ ATTRIB() [8/14]

Label::ATTRIB ( Label ,
text ,
string  )
inherited

References ATTRIB().

Referenced by ATTRIB(), ATTRIB(), and ATTRIB().

◆ ATTRIB() [9/14]

Label::ATTRIB ( Label ,
textEntity ,
entity  )
inherited

References ATTRIB(), and entity().

◆ ATTRIB() [10/14]

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

References entity(), and parent.

◆ ATTRIB() [11/14]

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

◆ ATTRIB() [12/14]

XonoticRadioButton::ATTRIB ( XonoticRadioButton ,
controlledCvar ,
string  )

References ATTRIB(), and controlledCvar.

Referenced by ATTRIB(), ATTRIB(), and ATTRIB().

◆ ATTRIB() [13/14]

XonoticRadioButton::ATTRIB ( XonoticRadioButton ,
cvarOffValue ,
string  )

References ATTRIB().

◆ ATTRIB() [14/14]

XonoticRadioButton::ATTRIB ( XonoticRadioButton ,
cvarValue ,
string  )

References ATTRIB().

◆ CheckBox_Click()

void CheckBox::CheckBox_Click ( entity me,
entity other )
inherited

References CheckBox_Click(), entity(), and other.

Referenced by CheckBox_Click(), and void().

◆ configureButton()

virtual void Button::configureButton ( )
virtualinherited

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

Referenced by configureButton().

◆ configureCheckBox()

virtual void CheckBox::configureCheckBox ( )
virtualinherited

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

Referenced by configureCheckBox().

◆ configureLabel()

virtual void Label::configureLabel ( )
virtualinherited

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

Referenced by configureLabel().

◆ configureRadioButton()

virtual void RadioButton::configureRadioButton ( )
virtualinherited

◆ configureXonoticRadioButton()

virtual void XonoticRadioButton::configureXonoticRadioButton ( )
virtual

◆ destroy()

◆ draw()

virtual void XonoticRadioButton::draw ( )
virtual

Reimplemented from CheckBox.

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 Button::keyDown ( )
virtualinherited

Reimplemented from MenuItem.

References entity(), keyDown(), METHOD, mousePress(), this, and vector.

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().

◆ loadCvars()

virtual void XonoticRadioButton::loadCvars ( )
virtual

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

Referenced by loadCvars().

◆ mouseDrag()

virtual void Button::mouseDrag ( )
virtualinherited

Reimplemented from MenuItem.

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

Referenced by mouseDrag(), and mousePress().

◆ mouseMove()

void MenuItem::mouseMove ( )
virtualinherited

Reimplemented in Container, InputBox, InputContainer, ListBox, Nexposee, XonoticPicker, XonoticScreenshotImage, and XonoticServerList.

Definition at line 72 of file item.qc.

73 {
74 return 0; // unhandled
75 }

References mouseMove(), and vector.

Referenced by mouseMove().

◆ mousePress()

void Button::mousePress ( )
virtualinherited

Reimplemented from MenuItem.

Definition at line 39 of file button.qc.

40 {
41 this.mouseDrag(this, pos); // verify coordinates
42 return true;
43 }
virtual void mouseDrag()

References mouseDrag(), mousePress(), and vector.

Referenced by keyDown(), and mousePress().

◆ mouseRelease()

virtual void Button::mouseRelease ( )
virtualinherited

Reimplemented from MenuItem.

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

Referenced by mouseRelease().

◆ playClickSound()

virtual void CheckBox::playClickSound ( )
virtualinherited

Reimplemented from Button.

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

Referenced by playClickSound().

◆ recalcPositionWithText()

virtual void Label::recalcPositionWithText ( )
virtualinherited

Reimplemented in BorderImage.

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

Referenced by recalcPositionWithText().

◆ 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()

virtual void Button::resizeNotify ( )
virtualinherited

Reimplemented from Label.

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

Referenced by resizeNotify().

◆ saveCvars()

virtual void XonoticRadioButton::saveCvars ( )
virtual

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

Referenced by saveCvars().

◆ setChecked()

virtual void XonoticRadioButton::setChecked ( )
virtual

Reimplemented from CheckBox.

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

Referenced by setChecked().

◆ setText()

virtual void Label::setText ( )
virtualinherited

Reimplemented in InputBox, and XonoticInputBox.

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

Referenced by setText().

◆ showNotify()

virtual void Button::showNotify ( )
virtualinherited

Reimplemented from MenuItem.

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

Referenced by showNotify().

◆ toString()

virtual void CheckBox::toString ( )
virtualinherited

Reimplemented from Label.

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

Referenced by toString().

◆ void()

RadioButton::void ( entity ,
entity  )
inherited

Member Data Documentation

◆ align

float Label::align = 0.5
inherited

Definition at line 15 of file label.qh.

◆ allowColors

bool Label::allowColors = false
inherited

Definition at line 17 of file label.qh.

◆ allowCut

bool Label::allowCut = false
inherited

Definition at line 16 of file label.qh.

◆ allowDeselect

float RadioButton::allowDeselect = 0
inherited

Definition at line 9 of file radiobutton.qh.

◆ allowFocusSound

bool Button::allowFocusSound = true
inherited

Definition at line 24 of file button.qh.

◆ allowWrap

bool Label::allowWrap = false
inherited

Definition at line 32 of file label.qh.

◆ allowWrap_spacing

float Label::allowWrap_spacing = 0
inherited

Definition at line 33 of file label.qh.

◆ alpha

float XonoticRadioButton::alpha = SKINALPHA_TEXT

Definition at line 22 of file radiobutton.qh.

◆ alpha2

float Button::alpha2 = 1
inherited

Definition at line 38 of file button.qh.

◆ checked

bool RadioButton::checked = false
inherited

Definition at line 7 of file radiobutton.qh.

◆ clickTime

float Button::clickTime = 0
inherited

Definition at line 26 of file button.qh.

◆ color

vector XonoticRadioButton::color = SKINCOLOR_RADIOBUTTON_N

Definition at line 10 of file radiobutton.qh.

◆ color2

vector Button::color2 = '1 1 1'
inherited

Definition at line 37 of file button.qh.

◆ colorC

vector XonoticRadioButton::colorC = SKINCOLOR_RADIOBUTTON_C

Definition at line 11 of file radiobutton.qh.

◆ colorD

vector XonoticRadioButton::colorD = SKINCOLOR_RADIOBUTTON_D

Definition at line 13 of file radiobutton.qh.

◆ colorF

vector XonoticRadioButton::colorF = SKINCOLOR_RADIOBUTTON_F

Definition at line 12 of file radiobutton.qh.

◆ colorL

vector Label::colorL = SKINCOLOR_TEXT
inherited

Definition at line 25 of file label.qh.

◆ condenseFactor

float Label::condenseFactor = 1
inherited

Definition at line 35 of file label.qh.

◆ cvarValueIsAnotherCvar

float XonoticRadioButton::cvarValueIsAnotherCvar = 0

Definition at line 18 of file radiobutton.qh.

◆ disabled

float CheckBox::disabled = 0
inherited

Definition at line 15 of file checkbox.qh.

◆ disabledAlpha

float XonoticRadioButton::disabledAlpha = SKINALPHA_DISABLED

Definition at line 23 of file radiobutton.qh.

◆ disableOnClick

bool Button::disableOnClick = false
inherited

Definition at line 28 of file button.qh.

◆ focusable

bool Button::focusable = true
inherited

Definition at line 23 of file button.qh.

◆ focused

bool MenuItem::focused = false
inherited

Definition at line 24 of file item.qh.

◆ fontSize

float XonoticRadioButton::fontSize = SKINFONTSIZE_NORMAL

Definition at line 8 of file radiobutton.qh.

◆ forcePressed

bool Button::forcePressed = false
inherited

Definition at line 31 of file button.qh.

◆ group

float RadioButton::group = 0
inherited

Definition at line 8 of file radiobutton.qh.

◆ image

string XonoticRadioButton::image = SKINGFX_RADIOBUTTON

Definition at line 9 of file radiobutton.qh.

◆ isBold

bool Label::isBold = false
inherited

Definition at line 11 of file label.qh.

◆ keepspaceLeft

float Label::keepspaceLeft = 0
inherited

Definition at line 18 of file label.qh.

◆ keepspaceRight

float Label::keepspaceRight = 0
inherited

Definition at line 19 of file label.qh.

◆ marginLeft

float Label::marginLeft = 0
inherited

Definition at line 20 of file label.qh.

◆ marginRight

float Label::marginRight = 0
inherited

Definition at line 21 of file label.qh.

◆ origin

vector Button::origin = '0 0 0'
inherited

Definition at line 40 of file button.qh.

◆ overrideCondenseFactor

bool Label::overrideCondenseFactor = false
inherited

Definition at line 37 of file label.qh.

◆ overrideRealOrigin

vector Label::overrideRealOrigin = '0 0 0'
inherited

Definition at line 36 of file label.qh.

◆ preferredFocusPriority

float MenuItem::preferredFocusPriority = 0
inherited

Definition at line 28 of file item.qh.

◆ pressed

float Button::pressed = 0
inherited

Definition at line 25 of file button.qh.

◆ pulse

bool Button::pulse = false
inherited

Definition at line 32 of file button.qh.

◆ realFontSize

vector Label::realFontSize = '0 0 0'
inherited

Definition at line 22 of file label.qh.

◆ realOrigin

vector Label::realOrigin = '0 0 0'
inherited

Definition at line 23 of file label.qh.

◆ recalcPos

bool Label::recalcPos = false
inherited

Definition at line 34 of file label.qh.

◆ size

vector Button::size = '0 0 0'
inherited

Definition at line 41 of file button.qh.

◆ src2scale

float Button::src2scale = 1
inherited

Definition at line 21 of file button.qh.

◆ srcMulti

float CheckBox::srcMulti = 0
inherited

Definition at line 14 of file checkbox.qh.

◆ useDownAsChecked

float CheckBox::useDownAsChecked = 0
inherited

Definition at line 10 of file checkbox.qh.


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