Inheritance: Fusion.Engine.Common.GameModule
Ejemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="game"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="w"></param>
        /// <param name="h"></param>
        /// <param name="text"></param>
        /// <param name="backColor"></param>
        public Frame(FrameProcessor ui, int x, int y, int w, int h, string text, SpriteFont font, Color backColor)
        {
            Game    = ui.Game;
            this.ui = ui;
            Init();

            Font      = font;
            X         = x;
            Y         = y;
            Width     = w;
            Height    = h;
            Text      = text;
            BackColor = backColor;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="game"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="w"></param>
        /// <param name="h"></param>
        /// <param name="text"></param>
        /// <param name="backColor"></param>
        public Frame(FrameProcessor ui, int x, int y, int w, int h, string text, Color backColor)
        {
            Game    = ui.Game;
            this.ui = ui;
            if (ui.DefaultFont == null)
            {
                throw new NullReferenceException("FrameProcessor.DefaultFont is null. Set DefaultFont or use Frame constructor with explicitly specified font.");
            }

            Init();

            Font      = ui.DefaultFont;
            X         = x;
            Y         = y;
            Width     = w;
            Height    = h;
            Text      = text;
            BackColor = backColor;
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="game"></param>
 public MouseProcessor(Game game, FrameProcessor ui)
 {
     this.Game = game;
     this.ui   = ui;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="id"></param>
 public Frame(FrameProcessor ui)
 {
     Game    = ui.Game;
     this.ui = ui;
     Init();
 }
Ejemplo n.º 5
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="game"></param>
		public MouseProcessor ( Game game, FrameProcessor ui )
		{
			this.Game	=	game;
			this.ui		=	ui;
		}
Ejemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="game"></param>
 public TouchProcessor(Game game, FrameProcessor ui)
 {
     this.Game = game;
     this.ui   = ui;
 }
Ejemplo n.º 7
0
		/// <summary>
		/// Ctor
		/// </summary>
		/// <param name="engine"></param>
		public CustomGameInterface ( Game game ) : base(game)
		{
			console			=	new GameConsole( game, "conchars");
			userInterface	=	new FrameProcessor( game, @"Fonts\textFont" );
		}