@@ -243,14 +243,15 @@ class wish_mutate_callback: public uilist_callback
243
243
ImGui::TextColored ( c_green, " %s" , msg.c_str () );
244
244
msg.clear ();
245
245
input_context ctxt ( menu->input_category , keyboard_mode::keycode );
246
- ImGui::Text ( _ ( " [%s] find, [%s] quit, [t] toggle base trait" ),
247
- ctxt.get_desc ( " FILTER" ).c_str (), ctxt.get_desc ( " QUIT" ).c_str () );
248
246
249
- if ( only_active ) {
250
- ImGui::TextColored ( c_green, " %s" , _ ( " [a] show active traits (active)" ) );
251
- } else {
252
- ImGui::TextColored ( c_white, " %s" , _ ( " [a] show active traits" ) );
253
- }
247
+ cataimgui::TextKeybinding ( ctxt, " FILTER" , _ ( " Find" ),
248
+ menu->filtering && ( !menu->filter .empty () ) );
249
+ cataimgui::TextListSeparator ();
250
+ cataimgui::TextKeybinding ( ctxt, " t" , _ ( " Toggle base trait" ), false );
251
+ cataimgui::TextListSeparator ();
252
+ cataimgui::TextKeybinding ( ctxt, " a" , _ ( " Show active traits" ), only_active );
253
+ cataimgui::TextListSeparator ();
254
+ cataimgui::TextKeybinding ( ctxt, " QUIT" , _ ( " Quit" ), false );
254
255
}
255
256
256
257
~wish_mutate_callback () override = default ;
@@ -725,9 +726,20 @@ class wish_monster_callback: public uilist_callback
725
726
ImGui::TextColored ( c_green, " %s" , msg.c_str () );
726
727
msg.clear ();
727
728
input_context ctxt ( menu->input_category , keyboard_mode::keycode );
728
- ImGui::Text (
729
- _ ( " [%s] find, [f]riendly, [h]allucination, [i]ncrease group, [d]ecrease group, [%s] quit" ),
730
- ctxt.get_desc ( " FILTER" ).c_str (), ctxt.get_desc ( " QUIT" ).c_str () );
729
+
730
+ cataimgui::TextKeybinding ( ctxt, " FILTER" , _ ( " Find" ),
731
+ menu->filtering && ( !menu->filter .empty () ) );
732
+ cataimgui::TextListSeparator ();
733
+ cataimgui::TextKeybinding ( ctxt, " f" , _ ( " Friendly" ), friendly );
734
+ cataimgui::TextListSeparator ();
735
+ cataimgui::TextKeybinding ( ctxt, " h" , _ ( " Hallucination" ), hallucination );
736
+ cataimgui::TextListSeparator ();
737
+ cataimgui::TextKeybinding ( ctxt, " i" , _ ( " Increase Group" ), false );
738
+ cataimgui::TextListSeparator ();
739
+ cataimgui::TextKeybinding ( ctxt, " d" , _ ( " Decrease Group" ), false );
740
+ cataimgui::TextListSeparator ();
741
+ cataimgui::TextKeybinding ( ctxt, " QUIT" , _ ( " Quit" ), false );
742
+
731
743
}
732
744
ImGui::EndChild ();
733
745
}
@@ -1062,13 +1074,19 @@ class wish_item_callback: public uilist_callback
1062
1074
1063
1075
ImGui::TextColored ( c_green, " %s" , msg.c_str () );
1064
1076
input_context ctxt ( menu->input_category , keyboard_mode::keycode );
1065
- ImGui::Text ( _ ( " [%s] find, [%s] container, [%s] flag, [%s] everything, [%s] snippet, [%s] quit" ),
1066
- ctxt.get_desc ( " FILTER" ).c_str (),
1067
- ctxt.get_desc ( " CONTAINER" ).c_str (),
1068
- ctxt.get_desc ( " FLAG" ).c_str (),
1069
- ctxt.get_desc ( " EVERYTHING" ).c_str (),
1070
- ctxt.get_desc ( " SNIPPET" ).c_str (),
1071
- ctxt.get_desc ( " QUIT" ).c_str () );
1077
+
1078
+ cataimgui::TextKeybinding ( ctxt, " FILTER" , _ ( " Find" ),
1079
+ menu->filtering && ( !menu->filter .empty () ) );
1080
+ cataimgui::TextListSeparator ();
1081
+ cataimgui::TextKeybinding ( ctxt, " CONTAINER" , _ ( " Container" ), incontainer );
1082
+ cataimgui::TextListSeparator ();
1083
+ cataimgui::TextKeybinding ( ctxt, " FLAG" , _ ( " Flag" ), !flags.empty () );
1084
+ cataimgui::TextListSeparator ();
1085
+ cataimgui::TextKeybinding ( ctxt, " EVERYTHING" , _ ( " Everything" ), spawn_everything );
1086
+ cataimgui::TextListSeparator ();
1087
+ cataimgui::TextKeybinding ( ctxt, " SNIPPET" , _ ( " Snippet" ), chosen_snippet_id.first != -1 );
1088
+ cataimgui::TextListSeparator ();
1089
+ cataimgui::TextKeybinding ( ctxt, " QUIT" , _ ( " Quit" ), false );
1072
1090
}
1073
1091
};
1074
1092
@@ -1169,7 +1187,7 @@ void debug_menu::wishitem( Character *you, const tripoint_bub_ms &pos )
1169
1187
popup
1170
1188
.title ( _ ( " How many?" ) )
1171
1189
.width ( 20 )
1172
- .description ( granted.tname () )
1190
+ .description ( cb. spawn_everything ? _ ( " Everything " ) : granted.tname () )
1173
1191
.edit ( amount );
1174
1192
canceled = popup.canceled ();
1175
1193
}
0 commit comments