Started new Add Entity Panel, removed unused shaders, fixed premake5 problems

This commit is contained in:
antopilo
2024-04-02 23:09:33 -04:00
parent 3ed21d0e01
commit f4d71b9977
10 changed files with 177 additions and 41 deletions

View File

@@ -1540,9 +1540,48 @@ namespace Nuake {
{
if (UI::PrimaryButton("Add Entity"))
{
ImGui::OpenPopup("create_entity_popup");
ImGui::OpenPopup("create_entity_new_popup");
}
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, { 8, 8 });
if (ImGui::BeginPopup("create_entity_new_popup"))
{
ImGui::BeginChild("entity_child", ImVec2(442, 442), ImGuiChildFlags_AlwaysUseWindowPadding);
std::string searchQuery = "";
ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x);
ImGui::InputTextWithHint("##search", "Search entity", &searchQuery, 0, 0, 0);
ImGui::PopItemWidth();
ImGui::Button("Empty", { 130, 130 });
ImGui::SameLine();
ImGui::Button("3D", { 130, 130 });
ImGui::SameLine();
ImGui::Button("Lights", { 130, 130 });
ImGui::Button("Physics", { 130, 130 });
ImGui::SameLine();
ImGui::Button("Shapes", { 130, 130 });
ImGui::SameLine();
ImGui::Button("Scripts", { 130, 130 });
ImGui::Button("Prefabs", { 130, 130 });
ImGui::SameLine();
ImGui::Button("Utilities", { 130, 130 });
ImGui::SameLine();
ImGui::BeginDisabled();
ImGui::Button("Addons", { 130, 130 });
ImGui::EndDisabled();
ImGui::EndChild();
ImGui::EndPopup();
}
ImGui::PopStyleVar();
if (ImGui::BeginPopup("create_entity_popup"))
{
if (ImGui::MenuItem("Empty"))