Sub menu display name, assert on text input.

This commit is contained in:
Dario 2025-01-31 22:13:09 -03:00
parent 6022b7927b
commit 13e70e254a
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -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.