mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Apply review changes
This commit is contained in:
@ -138,7 +138,6 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
}, true);
|
||||
}
|
||||
|
||||
//TODO: use OnClick instead once we have per-button clicks.
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
if (Team == null || editorInfo != null) return false;
|
||||
@ -196,8 +195,8 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
return new MenuItem[]
|
||||
{
|
||||
new OsuMenuItem("Set as current", MenuItemType.Standard, setCurrent),
|
||||
new OsuMenuItem("Join with", MenuItemType.Standard, () => ladderEditor.RequestJoin(pairing, false)),
|
||||
new OsuMenuItem("Join with (loser)", MenuItemType.Standard, () => ladderEditor.RequestJoin(pairing, true)),
|
||||
new OsuMenuItem("Join with", MenuItemType.Standard, () => ladderEditor.BeginJoin(pairing, false)),
|
||||
new OsuMenuItem("Join with (loser)", MenuItemType.Standard, () => ladderEditor.BeginJoin(pairing, true)),
|
||||
new OsuMenuItem("Remove", MenuItemType.Destructive, () => ladderEditor.Remove(pairing)),
|
||||
};
|
||||
}
|
||||
|
@ -5,15 +5,26 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
{
|
||||
public class TournamentProgression
|
||||
{
|
||||
public int Item1;
|
||||
public int Item2;
|
||||
public int SourceID;
|
||||
public int TargetID;
|
||||
|
||||
// migration
|
||||
public int Item1
|
||||
{
|
||||
set => SourceID = value;
|
||||
}
|
||||
|
||||
public int Item2
|
||||
{
|
||||
set => TargetID = value;
|
||||
}
|
||||
|
||||
public bool Losers;
|
||||
|
||||
public TournamentProgression(int item1, int item2, bool losers = false)
|
||||
public TournamentProgression(int sourceID, int targetID, bool losers = false)
|
||||
{
|
||||
Item1 = item1;
|
||||
Item2 = item2;
|
||||
SourceID = sourceID;
|
||||
TargetID = targetID;
|
||||
Losers = losers;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user