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);
     }
 }