mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
feat(Outfit Editor): Add [+] & [-] buttons (#1441)
* And other general UI improvements
This commit is contained in:
@ -30,7 +30,7 @@ namespace big
|
||||
ImGui::SetNextItemWidth(400);
|
||||
components::input_text_with_hint("", "Dictionary", ¤t_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", [] {
|
||||
|
@ -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()))
|
||||
|
@ -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()))
|
||||
|
Reference in New Issue
Block a user