mirror of
https://github.com/DarkStore-3DS/Universal-Core.git
synced 2026-07-03 00:39:23 +00:00
Major Screen changes. (If using the screen class, read the description!!)
Changes which are needed when using the screen class:
- Add `void callConstructor() override { }` to your screen's public header.
- Call `Gui::DrawScreen();` to draw the screen.
- Call `Gui::ScreenLogic(u32 hDown, u32 hHeld, touchPosition touch);` to call the Logic.
- Call `Gui::CallConstructor();` to call the used screen's constructor.
- call `Gui::setScreen(std::make_unique<ScreenName>(), <true/ false, depends if you like to transfer the screen to the usedScreen directly.>);` to set the screen.
- Call `Gui::transferScreen();` in case you like to set the tempScreen to the used one.
- Get rid of the `Gui::screenBack();` calls and use `Gui::setScreen(...)` directly for it.
This commit is contained in:
+1
-4
@@ -29,8 +29,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
class Structs
|
||||
{
|
||||
class Structs {
|
||||
public:
|
||||
struct ButtonPos {
|
||||
int x;
|
||||
@@ -45,8 +44,6 @@ public:
|
||||
int y;
|
||||
int w;
|
||||
};
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user