Add FOntRestore and Make Settings use default font

This commit is contained in:
2024-05-19 15:55:32 +02:00
parent 62d37d227d
commit 17c36bb05e
8 changed files with 93 additions and 35 deletions

View File

@ -49,6 +49,7 @@ std::string TextShort(const std::string& in, int max_len);
void TextMaxBox(R7Vec2 size);
void TextDefaultBox();
void TextFont(Font::Ref fnt);
void TextFontRestore();
void TextDefaultFont();
namespace Draw2 {
void Rect(R7Vec2 pos, R7Vec2 size, unsigned int color, int t = 1);

View File

@ -21,6 +21,14 @@
#include <renderd7/external/json.hpp>
#include <renderd7/renderd7.hpp>
namespace RenderD7 {
namespace IDB {
void Start();
void Stop();
void Restart();
} // namespace IDB
} // namespace RenderD7
// Outdated HidApi (HidV2Patched)
extern u32 d7_hDown;
extern u32 d7_hHeld;

View File

@ -97,13 +97,13 @@ class RSettings : public RenderD7::Scene {
private:
/// @brief State (Define for Menus)
enum RState {
RSETTINGS,
RSETTINGS, // Main Settings Menu
RINFO,
RSERVICES,
RMCONFIG,
RFTRACE,
RUI7,
RCREDITS
RIDB, // Internal Debugger
ROVERLAYS,
RFTRACE, // FTRace Menu
RUI7, // UI7 Menu
RCREDITS // Unused?
};
/// @param shared_request Defines requests from Draw to Logic