Inheritance: Fusion.Engine.Common.GameModule
Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="game"></param>
 public MouseProcessor(Game game, FrameProcessor ui)
 {
     this.Game = game;
     this.ui   = ui;
 }
Beispiel #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="id"></param>
 public Frame(FrameProcessor ui)
 {
     Game    = ui.Game;
     this.ui = ui;
     Init();
 }
		/// <summary>
		/// 
		/// </summary>
		/// <param name="game"></param>
		public MouseProcessor ( Game game, FrameProcessor ui )
		{
			this.Game	=	game;
			this.ui		=	ui;
		}
Beispiel #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="game"></param>
 public TouchProcessor(Game game, FrameProcessor ui)
 {
     this.Game = game;
     this.ui   = ui;
 }
		/// <summary>
		/// Ctor
		/// </summary>
		/// <param name="engine"></param>
		public CustomGameInterface ( Game game ) : base(game)
		{
			console			=	new GameConsole( game, "conchars");
			userInterface	=	new FrameProcessor( game, @"Fonts\textFont" );
		}