fix revert
This commit is contained in:
@@ -6,9 +6,6 @@ namespace sandbox
|
||||
void test_panel_2::on_attach()
|
||||
{
|
||||
hack::log()("on_attach");
|
||||
|
||||
// set layer params
|
||||
// m_passport.m_name = "test_panel";
|
||||
}
|
||||
|
||||
void test_panel_2::on_detach()
|
||||
@@ -22,24 +19,8 @@ namespace sandbox
|
||||
ImGui::SetNextWindowSize(m_size);
|
||||
|
||||
if (!ImGui::Begin("#test_panel_2", &m_p_open, m_window_flags)) ImGui::End();
|
||||
if (ImGui::Button("RUN", ImVec2(28, 30)))
|
||||
{
|
||||
VE::event e { "target_id", test_event::TEST_EVEN , std::string("test event message") };
|
||||
execute(e);
|
||||
}
|
||||
|
||||
VE_PUSH_FONT(ICON, 18);
|
||||
|
||||
if (ImGui::Button(VE::style::icon::ICON_STOP, ImVec2(28, 30)))
|
||||
{
|
||||
VE::event e { "target_id", test_event::TEST_EVEN , std::string("test icon button") };
|
||||
execute(e);
|
||||
}
|
||||
|
||||
ImGui::Text(VE::style::icon::ICON_PAINT_BRUSH, " Paint" );
|
||||
ImGui::Text("\xef\x87\xbc");
|
||||
|
||||
VE_POP_FONT();
|
||||
m_local_panel.render();
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
#include <VE.hpp>
|
||||
|
||||
#include "local_panel/local_panel.hpp"
|
||||
|
||||
namespace sandbox
|
||||
{
|
||||
class test_panel_2 : public VE::layer
|
||||
@@ -10,6 +12,8 @@ namespace sandbox
|
||||
|
||||
ImVec2 m_size = ImVec2{ 400.f, 400.f };
|
||||
ImVec2 m_pos = ImVec2{ 400.f, 400.f };
|
||||
|
||||
local_panel m_local_panel;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user