From bbd1a7059e0785b5693cce921205fcbec4c5ae6a Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Tue, 10 Oct 2017 17:25:39 +0900 Subject: [PATCH] xmldoc + hook up IconColour --- osu.Game/Graphics/UserInterface/IconButton.cs | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/osu.Game/Graphics/UserInterface/IconButton.cs b/osu.Game/Graphics/UserInterface/IconButton.cs index 9f3f5096a2..5e5bfad662 100644 --- a/osu.Game/Graphics/UserInterface/IconButton.cs +++ b/osu.Game/Graphics/UserInterface/IconButton.cs @@ -17,27 +17,51 @@ public class IconButton : OsuClickableContainer { private const float button_size = 30; + /// + /// The colour that should be flashed when the is clicked. + /// public Color4 FlashColour; - public Color4 NormalColour; + /// + /// The icon colour. This does not affect . + /// + public Color4 IconColour + { + get { return icon.Colour; } + set { icon.Colour = value; } + } + + /// + /// The icon. + /// public FontAwesome Icon { get { return icon.Icon; } set { icon.Icon = value; } } + /// + /// The icon scale. This does not affect . + /// public Vector2 IconScale { get { return icon.Scale; } set { icon.Scale = value; } } + /// + /// The size of the while it is not being pressed. + /// public Vector2 ButtonSize { get { return content.Size; } set { content.Size = value; } } + /// + /// The background colour of the while it is hovered. + /// + /// public Color4 HoverColour { get { return hover.Colour; }