feat(ui): add CGGameUI::GetLockedTarget
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run

This commit is contained in:
fallenoak 2026-01-31 23:47:29 -06:00
parent 22eb04e495
commit 0cf12c9c90
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 12 additions and 1 deletions

View File

@ -23,6 +23,7 @@
CScriptObject* CGGameUI::s_gameTooltip;
CSimpleTop* CGGameUI::s_simpleTop;
WOWGUID CGGameUI::s_lockedTarget;
void LoadScriptFunctions() {
// TODO
@ -57,6 +58,10 @@ void LoadScriptFunctions() {
// TODO
}
WOWGUID& CGGameUI::GetLockedTarget() {
return CGGameUI::s_lockedTarget;
}
void CGGameUI::Initialize() {
// TODO
@ -131,7 +136,7 @@ void CGGameUI::Initialize() {
// TODO
CGGameUI::s_gameTooltip = CScriptObject::GetScriptObjectByName("GameTooltip", CGTooltip::GetObjectType());
// TODO STORM_ASSERT(CGGameUI::s_gameTooltip);
STORM_ASSERT(CGGameUI::s_gameTooltip);
// TODO
}

View File

@ -1,6 +1,8 @@
#ifndef UI_GAME_C_G_GAME_UI_HPP
#define UI_GAME_C_G_GAME_UI_HPP
#include "util/guid/Types.hpp"
class CScriptObject;
class CSimpleTop;
@ -11,9 +13,13 @@ class CGGameUI {
static CSimpleTop* s_simpleTop;
// Static functions
static WOWGUID& GetLockedTarget();
static void Initialize();
static void InitializeGame();
static void RegisterFrameFactories();
private:
static WOWGUID s_lockedTarget;
};
#endif