protected override void LoadComplete() { base.LoadComplete(); CurrentBeatmap.BindValueChanged(setBeatmap, true); CurrentRuleset.BindValueChanged(setRuleset, true); }
private void load() { Container gameTypeContainer; InternalChild = new FillFlowContainer { AutoSizeAxes = Axes.Both, Direction = FillDirection.Horizontal, Spacing = new Vector2(5f, 0f), LayoutDuration = 100, Children = new[] { rulesetContainer = new Container { AutoSizeAxes = Axes.Both, }, gameTypeContainer = new Container { AutoSizeAxes = Axes.Both, }, }, }; CurrentBeatmap.BindValueChanged(_ => updateBeatmap()); CurrentRuleset.BindValueChanged(_ => updateBeatmap(), true); Type.BindValueChanged(v => gameTypeContainer.Child = new DrawableGameType(v) { Size = new Vector2(height) }, true); }