Nuclide
Software Development Kit for id Technology (BETA)
Main Page
Related Pages
Classes
textmenu.h
1
/*
2
* Copyright (c) 2016-2022 Vera Visions LLC.
3
*
4
* Permission to use, copy, modify, and distribute this software for any
5
* purpose with or without fee is hereby granted, provided that the above
6
* copyright notice and this permission notice appear in all copies.
7
*
8
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
*/
16
17
var
string
g_textmenu =
""
;
18
var
float
g_textmenucheck = 0.0f;
19
58
class
59
ncTextMenuDict
:
ncDict
60
{
61
public
:
62
void
ncTextMenuDict
(
void
);
63
64
nonvirtual
void
Input(
int
inputNum);
65
};
66
67
ncTextMenuDict
g_textMenuDict
;
68
70
void
Textmenu_Call
(
string
);
71
73
void
Textmenu_Toggle
(
string
);
74
76
int
Textmenu_IsActive
(
void
);
77
79
void
Textmenu_Hide
(
void
);
80
82
void
Textmenu_Input
(
int
);
83
85
void
Textmenu_Draw
(
void
);
86
88
bool
Textmenu_Open
(
string
defName);
89
// end of client
ncDict
This class is responsible for handling groups of key/value pairs.
Definition:
Dict.h:35
ncTextMenuDict
Definition:
textmenu.h:60
Textmenu_IsActive
int Textmenu_IsActive(void)
Returns true or false depending on if a text menu is currently active.
Definition:
textmenu.qc:20
Textmenu_Call
void Textmenu_Call(string)
Forcefully displays a given text menu.
Definition:
textmenu.qc:35
g_textMenuDict
ncTextMenuDict g_textMenuDict
Definition:
textmenu.h:67
Textmenu_Draw
void Textmenu_Draw(void)
Called by Nuclide to draw text menus.
Definition:
textmenu.qc:51
Textmenu_Input
void Textmenu_Input(int)
Called by Nuclide to pass numeric input values to the text menu.
Definition:
textmenu.qc:73
Textmenu_Toggle
void Textmenu_Toggle(string)
Toggle the text menu, replacing it with the one specified if inactive.
Definition:
textmenu.qc:42
Textmenu_Open
bool Textmenu_Open(string defName)
Called by textMenuCreate console command, argument equals the decl name.
Definition:
textmenu.qc:97
Textmenu_Hide
void Textmenu_Hide(void)
Force the active text menu to be hidden.
Definition:
textmenu.qc:26
src
client
textmenu.h
2009-2025 (C) Nuclide is a project by
Vera Visions, L.L.C.
and is available under the
ISC License
.