mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2025-02-23 06:37:19 +01:00
Sub menu display name, assert on text input.
This commit is contained in:
parent
ababfd5827
commit
09a7589e54
@ -22,6 +22,11 @@ namespace recompui {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextInput::TextInput(Element *parent) : Element(parent, Events(EventType::Text), "input") {
|
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) {
|
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();
|
sub_menu_context.close();
|
||||||
|
|
||||||
// Reopen the context that was open when this function was called.
|
// Reopen the context that was open when this function was called.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user