remove sidebar and make panels popup
This commit is contained in:
@@ -316,6 +316,26 @@ void NodePanelGrid::draw_heightmap(const glm::mat4& proj, const glm::mat4& camer
|
||||
}
|
||||
}
|
||||
|
||||
kEventResult NodePanelGrid::handle_event(Event* e)
|
||||
{
|
||||
switch (e->m_type)
|
||||
{
|
||||
case kEventType::MouseUpL:
|
||||
if (!m_mouse_inside)
|
||||
{
|
||||
mouse_release();
|
||||
parent->remove_child(this);
|
||||
if (on_popup_close)
|
||||
on_popup_close(this);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return kEventResult::Available;
|
||||
break;
|
||||
}
|
||||
return kEventResult::Available;
|
||||
}
|
||||
|
||||
void NodePanelGrid::bake_uvs()
|
||||
{
|
||||
if (!m_hm_image.m_data)
|
||||
|
||||
Reference in New Issue
Block a user