mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 22:34:09 +08:00
Update comments
This commit is contained in:
parent
164a1a8e6e
commit
a817164cb2
@ -20,7 +20,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
private bool isHorizontal;
|
private bool isHorizontal;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Automatically sets the RelativeSizeAxes and switches X and Y components when changed.
|
/// Automatically sets the RelativeSizeAxes and switches X and Y size components when changed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsHorizontal
|
public bool IsHorizontal
|
||||||
{
|
{
|
||||||
|
@ -14,8 +14,6 @@ using System;
|
|||||||
|
|
||||||
namespace osu.Game.Graphics.UserInterface
|
namespace osu.Game.Graphics.UserInterface
|
||||||
{
|
{
|
||||||
// not inheriting osuclickablecontainer/osuhovercontainer
|
|
||||||
// because click/hover sounds cannot be disabled
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An icon with an action upon click that can be disabled.
|
/// An icon with an action upon click that can be disabled.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -26,14 +24,14 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
private SampleChannel sampleClick;
|
private SampleChannel sampleClick;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The action to fire upon click, if <see cref="IsEnabled"/> is set to true.
|
/// The action to fire upon click if <see cref="IsEnabled"/> is set to true.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Action Action;
|
public Action Action;
|
||||||
|
|
||||||
private bool isEnabled;
|
private bool isEnabled;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If set to true, upon click the <see cref="Action"/> will execute. It wont otherwise.
|
/// If set to true, upon click the <see cref="Action"/> will execute.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsEnabled
|
public bool IsEnabled
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,6 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
Padding = new MarginPadding { Horizontal = 70 };
|
Padding = new MarginPadding { Horizontal = 70 };
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
// build version, arrows
|
|
||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
@ -176,7 +175,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// we may not want double clicks to make it double the work
|
// we may not want double clicks,
|
||||||
// can be clicked again only after a delay
|
// can be clicked again only after a delay
|
||||||
clickableBuildText.Action += () =>
|
clickableBuildText.Action += () =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user