protected void SetState(FashionData.FashionDataState state) { switch (state) { case FashionData.FashionDataState.Own: this.FashionUIItemUnitItemStateOwn.SetActive(false); this.FashionUIItemUnitItemStateExpired.SetActive(false); this.FashionUIItemUnitItemStateWearing.SetActive(false); break; case FashionData.FashionDataState.Expired: this.FashionUIItemUnitItemStateOwn.SetActive(false); this.FashionUIItemUnitItemStateExpired.SetActive(true); this.FashionUIItemUnitItemStateWearing.SetActive(false); break; case FashionData.FashionDataState.Dressing: this.FashionUIItemUnitItemStateOwn.SetActive(false); this.FashionUIItemUnitItemStateExpired.SetActive(false); this.FashionUIItemUnitItemStateWearing.SetActive(true); break; default: this.FashionUIItemUnitItemStateOwn.SetActive(false); this.FashionUIItemUnitItemStateExpired.SetActive(false); this.FashionUIItemUnitItemStateWearing.SetActive(false); break; } }
protected string GetTimeStringByTimeout(FashionData.FashionDataState fashionDataState, int time) { if (fashionDataState == FashionData.FashionDataState.Own && time == -1) { return(GameDataUtils.GetChineseContent(1005016, false)); } if (fashionDataState == FashionData.FashionDataState.Expired) { return(string.Empty); } if (time > 0) { int num = time - TimeManager.Instance.PreciseServerSecond; if (num < 0) { num = 0; } return(this.GetTimeStringByTime(num)); } return(string.Empty); }
protected bool GetIsMaskOn(FashionData.FashionDataState fashionDataState) { return(fashionDataState == FashionData.FashionDataState.None || fashionDataState == FashionData.FashionDataState.Expired); }