From b10d0578e944cd0e2faf503a9c6f7fb6eb8ba883 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Sun, 19 Jan 2025 21:00:05 -0500 Subject: [PATCH] Refactor Rml document handling to use new ContextId system (prompts currently unimplemented) --- CMakeLists.txt | 1 + assets/config_menu.rml | 6 +- include/recomp_ui.h | 167 +++--- src/game/input.cpp | 11 +- src/ui/core/ui_context.cpp | 45 +- src/ui/core/ui_context.h | 3 + src/ui/ui_config.cpp | 159 ++---- src/ui/ui_launcher.cpp | 24 +- src/ui/ui_renderer.cpp | 1001 ++---------------------------------- src/ui/ui_renderer.h | 35 ++ src/ui/ui_state.cpp | 746 +++++++++++++++++++++++++++ 11 files changed, 977 insertions(+), 1221 deletions(-) create mode 100644 src/ui/ui_renderer.h create mode 100644 src/ui/ui_state.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 04490e9..4eb2d5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,6 +154,7 @@ set (SOURCES ${CMAKE_SOURCE_DIR}/src/game/rom_decompression.cpp ${CMAKE_SOURCE_DIR}/src/ui/ui_renderer.cpp + ${CMAKE_SOURCE_DIR}/src/ui/ui_state.cpp ${CMAKE_SOURCE_DIR}/src/ui/ui_launcher.cpp ${CMAKE_SOURCE_DIR}/src/ui/ui_config.cpp ${CMAKE_SOURCE_DIR}/src/ui/ui_config_sub_menu.cpp diff --git a/assets/config_menu.rml b/assets/config_menu.rml index 70b799e..0f53941 100644 --- a/assets/config_menu.rml +++ b/assets/config_menu.rml @@ -33,7 +33,7 @@ -
+
@@ -118,7 +118,7 @@ -->
-