mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-07-09 06:53:49 -04:00
Reimplement prompts as a separate UI context and make it so the quit game prompt doesn't bring up the config menu
This commit is contained in:
+2
-2
@@ -29,7 +29,7 @@ namespace recompui {
|
||||
class MenuController {
|
||||
public:
|
||||
virtual ~MenuController() {}
|
||||
virtual Rml::ElementDocument* load_document(Rml::Context* context) = 0;
|
||||
virtual void load_document() = 0;
|
||||
virtual void register_events(UiEventListenerInstancer& listener) = 0;
|
||||
virtual void make_bindings(Rml::Context* context) = 0;
|
||||
};
|
||||
@@ -56,7 +56,6 @@ namespace recompui {
|
||||
ContextId get_launcher_context_id();
|
||||
ContextId get_config_context_id();
|
||||
ContextId get_config_sub_menu_context_id();
|
||||
ContextId get_close_prompt_context_id();
|
||||
|
||||
enum class ConfigTab {
|
||||
General,
|
||||
@@ -79,6 +78,7 @@ namespace recompui {
|
||||
NumVariants,
|
||||
};
|
||||
|
||||
void init_prompt_context();
|
||||
void open_prompt(
|
||||
const std::string& headerText,
|
||||
const std::string& contentText,
|
||||
|
||||
Reference in New Issue
Block a user