Esempio n. 1
0
        private void RefreshSelector()
        {
            foreach (ActionSelectorButton button in slots)
            {
                button.Hide();
            }

            if (select != null)
            {
                int index = 0;
                foreach (SAction action in select.actions)
                {
                    if (index < slots.Length && !action.IsAuto() && action.CanDoAction(character, select))
                    {
                        ActionSelectorButton button = (ActionSelectorButton)slots[index];
                        button.SetButton(action);
                        index++;
                    }
                }
            }
        }
Esempio n. 2
0
        private void OnClick(UISlot islot)
        {
            ActionSelectorButton button = (ActionSelectorButton)islot;

            OnClickAction(button.GetAction());
        }