コード例 #1
0
 protected virtual void LoadMenu()
 {
     this.pieMenu = new PieMenu();
     this.planetMenu = new PieMenuNode();
     this.planetMenu.Add(new PieMenuNode("View Planet", ResourceManager.TextureDict["UI/viewPlanetIcon"], new SimpleDelegate(this.ViewPlanet)));
     this.planetMenu.Add(new PieMenuNode("Mark for Colonization", ResourceManager.TextureDict["UI/viewPlanetIcon"], new SimpleDelegate(this.MarkForColonization)));
     this.shipMenu = new PieMenuNode();
     this.shipMenu.Add(new PieMenuNode("Commandeer Ship", ResourceManager.TextureDict["UI/viewPlanetIcon"], new SimpleDelegate(this.ViewShip)));
 }
コード例 #2
0
 public PieCursor(Microsoft.Xna.Framework.Game game, ContentManager content)
     : base(game)
 {
     this.pieMenu = new PieMenu();
     this.content = content;
 }