int uiMouseState; // 0=None; 1=BtnDown public GameWindow() { InitializeComponent(); Global.Init(); uiSettings = new UiSettings(this.ClientSize.Width, this.ClientSize.Height, 140); initUI(uiSettings); }
private void initUI(UiSettings info) { manager = new GameManager(uiSettings); uiLastFrameTime = DateTime.Now; uiTimer = new Timer(); uiTimer.Interval = (1000 / info.FPS); uiTimer.Tick += UiScreenRefresh; uiTimer.Start(); }
public MenuRender(UiSettings uiSettings) : base(uiSettings) { imgs = new BitmapAssetManager(); }
public Renderer(UiSettings uiSettings) { this.uiSettings = uiSettings; this.uiSettings.uiSettingsChanged += MessageRecieved; }