mirror of
https://github.com/ppy/osu
synced 2025-02-08 14:17:29 +00:00
xmldoc + hook up IconColour
This commit is contained in:
parent
d7fb59ee0e
commit
bbd1a7059e
@ -17,27 +17,51 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
private const float button_size = 30;
|
private const float button_size = 30;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The colour that should be flashed when the <see cref="IconButton"/> is clicked.
|
||||||
|
/// </summary>
|
||||||
public Color4 FlashColour;
|
public Color4 FlashColour;
|
||||||
public Color4 NormalColour;
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The icon colour. This does not affect <see cref="IconButton.Colour"/>.
|
||||||
|
/// </summary>
|
||||||
|
public Color4 IconColour
|
||||||
|
{
|
||||||
|
get { return icon.Colour; }
|
||||||
|
set { icon.Colour = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The icon.
|
||||||
|
/// </summary>
|
||||||
public FontAwesome Icon
|
public FontAwesome Icon
|
||||||
{
|
{
|
||||||
get { return icon.Icon; }
|
get { return icon.Icon; }
|
||||||
set { icon.Icon = value; }
|
set { icon.Icon = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The icon scale. This does not affect <see cref="IconButton.Scale"/>.
|
||||||
|
/// </summary>
|
||||||
public Vector2 IconScale
|
public Vector2 IconScale
|
||||||
{
|
{
|
||||||
get { return icon.Scale; }
|
get { return icon.Scale; }
|
||||||
set { icon.Scale = value; }
|
set { icon.Scale = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The size of the <see cref="IconButton"/> while it is not being pressed.
|
||||||
|
/// </summary>
|
||||||
public Vector2 ButtonSize
|
public Vector2 ButtonSize
|
||||||
{
|
{
|
||||||
get { return content.Size; }
|
get { return content.Size; }
|
||||||
set { content.Size = value; }
|
set { content.Size = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The background colour of the <see cref="IconButton"/> while it is hovered.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
public Color4 HoverColour
|
public Color4 HoverColour
|
||||||
{
|
{
|
||||||
get { return hover.Colour; }
|
get { return hover.Colour; }
|
||||||
|
Loading…
Reference in New Issue
Block a user