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; }
public AScreenView(AScreen screen, GUIManager manager) : base(screen, manager) { }
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(); }
public AElementController(AElement model, GUIManager manager) : base(model) { Manager = manager; }