add new implementation event
This commit is contained in:
@@ -6,14 +6,14 @@ namespace example
|
||||
{
|
||||
void ui_layer_double::on_attach()
|
||||
{
|
||||
VE::CONNECT(this);
|
||||
CONNECT(this);
|
||||
|
||||
hack::log()("on_attach");
|
||||
}
|
||||
|
||||
void ui_layer_double::on_detach()
|
||||
{
|
||||
VE::DISCONNECT(this);
|
||||
DISCONNECT();
|
||||
hack::log()("on_detach");
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace example
|
||||
|
||||
VE_PUSH_FONT(REGULAR, 20);
|
||||
if (ImGui::Button("Test signal_double", ImVec2(128, 130)))
|
||||
VE::EMIT(test_event::TEST_EVEN, std::string("test event message ui_layer_double"));
|
||||
EMIT(test_event::TEST_EVEN, std::string("test event message ui_layer_double"));
|
||||
|
||||
if (ImGui::Button("Test on_detach", ImVec2(128, 130))) on_detach();
|
||||
if (ImGui::Button("Test on_attach", ImVec2(128, 130))) on_attach();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace example
|
||||
{
|
||||
class ui_layer_double : public VE::layer, public VE::flags
|
||||
class ui_layer_double : public VE::layer, public VE::flags, public VE::connector
|
||||
{
|
||||
VE_OVERIDE();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user