Nuclide
Software Development Kit for id Technology (BETA)
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
17var string g_textmenu = "";
18var float g_textmenucheck = 0.0f;
19
58class
60{
61public:
62 void ncTextMenuDict(void);
63
64 nonvirtual void Input(int inputNum);
65};
66
68
70void Textmenu_Call(string);
71
73void Textmenu_Toggle(string);
74
76int Textmenu_IsActive(void);
77
79void Textmenu_Hide(void);
80
82void Textmenu_Input(int);
83
85void Textmenu_Draw(void);
86
88bool Textmenu_Open(string defName);
89 // end of client
This class is responsible for handling groups of key/value pairs.
Definition: Dict.h:35
Definition: textmenu.h:60
int Textmenu_IsActive(void)
Returns true or false depending on if a text menu is currently active.
Definition: textmenu.qc:20
void Textmenu_Call(string)
Forcefully displays a given text menu.
Definition: textmenu.qc:35
ncTextMenuDict g_textMenuDict
Definition: textmenu.h:67
void Textmenu_Draw(void)
Called by Nuclide to draw text menus.
Definition: textmenu.qc:51
void Textmenu_Input(int)
Called by Nuclide to pass numeric input values to the text menu.
Definition: textmenu.qc:73
void Textmenu_Toggle(string)
Toggle the text menu, replacing it with the one specified if inactive.
Definition: textmenu.qc:42
bool Textmenu_Open(string defName)
Called by textMenuCreate console command, argument equals the decl name.
Definition: textmenu.qc:97
void Textmenu_Hide(void)
Force the active text menu to be hidden.
Definition: textmenu.qc:26