Move do_afters to an overlay (#10463)

This commit is contained in:
metalgearsloth
2022-08-13 14:32:23 +10:00
committed by GitHub
parent 36ba197a25
commit 71ffca2257
8 changed files with 203 additions and 503 deletions

View File

@@ -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);
}