Exemple #1
0
        int uiMouseState; // 0=None; 1=BtnDown


        public GameWindow()
        {
            InitializeComponent();
            Global.Init();
            uiSettings = new UiSettings(this.ClientSize.Width, this.ClientSize.Height, 140);
            initUI(uiSettings);
        }
Exemple #2
0
        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();
        }
Exemple #3
0
 public MenuRender(UiSettings uiSettings) : base(uiSettings)
 {
     imgs = new BitmapAssetManager();
 }
 public Renderer(UiSettings uiSettings)
 {
     this.uiSettings = uiSettings;
     this.uiSettings.uiSettingsChanged += MessageRecieved;
 }