refactor!: Modify command argument handling and move on_
method to bool_command (#1826)
This commit is contained in:
@ -70,8 +70,8 @@ namespace big
|
||||
}
|
||||
|
||||
ImGui::PushItemWidth(300);
|
||||
components::input_text_with_hint("Category", "Category", &category);
|
||||
components::input_text_with_hint("Location name", "New location", &new_location_name);
|
||||
components::input_text_with_hint("Category", "Category", category);
|
||||
components::input_text_with_hint("Location name", "New location", new_location_name);
|
||||
ImGui::PopItemWidth();
|
||||
|
||||
components::button("Save current location", [] {
|
||||
@ -140,7 +140,7 @@ namespace big
|
||||
components::small_text("Double click to teleport\nShift click to delete");
|
||||
|
||||
ImGui::Spacing();
|
||||
components::input_text_with_hint("##filter", "Search", &filter);
|
||||
components::input_text_with_hint("##filter", "Search", filter);
|
||||
|
||||
ImGui::BeginGroup();
|
||||
components::small_text("Categories");
|
||||
|
@ -296,7 +296,7 @@ namespace big
|
||||
ImGui::SameLine();
|
||||
ImGui::BeginGroup();
|
||||
static std::string input_file_name;
|
||||
components::input_text_with_hint("Weapon Loadout Filename", "Loadout Name", &input_file_name);
|
||||
components::input_text_with_hint("Weapon Loadout Filename", "Loadout Name", input_file_name);
|
||||
components::button("Save Loadout", [] {
|
||||
persist_weapons::save_weapons(input_file_name);
|
||||
input_file_name.clear();
|
||||
|
Reference in New Issue
Block a user