mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Most remaining level editor work
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user