public void SetupView(VentureDataItem ventureData, Action <VentureDataItem> fetchBtnCallBack, Action <VentureDataItem> goBtnCallBack, Action <VentureDataItem> cancelBtnCallBack, Action <VentureDataItem> speedUpBtnCallBack) { this._ventureData = ventureData; this._onFetchBtnClick = fetchBtnCallBack; this._onGoBtnClick = goBtnCallBack; this._onCancelBtnClick = cancelBtnCallBack; this._onSpeedUpBtnClick = speedUpBtnCallBack; this.DoSetupView(); }
public VentureDispatchPageContext(VentureDataItem ventureData) { ContextPattern pattern = new ContextPattern { contextName = "VentureDispatchPageContext", viewPrefabPath = "UI/Menus/Page/Island/VentureDispatchPage" }; base.config = pattern; this._ventureData = ventureData; }
public VentureSpeedUpDialogContext(VentureDataItem ventureData) { ContextPattern pattern = new ContextPattern { contextName = "VentureSpeedUpDialogContext", viewPrefabPath = "UI/Menus/Dialog/VentureSpeedUpDialog" }; base.config = pattern; this._ventureData = ventureData; }
public DispatchAvatarDialogContext(VentureDataItem ventureData, int index) { ContextPattern pattern = new ContextPattern { contextName = "DispatchAvatarDialogContext", viewPrefabPath = "UI/Menus/Dialog/CabinDispatchAvatarDialog" }; base.config = pattern; this.ventureData = ventureData; this.teamEditIndex = index; }
public void SetupView(int index, VentureDataItem ventureData = null) { this._ventureData = ventureData; this._index = index; this._condition = ventureData.GetVentureCondition(this._index); base.transform.gameObject.SetActive(this._condition != null); if (this._condition != null) { bool flag = this._ventureData.IsConditionMatch(this._condition); base.transform.Find("Check").gameObject.SetActive(flag); base.transform.Find("UnCheck").gameObject.SetActive(!flag); base.transform.Find("Check/Desc").GetComponent <Text>().text = this._condition.desc; base.transform.Find("UnCheck/Desc").GetComponent <Text>().text = this._condition.desc; } }
public void SetupView(int index, VentureDataItem ventureData) { this._index = index; this._ventureData = ventureData; if (this._ventureData.selectedAvatarList.Count >= index) { this._avatarData = Singleton <AvatarModule> .Instance.GetAvatarByID(this._ventureData.selectedAvatarList[index - 1]); } else { this._avatarData = null; } base.transform.Find("Content").gameObject.SetActive(this._avatarData != null); if (this._avatarData != null) { base.transform.Find("BG/BGColor").GetComponent <Image>().sprite = Miscs.GetSpriteByPrefab(MiscData.Config.AvatarAttributeBGSpriteList[this._avatarData.Attribute]); this.SetupAvatar(); } else { base.transform.Find("BG/BGColor").GetComponent <Image>().sprite = Miscs.GetSpriteByPrefab("SpriteOutput/AvatarTachie/BgType4"); } }