remove sidebar and make panels popup
This commit is contained in:
@@ -287,3 +287,23 @@ void NodePanelLayer::update_attributes()
|
||||
m_alpha_lock->set_value(l->m_alpha_locked);
|
||||
m_blend_mode->set_index(l->m_blend_mode);
|
||||
}
|
||||
|
||||
kEventResult NodePanelLayer::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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user