Most remaining level editor work

This commit is contained in:
elasota
2020-03-01 17:01:35 -05:00
parent abd4f1a978
commit 7b27d6c6b5
48 changed files with 1211 additions and 945 deletions

View File

@@ -46,6 +46,9 @@ namespace PortabilityLayer
void EditboxWidget::EditboxWidget::DrawControl(DrawSurface *surface)
{
if (!m_visible)
return;
const Rect textRect = m_rect;
const Rect innerRect = textRect.Inset(-2, -2);
const Rect outerRect = innerRect.Inset(-1, -1);
@@ -224,6 +227,11 @@ namespace PortabilityLayer
return WidgetHandleStates::kIgnored;
}
Rect EditboxWidget::GetExpandedRect() const
{
return GetRect().Inset(-3, -3);
}
void EditboxWidget::Redraw()
{
if (m_window)