Removed Control.Update, moved all update code to Control.FrameUpdate. UI controls have no business running code inside simulation Ticks. Because of how the update loop is ordered, this will actually make the UI elements more responsive to simulation changes.

Fixed multiple bugs in the action UI where the Control.Update method was calling the base Control.FrameUpdate.
This commit is contained in:
Acruid
2021-03-26 17:10:31 -07:00
parent f17ead47c1
commit 3e7e44df29
13 changed files with 41 additions and 38 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@@ -510,7 +510,7 @@ namespace Content.Client.UserInterface
protected override void FrameUpdate(FrameEventArgs args)
{
base.Update(args);
base.FrameUpdate(args);
_dragDropHelper.Update(args.DeltaSeconds);
}
}