Skip to content

Commit 654c7fb

Browse files
committed
Path Manager: (pre ImGui uilist) cataimgui::draw_colored_text -> draw_colored_text
1 parent a1e6c59 commit 654c7fb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/path_manager.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -518,14 +518,14 @@ void path_manager_ui::enabled_active_button( const std::string action, bool enab
518518
void path_manager_ui::draw_controls()
519519
{
520520
// walk buttons
521-
cataimgui::draw_colored_text( _( "Walk:" ) );
521+
draw_colored_text( _( "Walk:" ) );
522522
ImGui::SameLine();
523523
enabled_active_button( "WALK_PATH", pimpl->avatar_at_what_start_or_end() != -1 );
524524
ImGui::SameLine();
525525
enabled_active_button( "WALK_PATH_FROM_MIDDLE", !pimpl->avatar_at_what_paths().empty() );
526526

527527
// recording buttons
528-
cataimgui::draw_colored_text( _( "Recording:" ) );
528+
draw_colored_text( _( "Recording:" ) );
529529
ImGui::SameLine();
530530
enabled_active_button( "START_RECORDING", !pimpl->is_recording_path() );
531531
ImGui::SameLine();
@@ -535,7 +535,7 @@ void path_manager_ui::draw_controls()
535535
enabled_active_button( "STOP_RECORDING", pimpl->is_recording_path() );
536536

537537
// manage buttons
538-
cataimgui::draw_colored_text( _( "Manage:" ) );
538+
draw_colored_text( _( "Manage:" ) );
539539
ImGui::SameLine();
540540
enabled_active_button( "DELETE_PATH", pimpl->selected_id != -1 );
541541
ImGui::SameLine();
@@ -545,7 +545,7 @@ void path_manager_ui::draw_controls()
545545
pimpl->selected_id + 1 < static_cast<int>( pimpl->paths.size() ) );
546546

547547
// name buttons
548-
cataimgui::draw_colored_text( _( "Rename:" ) );
548+
draw_colored_text( _( "Rename:" ) );
549549
ImGui::SameLine();
550550
enabled_active_button( "RENAME_START", pimpl->selected_id != -1 );
551551
ImGui::SameLine();
@@ -578,19 +578,19 @@ void path_manager_ui::draw_controls()
578578
pimpl->selected_id = i;
579579
}
580580
ImGui::SameLine();
581-
cataimgui::draw_colored_text( curr_path.name_start );
581+
draw_colored_text( curr_path.name_start );
582582

583583
ImGui::TableNextColumn();
584-
cataimgui::draw_colored_text( avatar_distance_from_tile( curr_path.recorded_path.front() ) );
584+
draw_colored_text( avatar_distance_from_tile( curr_path.recorded_path.front() ) );
585585

586586
ImGui::TableNextColumn();
587-
cataimgui::draw_colored_text( curr_path.name_end );
587+
draw_colored_text( curr_path.name_end );
588588

589589
ImGui::TableNextColumn();
590-
cataimgui::draw_colored_text( avatar_distance_from_tile( curr_path.recorded_path.back() ) );
590+
draw_colored_text( avatar_distance_from_tile( curr_path.recorded_path.back() ) );
591591

592592
ImGui::TableNextColumn();
593-
cataimgui::draw_colored_text( avatar_distance_from_tile(
593+
draw_colored_text( avatar_distance_from_tile(
594594
curr_path.recorded_path[curr_path.avatar_closest_i_approximate()] ) );
595595

596596
ImGui::TableNextColumn();

0 commit comments

Comments
 (0)