mirror of https://github.com/ppy/osu
Update TabControl in line with framework changes.
This commit is contained in:
parent
296a3cd1e9
commit
e78bcf8739
|
@ -1 +1 @@
|
||||||
Subproject commit 53dfe2a110d732cca0e7df58c33eca368bc7ff61
|
Subproject commit db310bfc10cd1c9ed12c9e19cdc0edfa53117353
|
|
@ -33,10 +33,10 @@ public override void Reset()
|
||||||
Position = new Vector2(275, 5)
|
Position = new Vector2(275, 5)
|
||||||
});
|
});
|
||||||
|
|
||||||
filter.PinTab(GroupMode.All);
|
filter.PinItem(GroupMode.All);
|
||||||
filter.PinTab(GroupMode.RecentlyPlayed);
|
filter.PinItem(GroupMode.RecentlyPlayed);
|
||||||
|
|
||||||
filter.ValueChanged += (sender, mode) =>
|
filter.ItemChanged += (sender, mode) =>
|
||||||
{
|
{
|
||||||
text.Text = "Currently Selected: " + mode.ToString();
|
text.Text = "Currently Selected: " + mode.ToString();
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@ public OsuTabControl()
|
||||||
throw new InvalidOperationException("OsuTabControl only supports enums as the generic type argument");
|
throw new InvalidOperationException("OsuTabControl only supports enums as the generic type argument");
|
||||||
|
|
||||||
foreach (var val in (T[])Enum.GetValues(typeof(T)))
|
foreach (var val in (T[])Enum.GetValues(typeof(T)))
|
||||||
AddTab(val);
|
AddItem(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
|
|
@ -141,10 +141,10 @@ public FilterControl()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
groupTabs.PinTab(GroupMode.All);
|
groupTabs.PinItem(GroupMode.All);
|
||||||
groupTabs.PinTab(GroupMode.RecentlyPlayed);
|
groupTabs.PinItem(GroupMode.RecentlyPlayed);
|
||||||
groupTabs.ValueChanged += (sender, value) => Group = value;
|
groupTabs.ItemChanged += (sender, value) => Group = value;
|
||||||
sortTabs.ValueChanged += (sender, value) => Sort = value;
|
sortTabs.ItemChanged += (sender, value) => Sort = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Deactivate()
|
public void Deactivate()
|
||||||
|
|
Loading…
Reference in New Issue