상속: Fusion.Engine.Common.GameModule
예제 #1
0
파일: Frame.cs 프로젝트: ttou73/IronStar
        /// <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;
        }
예제 #2
0
파일: Frame.cs 프로젝트: ttou73/IronStar
        /// <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;
        }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="game"></param>
 public MouseProcessor(Game game, FrameProcessor ui)
 {
     this.Game = game;
     this.ui   = ui;
 }
예제 #4
0
파일: Frame.cs 프로젝트: ttou73/IronStar
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="id"></param>
 public Frame(FrameProcessor ui)
 {
     Game    = ui.Game;
     this.ui = ui;
     Init();
 }
예제 #5
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="game"></param>
		public MouseProcessor ( Game game, FrameProcessor ui )
		{
			this.Game	=	game;
			this.ui		=	ui;
		}
예제 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="game"></param>
 public TouchProcessor(Game game, FrameProcessor ui)
 {
     this.Game = game;
     this.ui   = ui;
 }
예제 #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" );
		}