示例#1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="isChecked">Initial state of the checkbox</param>
 public Checkbox(Graphics3DSampleGame game, string textureName, Rectangle targetRectangle, bool isChecked)
     : base(game, targetRectangle)
 {
     asset = textureName;
     this.isChecked = isChecked;
 }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture Name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="initialValue">Initial value</param>
 public Button (Graphics3DSampleGame game, string textureName, Rectangle targetRectangle, int initialValue)
     : base(game, targetRectangle)
 {
     asset = textureName;
     value = initialValue;
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game oject</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 public Clickable(Graphics3DSampleGame game, Rectangle targetRectangle)
     : base(game)
 {
     rectangle = targetRectangle;
 }
示例#4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture Name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="initialValue">Initial value</param>
 public Button(Graphics3DSampleGame game, string textureName, Rectangle targetRectangle, int initialValue)
     : base(game, targetRectangle)
 {
     asset = textureName;
     value = initialValue;
 }
示例#5
0
 static void Main()
 {
     using (var game = new Graphics3DSampleGame())
         game.Run();
 }
示例#6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="isChecked">Initial state of the checkbox</param>
 public Checkbox(Graphics3DSampleGame game, string textureName, Rectangle targetRectangle, bool isChecked)
     : base(game, targetRectangle)
 {
     asset = textureName;
     this.isChecked = isChecked;
 }
示例#7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game oject</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 public Clickable(Graphics3DSampleGame game, Rectangle targetRectangle)
     : base(game)
 {
     rectangle = targetRectangle;
 }
示例#8
0
		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
		{
			game = new Graphics3DSampleGame ();
			game.Run ();
		}
示例#9
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     game = new Graphics3DSampleGame();
     game.Run();
 }
示例#10
0
 static void Main()
 {
     using (var game = new Graphics3DSampleGame())
         game.Run();
 }