mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Remove redundant conditional ternary expression
This commit is contained in:
parent
cf92d6b1b0
commit
1bfb87fcdd
@ -28,8 +28,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
|
|
||||||
public LeaderboardModSelector()
|
public LeaderboardModSelector()
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Both;
|
||||||
RelativeSizeAxes = Axes.X;
|
|
||||||
InternalChild = modsContainer = new FillFlowContainer<ModButton>
|
InternalChild = modsContainer = new FillFlowContainer<ModButton>
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
@ -151,10 +150,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
updateState();
|
updateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateState()
|
private void updateState() => Highlighted.Value = IsHovered || Selected.Value;
|
||||||
{
|
|
||||||
Highlighted.Value = (IsHovered || Selected.Value) ? true : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnHighlightedChange(ValueChangedEvent<bool> highlighted)
|
protected override void OnHighlightedChange(ValueChangedEvent<bool> highlighted)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user