UFO: Alien Invasion
|
#include "ui_main.h"
#include "ui_internal.h"
#include "ui_draw.h"
#include "ui_timer.h"
#include "ui_font.h"
#include "ui_parse.h"
#include "ui_sound.h"
#include "../cl_menu.h"
#include "node/ui_node_abstractnode.h"
#include "ui_lua.h"
#include <vector>
#include <string>
Go to the source code of this file.
Macros | |
#define | MAX_CONFUNC_SIZE 512 |
Functions | |
int | UI_DebugMode (void) |
Get the current debug mode (0 mean disabled) More... | |
void | UI_ExecuteConfunc (const char *fmt,...) |
Executes confunc - just to identify those confuncs in the code - in this frame. More... | |
void * | UI_AllocHunkMemory (size_t size, int align, bool reset) |
static void | UI_Restart_f (void) |
Reloads the ui scripts and reinitializes the ui. More... | |
void | UI_Reinit (void) |
void | UI_Shutdown (void) |
Reset and free the UI data hunk. More... | |
void | UI_FinishInit (void) |
Finish initialization after everything was loaded. More... | |
void | UI_Init (void) |
Variables | |
uiGlobal_t | ui_global |
memPool_t * | ui_dynStringPool |
memPool_t * | ui_dynPool |
memPool_t * | ui_sysPool |
#define MAX_CONFUNC_SIZE 512 |
Definition at line 104 of file ui_main.cpp.
Allocate memory from hunk managed by the UI code This memory is allocated one time, and never released.
size | Quantity of memory expected |
align | Alignement of the expected memory |
reset | If true initilize the memory with 0 |
Definition at line 126 of file ui_main.cpp.
References uiGlobal_s::adata, uiGlobal_s::adataize, and uiGlobal_s::curadata.
Referenced by UI_AllocNodeWithoutNew(), UI_AllocStaticColor(), UI_AllocStaticFloat(), UI_AllocStaticString(), UI_InitializeNodeBehaviour(), UI_ParseExcludeRect(), and UI_RegisterNodePropertyPosSize_().
Get the current debug mode (0 mean disabled)
Definition at line 52 of file ui_main.cpp.
References cvar_s::integer.
Referenced by UI_Draw(), and UI_GetNodeInTreeAtPosition().
void UI_ExecuteConfunc | ( | const char * | fmt, |
... | |||
) |
Executes confunc - just to identify those confuncs in the code - in this frame.
[in] | fmt | Construct string it will execute (command and param) |
Definition at line 110 of file ui_main.cpp.
References Cmd_vExecuteString().
Referenced by CL_ActorAddToTeamList(), CL_ActorClientAction(), CL_ActorReactionFireAbortShot(), CL_ActorReactionFireAddTarget(), CL_ActorReactionFireChange(), CL_ActorReactionFireRemoveTarget(), CL_ActorReactionFireTargetUpdate(), CL_ActorRemoveFromTeamList(), CL_ActorResetClientAction(), CL_ActorSelect(), CL_ActorWound(), CL_AddBrushModel(), CL_BattlescapeRadarGenerateAllRelease_f(), CL_BattlescapeRadarGenPreview_f(), CL_DoEndRound(), CL_Reset(), CLMN_AddBindings(), CLMN_AddUIBindings(), CLMN_InitKeyList_f(), GAME_AppendTeamMember(), GAME_GetImportData(), GAME_InitializeBattlescape(), GAME_InitUIData(), GAME_LoadTeamInfo(), GAME_ResetCharacters(), GAME_TeamSlotComments_f(), GAME_UpdateTeamMenuParameters_f(), HUD_ActorSelectionChangeListener(), HUD_ActorWoundData_f(), HUD_DisplayActions(), HUD_DisplayFiremodeEntry(), HUD_DisplayImpossibleReaction(), HUD_DisplayPossibleReaction(), HUD_InitUI(), HUD_SetWeaponButton(), HUD_Update(), HUD_UpdateActorLoad_f(), HUD_UpdateActorStats(), HUD_UpdateButtons(), INV_ItemDescription(), INV_UpdateActorLoad_f(), INV_UpdateObject_f(), Irc_Client_CmdPrivmsg(), TUT_GetTutorials_f(), UI_CvarChangeListener(), UI_MaterialEditorUpdate(), WEB_Auth_f(), WEB_CGameDelete(), WEB_CGameListForUser(), WEB_CGameUpload(), and WEB_ListCGameFilesCallback().
Finish initialization after everything was loaded.
Definition at line 268 of file ui_main.cpp.
References UI_FinishWindowsInit().
Referenced by UI_InitStack().
Definition at line 278 of file ui_main.cpp.
References uiGlobal_s::adata, uiGlobal_s::adataize, Cmd_AddCommand(), Com_Printf(), uiGlobal_s::curadata, CVAR_ARCHIVE, CVAR_DEVELOPER, Cvar_Get(), cvar_s::integer, Mem_CreatePool, Mem_PoolAllocTypeN, OBJZERO, UI_InitActions(), UI_InitData(), UI_InitDraw(), UI_InitLua(), UI_InitNodes(), UI_InitWindows(), UI_Restart_f(), and ui_sounds.
Referenced by CL_InitLocal(), ParticleTest::SetUpTestCase(), UILevel2Test::SetUpTestCase(), ScriptTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), CampaignTest::SetUpTestCase(), and UI_Restart_f().
Reinit input and font
Definition at line 191 of file ui_main.cpp.
References UI_InitFonts(), UI_InvalidateMouse(), and UI_ReleaseInput().
Referenced by UI_Restart_f(), and VID_Restart_f().
Reloads the ui scripts and reinitializes the ui.
Definition at line 140 of file ui_main.cpp.
References CLMN_Init(), CLMN_Shutdown(), Com_Printf(), FS_BuildFileList(), FS_NextScriptHeader(), i, uiNode_t::name, name, Q_streq, R_FontInit(), R_FontShutdown(), type, UI_Init(), UI_ParseAndLoadLuaScript(), UI_ParseComponent(), UI_ParseFont(), UI_ParseSprite(), UI_ParseUIModel(), UI_ParseWindow(), UI_PushWindow(), UI_Reinit(), UI_Shutdown(), uiGlobal_s::windowStack, and uiGlobal_s::windowStackPos.
Referenced by UI_Init().
Reset and free the UI data hunk.
Definition at line 205 of file ui_main.cpp.
References uiGlobal_s::adata, uiNode_t::behaviour, Cmd_Exists(), Cmd_RemoveCommand(), uiGlobal_s::components, uiNode_t::firstChild, i, Mem_Free, Mem_FreePool, uiNode_t::name, uiNode_t::next, uiGlobal_s::numWindows, OBJZERO, uiNode_t::parent, UI_FontShutdown(), UI_GetNodeBehaviour(), UI_ResetInput(), UI_ResetTimers(), UI_ShutdownLua(), and uiGlobal_s::windows.
Referenced by CL_Shutdown(), UILevel2Test::TearDownTestCase(), TEST_Shutdown(), and UI_Restart_f().
memPool_t* ui_dynPool |
Definition at line 41 of file ui_main.cpp.
Referenced by uiAbstractValueNode::clone(), uiModelNode::initNodeDynamic(), UI_AddLineChartLine(), UI_AllocNodeWithoutNew(), and UI_SetKeyBindingEx().
memPool_t* ui_dynStringPool |
Definition at line 40 of file ui_main.cpp.
Referenced by UI_FreeStringProperty(), UI_Model_SetAnimationSource(), UI_Model_SetModelSource(), UI_Model_SetSkinSource(), UI_Model_SetTagSource(), UI_Node_SetFont(), UI_Node_SetImage(), UI_Node_SetText(), UI_Node_SetTooltip(), and UI_NodeSetProperty().
uiGlobal_t ui_global |
Definition at line 38 of file ui_main.cpp.
Referenced by uiTextListNode::draw(), uiTextNode::draw(), uiText2Node::draw(), uiWindowNode::draw(), UI_AllocNodeWithoutNew(), UI_AllocStaticAction(), UI_AllocStaticKeyBinding(), UI_AllocStaticSprite(), UI_CloseAllWindow(), UI_CloseWindowByRef(), UI_CompleteWithWindow(), UI_CreateWindow(), UI_DebugListWindows_f(), UI_DeleteWindowFromStack(), UI_Draw(), UI_ExecuteAction(), UI_FinishWindowsInit(), UI_FocusNextActionNode(), UI_FreeStringProperty(), UI_GetActiveWindow(), UI_GetComponent(), UI_GetDataVersion(), UI_GetKeyBindingByIndex(), UI_GetKeyBindingCount(), UI_GetLastFullScreenWindow(), UI_GetNodeAtPosition(), UI_GetOption(), UI_GetSpriteByName(), UI_GetText(), UI_GetTextFromList(), UI_GetUIModel(), UI_GetVariable(), UI_GetWindow(), UI_GetWindowPositionFromStackByName(), UI_InitRawActionValue(), UI_InitStack(), UI_InsertComponent(), UI_InsertWindow(), UI_InsertWindowIntoStack(), UI_InvalidateStack(), UI_IsMouseOnWindow(), UI_KeyPressed(), UI_LeftClick(), UI_ListUIModels_f(), UI_MoveWindowOnTop(), UI_ParseNodeBody(), UI_ParseProperty(), UI_ParseUIModel(), UI_ParseWindow(), UI_PopWindow(), UI_PopWindowWithEscKey(), UI_PushWindow(), UI_RegisterLinkedListText(), UI_RegisterOption(), UI_RegisterText(), UI_RemoveWindow(), UI_RemoveWindowAtPositionFromStack(), UI_ResetData(), UI_SetKeyBindingEx(), UI_SpriteExists(), UI_TextNodeGenerateLineSplit(), uiText2Node::updateCache(), and uiTextNode::updateCache().
memPool_t* ui_sysPool |
Definition at line 42 of file ui_main.cpp.
Referenced by UI_AddListener(), UI_ParseFont(), UI_ParseUIModel(), UI_PoolAllocAction(), UI_RegisterNodePropertyPosSize_(), and UI_WindowNodeAddIndexedNode().