예제 #1
0
        /// <summary>
        /// 战斗中显示玩家异常状态界面
        /// </summary>
        /// <param name="context"></param>
        /// <param name="combatUI"></param>
        public MenuState(SimulatorContext context, CombatUI combatUI) : base(context, combatUI)
        {
            _background = Context.LibData.GetImage(2, 11);
            _marker     = Context.LibData.GetImage(2, 12);

            _curCharacterIndex = _combatUI.CurCharacterIndex;
        }
 /// <summary>
 /// 选择操作对象
 /// </summary>
 /// <param name="indicator">标记符的帧动画</param>
 /// <param name="pos">标记符的位置</param>
 /// <param name="list">角色链表</param>
 /// <param name="selectAction"></param>
 /// <param name="ignoreDead">跳过死亡角色</param>
 /// <param name="combatUI"></param>
 public MenuCharacterSelect(SimulatorContext context, FrameAnimation indicator, Point[] pos, List <FightingCharacter> list, Action <FightingCharacter> selectAction, bool ignoreDead, CombatUI combatUI) : base(context, combatUI)
 {
     _combatUI           = combatUI;
     mIndicator          = indicator;
     mIndicatorPos       = pos;
     mList               = list;
     OnCharacterSelected = selectAction;
     mIgnoreDead         = ignoreDead;
     for (int i = 0; i < list.Count; i++)
     {
         if (list[i].IsAlive)
         {
             mCurSel = i;
             break;
         }
     }
 }
예제 #3
0
 /// <summary>
 /// 道具子菜单,装备、投掷、使用
 /// </summary>
 /// <param name="context"></param>
 /// <param name="combatUI"></param>
 public MenuGoods(SimulatorContext context, CombatUI combatUI) : base(context, combatUI)
 {
     _background = Context.Util.GetFrameBitmap(_showRectangle.Width, _showRectangle.Height);
 }
예제 #4
0
 /// <summary>
 /// 围攻、道具、防御、逃跑、状态界面
 /// </summary>
 /// <param name="context"></param>
 /// <param name="combatUI"></param>
 public MenuMisc(SimulatorContext context, CombatUI combatUI) : base(context, combatUI)
 {
     _background = Context.Util.GetFrameBitmap(2 * 16 + 6, 5 * 16 + 6);
 }
예제 #5
0
 public MainMenu(SimulatorContext context, CombatUI combatUI) : base(context, combatUI)
 {
     _combatUI             = combatUI;
     _menuIcon             = Context.LibData.GetImage(2, 1);
     _playerInfoBackground = Context.LibData.GetImage(2, 2);
 }
예제 #6
0
 public BaseCombatScreen(SimulatorContext context, CombatUI combatUI) : base(context)
 {
     _combatUI = combatUI;
 }