feat(ui): store tooltip pointer in CGGameUI::Initialize
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-27 19:31:19 -06:00
parent 379cbf7e61
commit cd167c54a3
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#include "ui/game/CGGameUI.hpp"
#include "client/Client.hpp"
#include "ui/CScriptObject.hpp"
#include "ui/FrameXML.hpp"
#include "ui/Key.hpp"
#include "ui/game/BattlefieldInfoScript.hpp"
@ -14,6 +15,7 @@
#include "util/CStatus.hpp"
#include <common/MD5.hpp>
CScriptObject* CGGameUI::s_gameTooltip;
CSimpleTop* CGGameUI::s_simpleTop;
void LoadScriptFunctions() {
@ -117,6 +119,11 @@ void CGGameUI::Initialize() {
// TODO digest validation
// TODO
CGGameUI::s_gameTooltip = CScriptObject::GetScriptObjectByName("GameTooltip", CGTooltip::GetObjectType());
// TODO STORM_ASSERT(CGGameUI::s_gameTooltip);
// TODO
}
void CGGameUI::InitializeGame() {

View File

@ -1,11 +1,13 @@
#ifndef UI_GAME_C_G_GAME_UI_HPP
#define UI_GAME_C_G_GAME_UI_HPP
class CScriptObject;
class CSimpleTop;
class CGGameUI {
public:
// Static variables
static CScriptObject* s_gameTooltip;
static CSimpleTop* s_simpleTop;
// Static functions