示例#1
0
        public BaseCore()
        {
            m_SystemGraphics = System.Drawing.Graphics.FromHwnd(this.Window.Handle);
            Settings.ScreenDPI = new Vector2(m_SystemGraphics.DpiX / 96f, m_SystemGraphics.DpiY / 96f);

            m_Graphics = new GraphicsDeviceManager(this);
            m_Graphics.IsFullScreen = false;
            m_Graphics.PreferredBackBufferWidth = 256;
            m_Graphics.PreferredBackBufferHeight = 240;
            m_Graphics.SynchronizeWithVerticalRetrace = false;

            m_Input = new InterXLib.InputState();
            m_Input.Initialize(this.Window.Handle);
            m_Actions = new ActionBinder();

            m_SpriteBatch = new InterXLib.Display.YSpriteBatch(this);
            this.Components.Add(m_SpriteBatch);

            m_XGUI = new GUIManager();
            this.IsMouseVisible = true;
        }
示例#2
0
 public AScreenView(AScreen screen, GUIManager manager)
     : base(screen, manager)
 {
 }
示例#3
0
        public void Initialize(GUIManager manager)
        {
            Manager = manager;
            if (SkinName == null) { SkinName = Manager.DefaultSkinName; }
            if (FontName == null) { FontName = Manager.DefaultFontName; }
            if (FontSize == 0f) { FontSize = 16f; }

            IsInitialized = true;

            OnInitialize();
        }
示例#4
0
 public AElementController(AElement model, GUIManager manager)
     : base(model)
 {
     Manager = manager;
 }