rename parent to m_parent and add floating panel class

This commit is contained in:
2019-03-20 22:28:44 +01:00
parent e635ad00a8
commit 929e80a218
14 changed files with 151 additions and 42 deletions

View File

@@ -375,7 +375,7 @@ void NodePanelStroke::init_controls()
on_brush_changed(this, m_brush_popup->get_texture_path(index), m_brush_popup->get_thumb_path(index));
m_brush_thumb->set_image(m_brush_popup->get_thumb_path(index));
//m_brush_popup->mouse_release();
//m_brush_popup->parent->remove_child(m_brush_popup.get());
//m_brush_popup->m_parent->remove_child(m_brush_popup.get());
};
};
@@ -696,7 +696,7 @@ kEventResult NodePanelStroke::handle_event(Event* e)
if (!m_mouse_inside)
{
mouse_release();
parent->remove_child(this);
m_parent->remove_child(this);
if (on_popup_close)
on_popup_close(this);
}