public List <GameObject> QuerySkillButtons(SkillSlotType inSlotType, bool bAll)
        {
            List <GameObject> list      = new List <GameObject>();
            FightForm         fightForm = Singleton <CBattleSystem> .GetInstance().FightForm;

            if (fightForm == null)
            {
                return(list);
            }
            if (bAll)
            {
                for (int i = 0; i < 10; i++)
                {
                    SkillButton button = fightForm.GetButton((SkillSlotType)i);
                    if (button != null)
                    {
                        list.Add(button.m_button);
                    }
                }
            }
            else if (inSlotType < SkillSlotType.SLOT_SKILL_COUNT)
            {
                SkillButton button2 = fightForm.GetButton(inSlotType);
                if (button2 != null)
                {
                    list.Add(button2.m_button);
                }
            }
            return(list);
        }
Exemplo n.º 2
0
        public override void Process(Action _action, Track _track)
        {
            FightForm fightForm = Singleton <CBattleSystem> .GetInstance().FightForm;

            if (fightForm != null)
            {
                GameObject moveJoystick = fightForm.GetMoveJoystick();
                if (moveJoystick == null)
                {
                    return;
                }
                bool bActive = !this.bForbid;
                CUIJoystickScript component = moveJoystick.GetComponent <CUIJoystickScript>();
                if (component)
                {
                    component.ResetAxis();
                }
                moveJoystick.CustomSetActive(bActive);
                component = moveJoystick.GetComponent <CUIJoystickScript>();
                if (component)
                {
                    component.ResetAxis();
                }
                if (this.bForbid && Singleton <CBattleSystem> .GetInstance().FightForm != null && Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager != null)
                {
                    for (int i = 0; i < 5; i++)
                    {
                        Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager.SkillButtonUp(Singleton <CBattleSystem> .GetInstance().FightFormScript, (SkillSlotType)i, false, default(Vector2));
                    }
                }
            }
        }
Exemplo n.º 3
0
 private void FightsBtn_Click(object sender, EventArgs e)
 {
     CloseAllWindows();
     if (LoggedUserToken != null)
     {
         fform         = new FightForm();
         fform.Visible = true;
     }
 }