mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Rename variables in line with standards
This commit is contained in:
parent
3d19364a71
commit
88c6143aae
@ -221,11 +221,11 @@ namespace osu.Game.Tournament.Screens.Editors
|
|||||||
private void load(RulesetStore rulesets)
|
private void load(RulesetStore rulesets)
|
||||||
{
|
{
|
||||||
beatmapId.Value = Model.ID;
|
beatmapId.Value = Model.ID;
|
||||||
beatmapId.BindValueChanged(idInt =>
|
beatmapId.BindValueChanged(id =>
|
||||||
{
|
{
|
||||||
Model.ID = idInt.NewValue ?? 0;
|
Model.ID = id.NewValue ?? 0;
|
||||||
|
|
||||||
if (idInt.NewValue != idInt.OldValue)
|
if (id.NewValue != id.OldValue)
|
||||||
Model.BeatmapInfo = null;
|
Model.BeatmapInfo = null;
|
||||||
|
|
||||||
if (Model.BeatmapInfo != null)
|
if (Model.BeatmapInfo != null)
|
||||||
|
@ -229,11 +229,11 @@ namespace osu.Game.Tournament.Screens.Editors
|
|||||||
private void load(RulesetStore rulesets)
|
private void load(RulesetStore rulesets)
|
||||||
{
|
{
|
||||||
beatmapId.Value = Model.ID;
|
beatmapId.Value = Model.ID;
|
||||||
beatmapId.BindValueChanged(idInt =>
|
beatmapId.BindValueChanged(id =>
|
||||||
{
|
{
|
||||||
Model.ID = idInt.NewValue ?? 0;
|
Model.ID = id.NewValue ?? 0;
|
||||||
|
|
||||||
if (idInt.NewValue != idInt.OldValue)
|
if (id.NewValue != id.OldValue)
|
||||||
Model.BeatmapInfo = null;
|
Model.BeatmapInfo = null;
|
||||||
|
|
||||||
if (Model.BeatmapInfo != null)
|
if (Model.BeatmapInfo != null)
|
||||||
|
@ -279,11 +279,11 @@ namespace osu.Game.Tournament.Screens.Editors
|
|||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
userId.Value = user.Id;
|
userId.Value = user.Id;
|
||||||
userId.BindValueChanged(idInt =>
|
userId.BindValueChanged(id =>
|
||||||
{
|
{
|
||||||
user.Id = idInt.NewValue ?? 0;
|
user.Id = id.NewValue ?? 0;
|
||||||
|
|
||||||
if (idInt.NewValue != idInt.OldValue)
|
if (id.NewValue != id.OldValue)
|
||||||
user.Username = string.Empty;
|
user.Username = string.Empty;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(user.Username))
|
if (!string.IsNullOrEmpty(user.Username))
|
||||||
|
Loading…
Reference in New Issue
Block a user