public void UpdateItem(int index, FundListPush.Items info, ButtonCustom.VoidDelegateObj callback) { this.itemId = index; this.m_textDays.set_text(string.Format(GameDataUtils.GetChineseContent(513169, false), info.days)); this.m_textCount.set_text("x" + info.itemNum); this.m_imageGot.SetActive(info.hasGetPrize); this.m_BtnGet.get_gameObject().SetActive(!info.hasGetPrize); this.m_BtnGet.set_enabled(info.canGetFlag); this.m_imageBtnDisable.SetActive(!info.canGetFlag); this.m_BtnGet.onClickCustom = callback; }
public void InitBtn(int pageId, ButtonCustom.VoidDelegateObj clickCallback) { BMuLuFenYe bMuLuFenYe = DataReader <BMuLuFenYe> .Get(pageId); if (bMuLuFenYe != null) { this.m_BtnName.set_text(GameDataUtils.GetChineseContent(bMuLuFenYe.name, false)); } this.m_BtnPage.onClickCustom = clickCallback; this.pageId = pageId; }
public void UpdateItem(int id, string title, string count, bool canGet, bool hasGot, bool isOver, ButtonCustom.VoidDelegateObj callback) { this.itemId = id; this.m_TextDay.set_text(title); this.m_TextCount.set_text(count); this.m_BtnAward.GetComponent <ButtonCustom>().onClickCustom = callback; this.m_ImageGot.SetActive(hasGot); this.m_ImageOut.SetActive(!hasGot && isOver); this.m_BtnAward.SetActive(!hasGot && !isOver); this.m_BtnAward.GetComponent <ButtonCustom>().set_enabled(canGet); this.m_ImageBtnDisable.SetActive(!canGet); }
public void InitBtn(ButtonCustom.VoidDelegateObj clickCallback) { this.m_BtnBoss.onClickCustom = clickCallback; }