mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Started new Add Entity Panel, removed unused shaders, fixed premake5 problems
This commit is contained in:
@@ -50,7 +50,8 @@ public:
|
||||
ImGui::Text("Playing");
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
ImGui::Checkbox("##Playing", &component.IsPlaying);
|
||||
UI::ToggleButton("##Player", &component.IsPlaying);
|
||||
//ImGui::Checkbox("##Playing", &component.IsPlaying);
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
ComponentTableReset(component.IsPlaying, false);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "../Misc/InterfaceFonts.h"
|
||||
|
||||
#include "src/UI/ImUI.h"
|
||||
#include <src/Vendors/imgui/imgui.h>
|
||||
#include <src/Resource/FontAwesome5.h>
|
||||
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user