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

Go to the source code of this file.

Classes

class  ModalController

Functions

void DialogCloseButton_Click (entity button, entity tab)
void DialogOpenButton_Click (entity button, entity tab)
void DialogOpenButton_Click_withCoords (entity button, entity tab, vector theOrigin, vector theSize)
void TabButton_Click (entity button, entity tab)

Variables

float ModalController_state
vector origin
vector size
entity tabSelectingButton

Function Documentation

◆ DialogCloseButton_Click()

void DialogCloseButton_Click ( entity button,
entity tab )

Definition at line 48 of file modalcontroller.qc.

49 {
50 tab.parent.hideChild(tab.parent, tab, 0);
51 }

References entity().

Referenced by Dialog_close().

◆ DialogOpenButton_Click()

void DialogOpenButton_Click ( entity button,
entity tab )

◆ DialogOpenButton_Click_withCoords()

void DialogOpenButton_Click_withCoords ( entity button,
entity tab,
vector theOrigin,
vector theSize )

Definition at line 36 of file modalcontroller.qc.

37 {
38 if (tab.ModalController_state)
39 return;
40 if (button)
41 button.forcePressed = true;
42 if (tab.parent.focusedChild)
43 tab.parent.focusedChild.saveFocus(tab.parent.focusedChild);
44 tab.ModalController_controllingButton = button;
45 tab.parent.showChild(tab.parent, tab, theOrigin, theSize, 0);
46 }

◆ TabButton_Click()

void TabButton_Click ( entity button,
entity tab )

Definition at line 21 of file modalcontroller.qc.

22 {
23 if (tab.ModalController_state == 1)
24 return;
25 tab.parent.hideAll(tab.parent, 0);
26 button.forcePressed = true;
27 tab.ModalController_controllingButton = button;
28 tab.parent.showChild(tab.parent, tab, button.origin, button.size, 0);
29 }

References entity().

Referenced by m_activate_window(), and ModalController_addTab().

Variable Documentation

◆ ModalController_state

float ModalController_state

Definition at line 43 of file modalcontroller.qh.

◆ origin

vector origin

Definition at line 45 of file modalcontroller.qh.

◆ size

vector size

Definition at line 46 of file modalcontroller.qh.

◆ tabSelectingButton

entity tabSelectingButton

Definition at line 44 of file modalcontroller.qh.