You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
904 B
C++
31 lines
904 B
C++
/******************************************************************************
|
|
* File - component_guis.cpp
|
|
* Author - Joey Pollack
|
|
* Date - 2022/06/01 (y/m/d)
|
|
* Mod Date - 2022/06/01 (y/m/d)
|
|
* Description - Functions to render component editing GUIs
|
|
******************************************************************************/
|
|
|
|
#include "component_guis.h"
|
|
#include <editor/editor.h>
|
|
#include <utils/logger.h>
|
|
#include <dearimgui/imgui.h>
|
|
|
|
namespace lunarium { namespace editor
|
|
{
|
|
void CompGui::RenderTagComp(TagComponent& comp)
|
|
{
|
|
const int BUFFER_SIZE = 256;
|
|
static char buffer[BUFFER_SIZE] = "";
|
|
ImGui::Text("Tag:");
|
|
ImGui::SameLine();
|
|
strcpy(buffer, comp.Info.c_str());
|
|
ImGui::InputText("##Tag", buffer, BUFFER_SIZE);
|
|
comp.Info = buffer;
|
|
}
|
|
|
|
void CompGui::RenderTransformComp(TransformComponent& comp)
|
|
{
|
|
|
|
}
|
|
}} |