Debugging linkage stuff
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
Reference in New Issue
Block a user