From 30c6a82fcc50e8fed61550f2cf27bbf4e28338ba Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 26 Sep 2025 10:53:33 -0400 Subject: pke-editor: print active player control sets --- editor/editor.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/editor.cpp b/editor/editor.cpp index bf17860..12bc9d0 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -1126,6 +1126,19 @@ void RecordImGuiPlayerInput() { ImGuiTableFlags_RowBg }; + + pk_arr_t &input_sets = pke_input_get_input_sets(); + pk_arr_t &active_handles = pke_input_get_active_input_action_set_handles(); + + if (ImGui::BeginTable("Active Sets", 1, tableFlags)) { + for (u = 0; u < active_handles.next; ++u) { + ImGui::TableNextRow(); + ImGui::TableSetColumnIndex(0); + ImGui::Text("Active: %hhu", static_cast(active_handles[u])); + } + ImGui::EndTable(); + } + if (ImGui::BeginTable("Player Inputs", 9, tableFlags)) { ImGui::TableSetupColumn("Set Index/Title"); ImGui::TableSetupColumn("Set Flags"); @@ -1138,7 +1151,6 @@ void RecordImGuiPlayerInput() { ImGui::TableSetupColumn("1 Mods"); ImGui::TableHeadersRow(); - pk_arr_t input_sets = pke_input_get_input_sets(); for (u = 0; u < input_sets.next; ++u) { set = &input_sets[u]; for (i = 0; i < set->actionCount; ++i) { -- cgit v1.2.3