mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2025-02-10 17:08:49 +01:00
Sub menu display name, assert on text input.
This commit is contained in:
parent
6022b7927b
commit
13e70e254a
@ -22,6 +22,11 @@ namespace recompui {
|
||||
}
|
||||
|
||||
TextInput::TextInput(Element *parent) : Element(parent, Events(EventType::Text), "input") {
|
||||
set_min_width(60.0f);
|
||||
set_max_width(400.0f);
|
||||
set_border_color(Color{ 242, 242, 242, 255 });
|
||||
set_border_bottom_width(1.0f);
|
||||
set_padding_bottom(6.0f);
|
||||
}
|
||||
|
||||
void TextInput::set_text(std::string_view text) {
|
||||
|
@ -394,7 +394,7 @@ void ModMenu::mod_configure_requested() {
|
||||
}
|
||||
}
|
||||
|
||||
config_sub_menu->enter(mod_details[active_mod_index].mod_id);
|
||||
config_sub_menu->enter(mod_details[active_mod_index].display_name);
|
||||
sub_menu_context.close();
|
||||
|
||||
// Reopen the context that was open when this function was called.
|
||||
|
Loading…
x
Reference in New Issue
Block a user