public ReappearTransitionAgent(GDOverworldScreen scrn, GraphBlueprint g) : base(scrn, DURATION) { _gdNode = scrn.GetEntities <OverworldNode>().First(n => n.ContentID == g.ID); vp = scrn.VAdapterGame; rectStart = FRectangle.CreateByCenter(_gdNode.Position, new FSize(1.8f * GDConstants.TILE_WIDTH, 1.8f * GDConstants.TILE_WIDTH)) .SetRatioUnderfitKeepCenter(GDConstants.VIEW_WIDTH * 1f / GDConstants.VIEW_HEIGHT); rectFinal = scrn.GuaranteedMapViewport; }
public void SetOverworldScreen(bool noflicker = true) { var ovs = new GDOverworldScreen(this, Graphics); SetCurrentScreen(ovs); if (noflicker) { foreach (var node in ovs.GetEntities <OverworldNode>()) { node.FlickerTime = OverworldNode.COLLAPSE_TIME * 10; // no flicker - for sure } ovs.GDHUD.ScoreDispMan.FinishCounter(); } }
public void SetOverworldScreenCopy(GDOverworldScreen s) { if (s == null) { SetOverworldScreen(); return; } var ovs = new GDOverworldScreen(this, Graphics); SetCurrentScreen(ovs); foreach (var node in ovs.GetEntities <OverworldNode>()) { node.FlickerTime = OverworldNode.COLLAPSE_TIME * 10; // no flicker - for sure } ovs.ScrollAgent.CopyState(s.ScrollAgent); }
public void SetOverworldScreenWithSCCM(SCCMMainPanel.SCCMTab tab, bool noflicker = true) { var ovs = new GDOverworldScreen(this, Graphics); SetCurrentScreen(ovs); if (noflicker) { foreach (var node in ovs.GetEntities <OverworldNode>()) { node.FlickerTime = OverworldNode.COLLAPSE_TIME * 10; // no flicker - for sure } ovs.GDHUD.ScoreDispMan.FinishCounter(); } var pnl = new SCCMMainPanel(); ovs.HUD.AddModal(pnl, true, 0.5f, 1f); pnl.SelectTab(tab); }