public override void DidFinishLaunching(NSNotification notification) { // Set windows size for comfort playing MyGameView.Window.SetFrame(new CoreGraphics.CGRect(0, 0, 1600, 1000), true, true); // Getting GameScene for presenting on the window var scene = SKNode.FromFile <MenuScene>("GameScenes/MenuScene"); // Set the scale mode to scale to fit the window scene.ScaleMode = SKSceneScaleMode.ResizeFill; // Enable debug information MyGameView.ShowsPhysics = true; MyGameView.ShowsFPS = true; MyGameView.ShowsNodeCount = true; // SpriteKit applies additional optimizations to improve rendering performance MyGameView.IgnoresSiblingOrder = true; // Present scene on the window MyGameView.PresentScene(scene); }
public override void DidFinishLaunching(NSNotification notification) { var scene = SKNode.FromFile <GameScene>("GameScene"); // Set the scale mode to scale to fit the window scene.ScaleMode = SKSceneScaleMode.AspectFill; MyGameView.PresentScene(scene); // SpriteKit applies additional optimizations to improve rendering performance MyGameView.IgnoresSiblingOrder = true; ProcessName.StringValue = "New Process"; }
public override void DidFinishLaunching(NSNotification notification) { var scene = new StartScene { ScaleMode = SKSceneScaleMode.ResizeFill, BackgroundColor = NSColor.White }; MyGameView.PresentScene(scene); // SpriteKit applies additional optimizations to improve rendering performance MyGameView.IgnoresSiblingOrder = true; MyGameView.ShowsFPS = true; MyGameView.ShowsNodeCount = true; MyGameView.ShowsPhysics = true; }
void ReleaseDesignerOutlets() { if (Algorithm != null) { Algorithm.Dispose(); Algorithm = null; } if (MemorySize != null) { MemorySize.Dispose(); MemorySize = null; } if (MyGameView != null) { MyGameView.Dispose(); MyGameView = null; } if (ProcessColor != null) { ProcessColor.Dispose(); ProcessColor = null; } if (ProcessName != null) { ProcessName.Dispose(); ProcessName = null; } if (ProcessSize != null) { ProcessSize.Dispose(); ProcessSize = null; } if (ProgramStatus != null) { ProgramStatus.Dispose(); ProgramStatus = null; } }