mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Fix a few cases of missed instant invocation
This commit is contained in:
parent
aac371ba6e
commit
594dffba41
@ -60,7 +60,7 @@ namespace osu.Game.Screens.Multi.Components
|
|||||||
beatmapAuthor.AddText("mapped by ", s => s.Colour = OsuColour.Gray(0.8f));
|
beatmapAuthor.AddText("mapped by ", s => s.Colour = OsuColour.Gray(0.8f));
|
||||||
beatmapAuthor.AddLink(v.Metadata.Author.Username, null, LinkAction.OpenUserProfile, v.Metadata.Author.Id.ToString(), "View Profile");
|
beatmapAuthor.AddLink(v.Metadata.Author.Username, null, LinkAction.OpenUserProfile, v.Metadata.Author.Id.ToString(), "View Profile");
|
||||||
}
|
}
|
||||||
});
|
}, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,8 +46,8 @@ namespace osu.Game.Screens.Multi.Components
|
|||||||
};
|
};
|
||||||
|
|
||||||
CurrentBeatmap.BindValueChanged(_ => updateBeatmap());
|
CurrentBeatmap.BindValueChanged(_ => updateBeatmap());
|
||||||
CurrentRuleset.BindValueChanged(_ => updateBeatmap());
|
CurrentRuleset.BindValueChanged(_ => updateBeatmap(), true);
|
||||||
Type.BindValueChanged(v => gameTypeContainer.Child = new DrawableGameType(v) { Size = new Vector2(height) });
|
Type.BindValueChanged(v => gameTypeContainer.Child = new DrawableGameType(v) { Size = new Vector2(height) }, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateBeatmap()
|
private void updateBeatmap()
|
||||||
|
@ -52,9 +52,8 @@ namespace osu.Game.Screens.Multi.Components
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Participants.BindValueChanged(v => count.Text = v.Count().ToString());
|
|
||||||
MaxParticipants.BindValueChanged(_ => updateMax(), true);
|
MaxParticipants.BindValueChanged(_ => updateMax(), true);
|
||||||
ParticipantCount.BindValueChanged(v => count.Text = v.ToString("#,0"));
|
ParticipantCount.BindValueChanged(v => count.Text = v.ToString("#,0"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateMax()
|
private void updateMax()
|
||||||
|
@ -163,10 +163,9 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Status.BindValueChanged(displayStatus);
|
Status.BindValueChanged(displayStatus, true);
|
||||||
Name.BindValueChanged(n => name.Text = n);
|
Name.BindValueChanged(n => name.Text = n, true);
|
||||||
|
RoomID.BindValueChanged(updateRoom, true);
|
||||||
RoomID.BindValueChanged(updateRoom);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateRoom(int? roomId)
|
private void updateRoom(int? roomId)
|
||||||
|
@ -260,8 +260,7 @@ namespace osu.Game.Screens.Multi.Match.Components
|
|||||||
processingOverlay = new ProcessingOverlay { Alpha = 0 }
|
processingOverlay = new ProcessingOverlay { Alpha = 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
TypePicker.Current.ValueChanged += t => typeLabel.Text = t.Name;
|
TypePicker.Current.BindValueChanged(t => typeLabel.Text = t?.Name ?? string.Empty, true);
|
||||||
|
|
||||||
Name.BindValueChanged(n => NameField.Text = n, true);
|
Name.BindValueChanged(n => NameField.Text = n, true);
|
||||||
Availability.BindValueChanged(a => AvailabilityPicker.Current.Value = a, true);
|
Availability.BindValueChanged(a => AvailabilityPicker.Current.Value = a, true);
|
||||||
Type.BindValueChanged(t => TypePicker.Current.Value = t, true);
|
Type.BindValueChanged(t => TypePicker.Current.Value = t, true);
|
||||||
|
@ -59,7 +59,7 @@ namespace osu.Game.Screens.Multi.Match.Components
|
|||||||
Width = 300,
|
Width = 300,
|
||||||
OnLoadComplete = d => d.FadeInFromZero(60),
|
OnLoadComplete = d => d.FadeInFromZero(60),
|
||||||
}).ToList();
|
}).ToList();
|
||||||
});
|
}, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user