add on detach

This commit is contained in:
2025-04-17 16:50:12 +03:00
parent de84573915
commit f2960ba125
4 changed files with 14 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ namespace example
hack::log()("on_attach");
}
void ui_layer::on_detach()
{
VE::DISCONNECT(this);
hack::log()("on_detach");
}
void ui_layer::render()
{
ImGui::SetNextWindowPos(m_pos);

View File

@@ -11,6 +11,12 @@ namespace example
hack::log()("on_attach");
}
void ui_layer_double::on_detach()
{
VE::DISCONNECT(this);
hack::log()("on_detach");
}
void ui_layer_double::render()
{
ImGui::SetNextWindowPos(ImVec2{ 10.f, 10.f });