Esempio n. 1
0
 public void InitExSlotButton(bool isEnable)
 {
     base.transform.SetActiveChildren(isActive: false);
     ChangeNormalMode();
     if (ExSlotButton == null)
     {
         GameObject gameObject = Util.InstantiatePrefab("Remodel/ExSlotBtn", base.gameObject);
         ExSlotButton      = ((Component)gameObject.transform.FindChild("ExSlotButton")).GetComponent <UIButton>();
         ExSlotButtonFrame = gameObject.transform.FindChild("ExSlotButtonFrame");
     }
     ExSlotButton.transform.parent.SetActive(isActive: true);
     ExSlotButton.transform.SetActive(isActive: true);
     ExSlotButtonFrame.SetActive(isActive: false);
     isExSlot = true;
     ExSlotButton.isEnabled = isEnable;
     ExSlotButton.onClick.Add(Util.CreateEventDelegate(((Component)base.transform.parent.parent).GetComponent <UIRemodelEquipSlotItems>(), "OpenExSlotDialog", null));
     if (isEnable)
     {
         ExSlotButton.SetState(UIButtonColor.State.Normal, immediate: true);
     }
     else
     {
         ExSlotButton.SetState(UIButtonColor.State.Disabled, immediate: true);
     }
 }
Esempio n. 2
0
 public void RemoveHover()
 {
     if (isExSlot && ExSlotButton != null && ExSlotButton.isActiveAndEnabled)
     {
         if (ExSlotButton.isEnabled)
         {
             ExSlotButton.SetState(UIButtonColor.State.Normal, immediate: true);
         }
         ExSlotButtonFrame.SetActive(isActive: false);
     }
     else
     {
         mButton_Action.SetState(UIButtonColor.State.Normal, immediate: true);
         UISelectedObject.SelectedOneObjectBlink(mButton_Action.gameObject, value: false);
     }
 }