Пример #1
0
        private void Name_OnClick(Gump sender)
        {
            AbilityInfo abilityInfo = (AbilityInfo)sender.GetTag("Ability");

            if (AbilityInfo.Active == abilityInfo)
            {
                AbilityInfo.Active = (AbilityInfo)null;
            }
            else
            {
                AbilityInfo.Active = abilityInfo;
            }
        }
Пример #2
0
 private void SetIndex_OnClick(Gump g)
 {
     this.Index = (int)g.GetTag("Index");
     Gumps.Destroy((Gump)this.m_Dropdown);
 }