Add score/health processors to fill in default values

This commit is contained in:
Dean Herbert 2021-05-10 18:15:39 +09:00
parent 2ecd638f7f
commit 1b701adfef
1 changed files with 11 additions and 0 deletions

View File

@ -14,6 +14,7 @@
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Scoring;
using osuTK;
using osuTK.Graphics;
@ -25,6 +26,16 @@ public class SkinComponentToolbox : ScrollingToolboxGroup
private const float component_display_scale = 0.8f;
[Cached]
private ScoreProcessor scoreProcessor = new ScoreProcessor
{
Combo = { Value = 727 },
TotalScore = { Value = 1337377 }
};
[Cached(typeof(HealthProcessor))]
private HealthProcessor healthProcessor = new DrainingHealthProcessor(0);
public SkinComponentToolbox(float height)
: base("Components", height)
{