aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI/Control.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Frontend/GUI/Control.cs')
-rw-r--r--ShiftOS.Frontend/GUI/Control.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/ShiftOS.Frontend/GUI/Control.cs b/ShiftOS.Frontend/GUI/Control.cs
index d34a97a..b78f032 100644
--- a/ShiftOS.Frontend/GUI/Control.cs
+++ b/ShiftOS.Frontend/GUI/Control.cs
@@ -429,7 +429,7 @@ namespace ShiftOS.Frontend.GUI
}
}
- public void Layout()
+ public void Layout(GameTime gameTime)
{
//Dock style
if(_parent != null)
@@ -469,12 +469,12 @@ namespace ShiftOS.Frontend.GUI
break;
}
}
- OnLayout();
+ OnLayout(gameTime);
foreach (var child in _children)
- child.Layout();
+ child.Layout(gameTime);
}
- protected virtual void OnLayout()
+ protected virtual void OnLayout(GameTime gameTime)
{
//do nothing
}
@@ -621,7 +621,6 @@ namespace ShiftOS.Frontend.GUI
{
_mouseX = coords.X;
_mouseY = coords.Y;
- Layout();
_wasMouseInControl = true;
int newX = MathHelper.Clamp(state.X, X, X + Width);
int newY = MathHelper.Clamp(state.Y, Y, Y + Height);