void SetIsSelf() { FriendBtn.spriteSwithList.ApplyAllItem(p => p.GetComponent <UISprite>().color = Color.gray); FriendBtn.SetMyButtonActive(false); EmailBtn.spriteSwithList.ApplyAllItem(p => p.GetComponent <UISprite>().color = Color.gray); EmailBtn.SetMyButtonActive(false); ChatBtn.spriteSwithList.ApplyAllItem(p => p.GetComponent <UISprite>().color = Color.gray); ChatBtn.SetMyButtonActive(false); }
void SetIsNotFriend() { FriendBtn.spriteSwithList.ApplyAllItem(p => p.ChangeSprite(2)); FriendBtn.SetCallBackFuntion(OnAddFriendClick); FriendBtn.spriteSwithList.ApplyAllItem(p => p.GetComponent <UISprite>().color = Color.white); FriendBtn.SetMyButtonActive(true); EmailBtn.spriteSwithList.ApplyAllItem(p => p.GetComponent <UISprite>().color = Color.gray); EmailBtn.SetMyButtonActive(false); }
public void UpdateSwallowButton() { if (SelectedItemList == null || SelectedItemList.Count == 0) { Button_Beset.SetMyButtonActive(false); Button_Beset.BackgroundSwithList.ApplyAllItem(p => p.ChangeSprite(3)); } else { Button_Beset.SetMyButtonActive(true); Button_Beset.BackgroundSwithList.ApplyAllItem(p => p.ChangeSprite(1)); } }
void Awake() { RegisterEventHandler(); Button_back.SetCallBackFuntion(c => { SoundManager.Instance.PlaySoundEffect("Sound_Button_Stone_Cancel"); JewelBesetManager.GetInstance().ChangeSubUistate(JewelState.JewelBeset); JewelBesetManager.GetInstance().UPdateContain(JewelState.JewelBeset, CurrentItemFileInfo); JewelBesetManager.GetInstance().InitBeset_Attribute(null, null); }); Button_Beset.SetCallBackFuntion(c => { SoundManager.Instance.PlaySoundEffect("Sound_Button_Stone_Confirm"); Button_Beset.SetMyButtonActive(false); byte p = System.Convert.ToByte(place); NetServiceManager.Instance.EquipStrengthenService.SendRequestGoodsOperateBesetCommmand(EquipID, StoneID, p); //JewelBesetManager.GetInstance().besetQueue.Enqueue(place); }); TaskGuideBtnRegister(); }
void Awake() { TipsLable.SetText(LanguageTextManager.GetString("IDS_I9_28")); RegisterEventHandler(); Button_back.SetCallBackFuntion(c => { SoundManager.Instance.PlaySoundEffect("Sound_Button_Stone_Click"); JewelBesetManager.GetInstance().ChangeSubUistate(JewelState.jewelChose_Upgrade); }); Button_Beset.SetCallBackFuntion(c => { SoundManager.Instance.PlaySoundEffect("Sound_Button_Stone_Click"); if (IDs.Length > 0) { byte length = System.Convert.ToByte(IDs.Length); NetServiceManager.Instance.EquipStrengthenService.SendRequestGoodsOperateSwallowCommand(_itemfileinfo.sSyncContainerGoods_SC.uidGoods, length, IDs); Button_Beset.SetMyButtonActive(false); } }); TaskGuideBtnRegister(); }
public void SetButtonEnable() { buttonCallBack.SetMyButtonActive(true); buttonCallBack.SetButtonBackground(1); }
void SetSureBtnActive(bool flag) { SureButton.SetMyButtonActive(flag); //SureButton.gameObject.GetComponent<BoxCollider>().enabled = flag; SureButton.SetButtonBackground(flag?1:2); }