Commit Graph

7 Commits

Author SHA1 Message Date
StackZ a5f7134d1c 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.
2020-05-26 05:25:33 +02:00
StackZ f0dca7c784 Font & Text Changes.
`Gui::loadFont()` now needs a C2D_Font parameter & path. If you're using this, I suggest to update the function to match this. If you're using `Gui::loadFont()` to load the SystemFont, I suggest to remove that, since `Gui::init()` loads it now.

All the Text Functions can now optional use the C2D_Font parameter to use a specific font. (Uses SystemFont if nullptr.)

`Gui::unloadFont()` now needs a C2D_Font parameter to unload it.
2020-05-21 18:17:07 +02:00
StackZ 4dc2426fa5 Some more checks to avoid possible crashes. 2020-05-21 05:49:21 +02:00
RocketRobz e8f2b746e9 Add top-right rendering 2020-05-16 00:41:14 -06:00
StackZ a56b50c4c2 Remove tint param. 2020-03-05 05:44:50 +01:00
StackZ eceb6b884d Some changes & additions. (#2)
* Initial HID implementation.

Not everything may be right. I have to figure out some stuff tho.

* Add a tint param to `Gui::DrawSprite()`.

Also add Universal-Core logo.
2020-03-05 04:25:52 +01:00
StackZ 4ad2ee5517 Add Initial GUI core. 2020-02-05 13:32:47 +01:00