1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00

Expose BoxColour property

This commit is contained in:
Andrei Zavatski 2019-08-12 13:08:15 +03:00
parent 144d41f143
commit fc521ac93b

View File

@ -32,6 +32,12 @@ namespace osu.Game.Graphics.UserInterface
protected readonly SpriteText Text;
protected Color4 BoxColour
{
get => box.Colour;
set => box.Colour = value;
}
public PageTabItem(T value)
: base(value)
{
@ -66,7 +72,7 @@ namespace osu.Game.Graphics.UserInterface
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
box.Colour = colours.Yellow;
BoxColour = colours.Yellow;
}
protected override bool OnHover(HoverEvent e)