mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Use expression body for property get/set where possible
This commit is contained in:
@ -35,34 +35,25 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
public FontAwesome Icon
|
||||
{
|
||||
set { SetIcon(value); }
|
||||
set => SetIcon(value);
|
||||
}
|
||||
|
||||
public string Text
|
||||
{
|
||||
get { return DrawableText.Text; }
|
||||
set
|
||||
{
|
||||
DrawableText.Text = value;
|
||||
}
|
||||
get => DrawableText.Text;
|
||||
set => DrawableText.Text = value;
|
||||
}
|
||||
|
||||
public string TooltipMain
|
||||
{
|
||||
get { return tooltip1.Text; }
|
||||
set
|
||||
{
|
||||
tooltip1.Text = value;
|
||||
}
|
||||
get => tooltip1.Text;
|
||||
set => tooltip1.Text = value;
|
||||
}
|
||||
|
||||
public string TooltipSub
|
||||
{
|
||||
get { return tooltip2.Text; }
|
||||
set
|
||||
{
|
||||
tooltip2.Text = value;
|
||||
}
|
||||
get => tooltip2.Text;
|
||||
set => tooltip2.Text = value;
|
||||
}
|
||||
|
||||
protected virtual Anchor TooltipAnchor => Anchor.TopLeft;
|
||||
|
@ -66,7 +66,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
public int Count
|
||||
{
|
||||
get { return count; }
|
||||
get => count;
|
||||
set
|
||||
{
|
||||
if (count == value)
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
public OverlayContainer StateContainer
|
||||
{
|
||||
get { return stateContainer; }
|
||||
get => stateContainer;
|
||||
set
|
||||
{
|
||||
stateContainer = value;
|
||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
private RulesetInfo ruleset;
|
||||
public RulesetInfo Ruleset
|
||||
{
|
||||
get { return ruleset; }
|
||||
get => ruleset;
|
||||
set
|
||||
{
|
||||
ruleset = value;
|
||||
|
Reference in New Issue
Block a user