mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-06-09 04:40:22 -04:00
Add special config option id to control texture pack state for code mods
This commit is contained in:
@@ -234,6 +234,8 @@ void recompui::open_choice_prompt(
|
||||
|
||||
std::function<void()> prev_cancel_action = std::move(prompt_state.cancel_action);
|
||||
|
||||
ContextId prev_context = try_close_current_context();
|
||||
|
||||
prompt_state.ui_context.open();
|
||||
|
||||
prompt_state.prompt_header->set_text(header_text);
|
||||
@@ -252,6 +254,10 @@ void recompui::open_choice_prompt(
|
||||
|
||||
prompt_state.ui_context.close();
|
||||
|
||||
if (prev_context != ContextId::null()) {
|
||||
prev_context.open();
|
||||
}
|
||||
|
||||
show_prompt(prev_cancel_action, focus_on_cancel);
|
||||
}
|
||||
|
||||
@@ -267,6 +273,8 @@ void recompui::open_info_prompt(
|
||||
|
||||
std::function<void()> prev_cancel_action = std::move(prompt_state.cancel_action);
|
||||
|
||||
ContextId prev_context = try_close_current_context();
|
||||
|
||||
prompt_state.ui_context.open();
|
||||
|
||||
prompt_state.prompt_header->set_text(header_text);
|
||||
@@ -283,6 +291,10 @@ void recompui::open_info_prompt(
|
||||
|
||||
prompt_state.ui_context.close();
|
||||
|
||||
if (prev_context != ContextId::null()) {
|
||||
prev_context.open();
|
||||
}
|
||||
|
||||
show_prompt(prev_cancel_action, true);
|
||||
}
|
||||
|
||||
@@ -295,6 +307,8 @@ void recompui::open_notification(
|
||||
|
||||
std::function<void()> prev_cancel_action = std::move(prompt_state.cancel_action);
|
||||
|
||||
ContextId prev_context = try_close_current_context();
|
||||
|
||||
prompt_state.ui_context.open();
|
||||
|
||||
prompt_state.prompt_header->set_text(header_text);
|
||||
@@ -308,6 +322,10 @@ void recompui::open_notification(
|
||||
|
||||
prompt_state.ui_context.close();
|
||||
|
||||
if (prev_context != ContextId::null()) {
|
||||
prev_context.open();
|
||||
}
|
||||
|
||||
show_prompt(prev_cancel_action, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user