Debugging linkage stuff

This commit is contained in:
2026-08-11 19:58:07 +08:00
parent 8d4535ff00
commit 18fe809d4a
21 changed files with 1584 additions and 1 deletions
@@ -0,0 +1,25 @@
#include "../GameState.h"
#include "../GameStateManager.h"
#include "../UIRenderer.h"
namespace {
constexpr float kSafeTop = 350.0f;
class Menu1State : public GameState {
public:
void Render() override {
UI::DrawText("MENU 1", 60.0f, {20.0f, kSafeTop}, UI::TextAlign::Left);
UI::DrawText("THIS IS MENU ONE", 36.0f, {20.0f, kSafeTop + 90.0f}, UI::TextAlign::Left);
if (UI::Button("BACK", 56.0f, {20.0f, kSafeTop + 220.0f}, UI::TextAlign::Left)) {
GameStateManager::Instance().RequestStateChange(StateID::MainMenu);
}
}
};
} // namespace
std::unique_ptr<GameState> CreateMenu1State() {
return std::make_unique<Menu1State>();
}