added button click event handler
This commit is contained in:
@@ -6,17 +6,6 @@ Plane NodeBorder::m_plane;
|
||||
Plane NodeImage::m_plane;
|
||||
Sampler NodeImage::m_sampler;
|
||||
|
||||
Node* Node::find(const char* ids)
|
||||
{
|
||||
uint16_t id = const_hash(ids);
|
||||
if (id == m_nodeID)
|
||||
return this;
|
||||
for (auto& c : *this)
|
||||
if (c.m_nodeID == id)
|
||||
return &c;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
kEventResult Node::on_event(Event* e)
|
||||
{
|
||||
for (auto& c : m_children)
|
||||
|
||||
Reference in New Issue
Block a user