feat(Outfit Editor): Add [+] & [-] buttons (#1441)

* And other general UI improvements
This commit is contained in:
tupoy-ya
2023-06-23 13:44:06 +05:00
committed by GitHub
parent ef86872235
commit e0bd043588
28 changed files with 415 additions and 381 deletions

View File

@ -30,7 +30,7 @@ namespace big
ImGui::SetNextItemWidth(400);
components::input_text_with_hint("", "Dictionary", &current_dict);
if (animations::has_anim_list_been_populated() && ImGui::ListBoxHeader("##dictionaries", ImVec2(400, 200)))
if (animations::has_anim_list_been_populated() && ImGui::BeginListBox("##dictionaries", ImVec2(400, 200)))
{
for (auto& entry : animations::all_dicts)
{
@ -45,10 +45,10 @@ namespace big
}
}
ImGui::ListBoxFooter();
ImGui::EndListBox();
}
if (selected_dict_anim_list.size() > 0 && ImGui::ListBoxHeader("##animations", ImVec2(400, 200)))
if (selected_dict_anim_list.size() > 0 && ImGui::BeginListBox("##animations", ImVec2(400, 200)))
{
for (auto& entry : selected_dict_anim_list)
{
@ -63,7 +63,7 @@ namespace big
}
}
ImGui::ListBoxFooter();
ImGui::EndListBox();
}
components::button("Stop", [] {

View File

@ -82,6 +82,8 @@ namespace big
g_notification_service->push_error("Find safe pos", "Failed to find a safe position");
});
ImGui::Checkbox("ImGui Demo", &g.window.demo);
components::command_button<"fastquit">();
if (ImGui::TreeNode("ADDRESSES"_T.data()))

View File

@ -21,7 +21,7 @@ namespace big
if (g.debug.logs.script_event.filter_player)
{
ImGui::ListBoxHeader("##filter_player");
ImGui::BeginListBox("##filter_player");
for (const auto& [_, player] : g_player_service->players())
{
if (components::selectable(player->get_name(), g.debug.logs.script_event.player_id == player->id()))