used DI for forge managers where possible
This commit is contained in:
@@ -8,7 +8,7 @@ using Gamesmiths.Forge.Cues;
|
||||
using Gamesmiths.Forge.Godot.Core;
|
||||
using Gamesmiths.Forge.Tags;
|
||||
|
||||
[GlobalClass, Icon("res://assets/ui/IconGodotNode/control/icon_heart.png"), Meta(typeof(IAutoOn), typeof(IAutoConnect))]
|
||||
[GlobalClass, Icon("res://assets/ui/IconGodotNode/control/icon_heart.png"), Meta(typeof(IAutoNode))]
|
||||
public partial class ResourceBar : ProgressBar, ICueHandler
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
@@ -33,8 +33,8 @@ public partial class ResourceBar : ProgressBar, ICueHandler
|
||||
if (BarStyle != null)
|
||||
AddThemeStyleboxOverride("fill", BarStyle);
|
||||
}
|
||||
|
||||
public void Initialize(EntityAttribute attribute, Tag cueTag)
|
||||
|
||||
public void Init(EntityAttribute attribute, Tag cueTag)
|
||||
{
|
||||
_currentValue = attribute.BaseValue;
|
||||
MaxValue = attribute.Max;
|
||||
|
||||
Reference in New Issue
Block a user