GigaPasjans
Loading...
Searching...
No Matches
SettingsScreen.h
1// Plik utworzony przez Piotra ChudziƄskiego w dniu 18.04.2025
2#pragma once
3#include <phosphorus/GameObject.h>
4#include "../Screen.h"
5#include "SettingComponent.h"
6
7namespace Game
8{
12 class SettingsScreen : public IScreen
13 {
14 private:
18 UniqueRef<Andromenda::SelectionTextComponent> m_Submit;
19
23 std::vector<UniqueRef<SettingComponent>> m_SettingComponents;
24
25 protected:
30
35
36 public:
37 explicit SettingsScreen(Phosphorus::GameObject *gameObject);
38
42 static void GoBack();
43
47 void Build(Andromenda::Surface &surface) override;
48
52 void Draw() override {}
53
57 void OnSurfaceCallback(const String &id) override;
58 };
59} // namespace Game
The renderer of component registry.
Definition Surface.h:28
Represents object that registers components .
Definition Screen.h:57
Phosphorus::GameObject * m_GameObject
GameObject instance that holds setting parameters.
Definition SettingsScreen.h:34
void OnSurfaceCallback(const String &id) override
Handles callbacks from surface elements.
Definition SettingsScreen.cpp:72
void Build(Andromenda::Surface &surface) override
Builds the UI components for the settings screen.
Definition SettingsScreen.cpp:37
static void GoBack()
Static callback to exit the settings screen.
Definition SettingsScreen.cpp:35
WideString m_SubmitText
Text displayed on the submit button.
Definition SettingsScreen.h:29
void Draw() override
Draws the settings screen (currently empty).
Definition SettingsScreen.h:52
Represents named set of parameters which can be serialized.
Definition GameObject.h:274
Represents a mutable sequence of characters, providing various member functions for string manipulati...
Definition String.h:16
Represents a mutable sequence of utf-16 characters, providing various member functions for string man...
Definition WideString.h:14