예제 #1
0
 public virtual void Update(ScreenManager manager, Screen aScreen, GameTime gameTime, GameSettings gameSettings, GameStatus gameStatus)
 {
     if (Scrollable)
     {
         int focusedIndex = GetFocusedButtonAreaIndex(true);
         CheckIfScrollUpOrDown(focusedIndex);
     }
     foreach (ButtonArea button in _buttonAreaList)
     {
         button.Update(manager, aScreen, gameTime, gameSettings, gameStatus, ScrollCurrentOffset, _resolution.GetResolution());
     }
     if (Scrollable)
     {
         _scrollUpButtonArea.Update(manager, aScreen, gameTime, gameSettings, gameStatus, new Vector2(0, 0), _resolution.GetResolution());
         _scrollDownButtonArea.Update(manager, aScreen, gameTime, gameSettings, gameStatus, new Vector2(0, 0), _resolution.GetResolution());
     }
 }