Move do_afters to an overlay (#10463)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using Content.Client.DoAfter.UI;
|
||||
using Content.Client.DoAfter;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Shared.Maths;
|
||||
|
||||
namespace Content.Client.CharacterInfo
|
||||
{
|
||||
@@ -14,7 +12,7 @@ namespace Content.Client.CharacterInfo
|
||||
{
|
||||
var dims = Texture != null ? GetDrawDimensions(Texture) : UIBox2.FromDimensions(Vector2.Zero, PixelSize);
|
||||
dims.Top = Math.Max(dims.Bottom - dims.Bottom * Progress,0);
|
||||
handle.DrawRect(dims, DoAfterHelpers.GetProgressColor(Progress));
|
||||
handle.DrawRect(dims, DoAfterOverlay.GetProgressColor(Progress));
|
||||
|
||||
base.Draw(handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user