// Token: 0x060146F9 RID: 83705 RVA: 0x00531394 File Offset: 0x0052F594 public void SetUnchartedScoreInfo(ConfigDataUnchartedScoreInfo unchartedScoreInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetUnchartedScoreInfoConfigDataUnchartedScoreInfo_hotfix != null) { this.m_SetUnchartedScoreInfoConfigDataUnchartedScoreInfo_hotfix.call(new object[] { this, unchartedScoreInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_unchartedScoreInfo = unchartedScoreInfo; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; bool flag = projectLPlayerContext.IsUnchartedScoreOpened(unchartedScoreInfo.ID); this.m_uiStateController.SetToUIState((!flag) ? "Grey" : "Normal", false, true); Image image = this.m_image; Sprite sprite = AssetUtility.Instance.GetSprite(unchartedScoreInfo.PageImage); this.m_imageGrey.sprite = sprite; image.sprite = sprite; DateTime dateTime; DateTime dateTime2; projectLPlayerContext.GetUnchartedScoreOpenTime(unchartedScoreInfo.ID, out dateTime, out dateTime2); Text timeText = this.m_timeText; string text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Uncharted_LimitTime), new object[] { dateTime.Month, dateTime.Day, dateTime.Hour, dateTime.Minute, dateTime2.Month, dateTime2.Day, dateTime2.Hour, dateTime2.Minute }); this.m_timeGreyText.text = text; timeText.text = text; int unchartedScoreDailyRewardRestCount = projectLPlayerContext.GetUnchartedScoreDailyRewardRestCount(unchartedScoreInfo.ID); int scoreLevelBonusCount = unchartedScoreInfo.ScoreLevelBonusCount; UIUtility.SetDailyRewardCount(this.m_numberText, unchartedScoreDailyRewardRestCount, scoreLevelBonusCount); }
public static int get_Id2ChallengeLevelInfos(IntPtr l) { int result; try { ConfigDataUnchartedScoreInfo configDataUnchartedScoreInfo = (ConfigDataUnchartedScoreInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, configDataUnchartedScoreInfo.Id2ChallengeLevelInfos); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_UnchartedScoreRewardGroupId(IntPtr l) { int result; try { ConfigDataUnchartedScoreInfo configDataUnchartedScoreInfo = (ConfigDataUnchartedScoreInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, configDataUnchartedScoreInfo.UnchartedScoreRewardGroupId); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { ConfigDataUnchartedScoreInfo o = new ConfigDataUnchartedScoreInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetUnchartedScoreInfo(IntPtr l) { int result; try { UnchartedScoreButton unchartedScoreButton = (UnchartedScoreButton)LuaObject.checkSelf(l); ConfigDataUnchartedScoreInfo unchartedScoreInfo = unchartedScoreButton.GetUnchartedScoreInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, unchartedScoreInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_ScoreLevelBonus(IntPtr l) { int result; try { ConfigDataUnchartedScoreInfo configDataUnchartedScoreInfo = (ConfigDataUnchartedScoreInfo)LuaObject.checkSelf(l); int scoreLevelBonus; LuaObject.checkType(l, 2, out scoreLevelBonus); configDataUnchartedScoreInfo.ScoreLevelBonus = scoreLevelBonus; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_HeroId2Bonus(IntPtr l) { int result; try { ConfigDataUnchartedScoreInfo configDataUnchartedScoreInfo = (ConfigDataUnchartedScoreInfo)LuaObject.checkSelf(l); Dictionary <int, int> heroId2Bonus; LuaObject.checkType <Dictionary <int, int> >(l, 2, out heroId2Bonus); configDataUnchartedScoreInfo.HeroId2Bonus = heroId2Bonus; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_UIState(IntPtr l) { int result; try { ConfigDataUnchartedScoreInfo configDataUnchartedScoreInfo = (ConfigDataUnchartedScoreInfo)LuaObject.checkSelf(l); string uistate; LuaObject.checkType(l, 2, out uistate); configDataUnchartedScoreInfo.UIState = uistate; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Score2GoodsList(IntPtr l) { int result; try { ConfigDataUnchartedScoreInfo configDataUnchartedScoreInfo = (ConfigDataUnchartedScoreInfo)LuaObject.checkSelf(l); Dictionary <int, List <Goods> > score2GoodsList; LuaObject.checkType <Dictionary <int, List <Goods> > >(l, 2, out score2GoodsList); configDataUnchartedScoreInfo.Score2GoodsList = score2GoodsList; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Id2ScoreLevelInfos(IntPtr l) { int result; try { ConfigDataUnchartedScoreInfo configDataUnchartedScoreInfo = (ConfigDataUnchartedScoreInfo)LuaObject.checkSelf(l); Dictionary <int, ConfigDataScoreLevelInfo> id2ScoreLevelInfos; LuaObject.checkType <Dictionary <int, ConfigDataScoreLevelInfo> >(l, 2, out id2ScoreLevelInfos); configDataUnchartedScoreInfo.Id2ScoreLevelInfos = id2ScoreLevelInfos; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }