Add: send selected item name to CarrItem function

This commit is contained in:
jadis0x
2022-10-02 18:28:31 +03:00
committed by GitHub
parent aec090aafa
commit 5d84cb1614

View File

@@ -156,8 +156,8 @@ void DrawEntitiesTab() {
static int item_current = 0;
ImGui::Combo("##i", &item_current, items_items, IM_ARRAYSIZE(items_items));
if (ImGui::Button("Spawn##i")) {
print("--> %s\n",items_items[item_current]);
//call spawn function
//print("--> %s\n",items_items[item_current]);
Misc::CarryItem(items_items[item_current]);
}
ImGui::Spacing();
@@ -385,4 +385,4 @@ void DrawMenu(bool open_menu) {
}
ImGui::End();
}
}