From 1845b90b4c91104e896d07b0cce47f850764c753 Mon Sep 17 00:00:00 2001 From: Brambor Date: Wed, 7 Aug 2024 00:45:24 +0200 Subject: [PATCH] Path Manager: (pre ImGui uilist) cataimgui::draw_colored_text -> draw_colored_text --- src/path_manager.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/path_manager.cpp b/src/path_manager.cpp index 42e6eb7a22a29..9ce7eae0a19c1 100644 --- a/src/path_manager.cpp +++ b/src/path_manager.cpp @@ -518,14 +518,14 @@ void path_manager_ui::enabled_active_button( const std::string action, bool enab void path_manager_ui::draw_controls() { // walk buttons - cataimgui::draw_colored_text( _( "Walk:" ) ); + draw_colored_text( _( "Walk:" ) ); ImGui::SameLine(); enabled_active_button( "WALK_PATH", pimpl->avatar_at_what_start_or_end() != -1 ); ImGui::SameLine(); enabled_active_button( "WALK_PATH_FROM_MIDDLE", !pimpl->avatar_at_what_paths().empty() ); // recording buttons - cataimgui::draw_colored_text( _( "Recording:" ) ); + draw_colored_text( _( "Recording:" ) ); ImGui::SameLine(); enabled_active_button( "START_RECORDING", !pimpl->is_recording_path() ); ImGui::SameLine(); @@ -535,7 +535,7 @@ void path_manager_ui::draw_controls() enabled_active_button( "STOP_RECORDING", pimpl->is_recording_path() ); // manage buttons - cataimgui::draw_colored_text( _( "Manage:" ) ); + draw_colored_text( _( "Manage:" ) ); ImGui::SameLine(); enabled_active_button( "DELETE_PATH", pimpl->selected_id != -1 ); ImGui::SameLine(); @@ -545,7 +545,7 @@ void path_manager_ui::draw_controls() pimpl->selected_id + 1 < static_cast( pimpl->paths.size() ) ); // name buttons - cataimgui::draw_colored_text( _( "Rename:" ) ); + draw_colored_text( _( "Rename:" ) ); ImGui::SameLine(); enabled_active_button( "RENAME_START", pimpl->selected_id != -1 ); ImGui::SameLine(); @@ -578,20 +578,20 @@ void path_manager_ui::draw_controls() pimpl->selected_id = i; } ImGui::SameLine(); - cataimgui::draw_colored_text( curr_path.name_start ); + draw_colored_text( curr_path.name_start ); ImGui::TableNextColumn(); - cataimgui::draw_colored_text( avatar_distance_from_tile( curr_path.recorded_path.front() ) ); + draw_colored_text( avatar_distance_from_tile( curr_path.recorded_path.front() ) ); ImGui::TableNextColumn(); - cataimgui::draw_colored_text( curr_path.name_end ); + draw_colored_text( curr_path.name_end ); ImGui::TableNextColumn(); - cataimgui::draw_colored_text( avatar_distance_from_tile( curr_path.recorded_path.back() ) ); + draw_colored_text( avatar_distance_from_tile( curr_path.recorded_path.back() ) ); ImGui::TableNextColumn(); - cataimgui::draw_colored_text( avatar_distance_from_tile( - curr_path.recorded_path[curr_path.avatar_closest_i_approximate()] ) ); + draw_colored_text( avatar_distance_from_tile( + curr_path.recorded_path[curr_path.avatar_closest_i_approximate()] ) ); ImGui::TableNextColumn(); ImGui::Text( "%zu", curr_path.recorded_path.size() );