public EngineLoader(KanojoWorksScreen next = null) { ValidForResume = false; if (next != null) { nextScreen = next; } }
public override void OnEntering(IScreen last) { base.OnEntering(last); LoadComponentAsync(loadingIndicator = new LoadingIndicator { Anchor = Anchor.BottomRight, Origin = Anchor.BottomRight, Margin = new MarginPadding(20) }, _ => { AddInternal(loadingIndicator); indicatorShow = Scheduler.AddDelayed(loadingIndicator.Show, 200); }); LoadComponentAsync(precompiler = CreateShaderPrecompiler(), AddInternal); LoadComponentAsync(loadableScreen = CreateLoadableScreen()); checkIfLoaded(); }
public EngineDisclaimer(KanojoWorksScreen nextScreen = null) { this.nextScreen = nextScreen; ValidForResume = false; InternalChildren = new Drawable[] { textFlow = new TextFlowContainer { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, TextAnchor = Anchor.Centre, Anchor = Anchor.Centre, Origin = Anchor.Centre, Spacing = new Vector2(0, 10), Alpha = 0 } }; textFlow.AddText("This game runs on the KanojoWorks engine built on osu!framework.", t => t.Font = KanojoWorksFont.GetFont(size: 30)); textFlow.NewParagraph(); textFlow.AddText("KanojoWorks is still a work in progress, so weirdness and bugs may occur.", t => t.Font = KanojoWorksFont.GetFont(size: 30)); }
protected override KanojoWorksScreen CreateLoadableScreen() => screen = new EngineDisclaimer(new TestScreen());