diff --git a/MLEM.Ui/Elements/Group.cs b/MLEM.Ui/Elements/Group.cs index fc5d378..27c1303 100644 --- a/MLEM.Ui/Elements/Group.cs +++ b/MLEM.Ui/Elements/Group.cs @@ -1,4 +1,5 @@ using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; namespace MLEM.Ui.Elements { public class Group : Element { @@ -8,5 +9,10 @@ namespace MLEM.Ui.Elements { this.CanBeSelected = false; } + public override void Draw(GameTime time, SpriteBatch batch, float alpha, BlendState blendState, SamplerState samplerState, Matrix matrix) { + this.UpdateAreaIfDirty(); + base.Draw(time, batch, alpha, blendState, samplerState, matrix); + } + } } \ No newline at end of file diff --git a/MLEM.Ui/Elements/Tooltip.cs b/MLEM.Ui/Elements/Tooltip.cs index bc9d30f..c027161 100644 --- a/MLEM.Ui/Elements/Tooltip.cs +++ b/MLEM.Ui/Elements/Tooltip.cs @@ -35,7 +35,6 @@ namespace MLEM.Ui.Elements { public override void Update(GameTime time) { base.Update(time); this.SnapPositionToMouse(); - this.UpdateAreaIfDirty(); } public override void ForceUpdateArea() {