// Token: 0x06012538 RID: 75064 RVA: 0x004B51B8 File Offset: 0x004B33B8
        public void UpdateRaffleRewardPanel(RafflePool rafflePool, bool refreshAll)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateRaffleRewardPanelRafflePoolBoolean_hotfix != null)
            {
                this.m_UpdateRaffleRewardPanelRafflePoolBoolean_hotfix.call(new object[]
                {
                    this,
                    rafflePool,
                    refreshAll
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.GainRaffleRewardLevelInfo(rafflePool);
            this.AllocRewardItemCtrl(this.m_raffleRewardLevelInfoDict.Count);
            int num = 0;

            foreach (KeyValuePair <int, List <RaffleItem> > keyValuePair in this.m_raffleRewardLevelInfoDict)
            {
                if (refreshAll)
                {
                    this.m_rewardItemCtrlList[num].UpdateRaffleRewardItemInfo(keyValuePair.Key, keyValuePair.Value, rafflePool.DrawedRaffleIds);
                }
                else
                {
                    this.m_rewardItemCtrlList[num].UpdateRewardItemGotState(keyValuePair.Value, rafflePool.DrawedRaffleIds);
                }
                num++;
            }
            this.RewardScrollRect.verticalNormalizedPosition = 1f;
        }
Exemplo n.º 2
0
 // Token: 0x06012570 RID: 75120 RVA: 0x004B5C7C File Offset: 0x004B3E7C
 public void UpdateRafflePanel(RafflePool rafflePool)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateRafflePanelRafflePool_hotfix != null)
     {
         this.m_UpdateRafflePanelRafflePool_hotfix.call(new object[]
         {
             this,
             rafflePool
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.UpdateCostPanelState(rafflePool);
 }
Exemplo n.º 3
0
        // Token: 0x0600757B RID: 30075 RVA: 0x00203330 File Offset: 0x00201530
        public void Drawed(int poolId, int raffleId)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DrawedInt32Int32_hotfix != null)
            {
                this.m_DrawedInt32Int32_hotfix.call(new object[]
                {
                    this,
                    poolId,
                    raffleId
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            RafflePool rafflePool = base.GetRafflePool(poolId);

            base.DrawCostItem(rafflePool, raffleId);
        }
Exemplo n.º 4
0
    public static int get_Config(IntPtr l)
    {
        int result;

        try
        {
            RafflePool rafflePool = (RafflePool)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, rafflePool.Config);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 5
0
    public static int set_DrawedRaffleIds(IntPtr l)
    {
        int result;

        try
        {
            RafflePool    rafflePool = (RafflePool)LuaObject.checkSelf(l);
            HashSet <int> drawedRaffleIds;
            LuaObject.checkType <HashSet <int> >(l, 2, out drawedRaffleIds);
            rafflePool.DrawedRaffleIds = drawedRaffleIds;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 6
0
    public static int set_FreeDrawedCount(IntPtr l)
    {
        int result;

        try
        {
            RafflePool rafflePool = (RafflePool)LuaObject.checkSelf(l);
            int        freeDrawedCount;
            LuaObject.checkType(l, 2, out freeDrawedCount);
            rafflePool.FreeDrawedCount = freeDrawedCount;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 7
0
        // Token: 0x06007579 RID: 30073 RVA: 0x002031D0 File Offset: 0x002013D0
        public void DeSerialize(DSRaffleNtf msg)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DeSerializeDSRaffleNtf_hotfix != null)
            {
                this.m_DeSerializeDSRaffleNtf_hotfix.call(new object[]
                {
                    this,
                    msg
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_RaffleDS.ClearInitedData();
            List <RafflePool> rafflePools = RafflePool.PBRafflePoolsToRafflePools(msg.RafflePools);

            base.InitRafflePoolConfigs(rafflePools);
            this.m_RaffleDS.InitRafflePools(rafflePools);
            this.m_RaffleDS.InitVersion((ushort)msg.Version, (ushort)msg.Version);
        }
Exemplo n.º 8
0
    public static int set_Config(IntPtr l)
    {
        int result;

        try
        {
            RafflePool rafflePool = (RafflePool)LuaObject.checkSelf(l);
            ConfigDataRafflePoolInfo config;
            LuaObject.checkType <ConfigDataRafflePoolInfo>(l, 2, out config);
            rafflePool.Config = config;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 9
0
    public static int Drawed(IntPtr l)
    {
        int result;

        try
        {
            RafflePool rafflePool = (RafflePool)LuaObject.checkSelf(l);
            int        darwedRaffleId;
            LuaObject.checkType(l, 2, out darwedRaffleId);
            rafflePool.Drawed(darwedRaffleId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 10
0
    public static int RafflePools2PbActivityRafflePools_s(IntPtr l)
    {
        int result;

        try
        {
            List <RafflePool> rafflePools;
            LuaObject.checkType <List <RafflePool> >(l, 1, out rafflePools);
            List <ProRafflePool> o = RafflePool.RafflePools2PbActivityRafflePools(rafflePools);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 11
0
    public static int PBRafflePoolToRafflePool_s(IntPtr l)
    {
        int result;

        try
        {
            ProRafflePool pbRafflePool;
            LuaObject.checkType <ProRafflePool>(l, 1, out pbRafflePool);
            RafflePool o = RafflePool.PBRafflePoolToRafflePool(pbRafflePool);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 12
0
    public static int set_ActivityInstanceId(IntPtr l)
    {
        int result;

        try
        {
            RafflePool rafflePool = (RafflePool)LuaObject.checkSelf(l);
            ulong      activityInstanceId;
            LuaObject.checkType(l, 2, out activityInstanceId);
            rafflePool.ActivityInstanceId = activityInstanceId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 13
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            int poolId;
            LuaObject.checkType(l, 2, out poolId);
            RafflePool o = new RafflePool(poolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetRafflePool(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l);
            int poolId;
            LuaObject.checkType(l, 2, out poolId);
            RafflePool rafflePool = raffleComponentCommon.GetRafflePool(poolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, rafflePool);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_GetRafflePool(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            int             poolId;
            LuaObject.checkType(l, 2, out poolId);
            RafflePool o = raffleComponent.m_luaExportHelper.__callBase_GetRafflePool(poolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 16
0
    public static int GetRafflePool(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRaffle dataSectionRaffle = (DataSectionRaffle)LuaObject.checkSelf(l);
            int rafflePoolId;
            LuaObject.checkType(l, 2, out rafflePoolId);
            RafflePool rafflePool = dataSectionRaffle.GetRafflePool(rafflePoolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, rafflePool);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 17
0
        // Token: 0x06012575 RID: 75125 RVA: 0x004B5F90 File Offset: 0x004B4190
        protected void UpdateCostPanelState(RafflePool rafflePool)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateCostPanelStateRafflePool_hotfix != null)
            {
                this.m_UpdateCostPanelStateRafflePool_hotfix.call(new object[]
                {
                    this,
                    rafflePool
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int num = rafflePool.Config.FreeDrawCount - rafflePool.FreeDrawedCount;

            if (num > 0)
            {
                this.CostPanelStateCtrl.SetToUIState("Free", false, true);
                string format = this.ConfigDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Raffle_FreeCountTitle);
                this.FreeCountValueText.text = string.Format(format, num);
            }
            else
            {
                this.CostPanelStateCtrl.SetToUIState("Crystal", false, true);
                this.CostImage.sprite   = AssetUtility.Instance.GetSprite(UIUtility.GetGoodsIconName(rafflePool.Config.GoodsType, rafflePool.Config.DrawItemID));
                this.CostImage.material = AssetUtility.Instance.GetAsset <Material>(UIUtility.GetGoodsIconMaterialName(rafflePool.Config.GoodsType, rafflePool.Config.DrawItemID));
                string format2 = this.ConfigDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Raffle_CostTitle);
                this.CostTileText.text = string.Format(format2, UIUtility.GetGoodsName(rafflePool.Config.GoodsType, rafflePool.Config.DrawItemID));
                int drawItemCost = (GameManager.Instance.PlayerContext as ProjectLPlayerContext).GetDrawItemCost(rafflePool);
                int goodsCount   = UIUtility.GetGoodsCount(rafflePool.Config.GoodsType, rafflePool.Config.DrawItemID);
                this.CostValueText.text = drawItemCost.ToString();
                if (drawItemCost > goodsCount)
                {
                    this.HaveMoneyValueText.text = UIUtility.AddColorTag(goodsCount.ToString(), Color.red);
                }
                else
                {
                    this.HaveMoneyValueText.text = goodsCount.ToString();
                }
            }
        }
 // Token: 0x0601253B RID: 75067 RVA: 0x004B5458 File Offset: 0x004B3658
 protected void GainRaffleRewardLevelInfo(RafflePool rafflePool)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GainRaffleRewardLevelInfoRafflePool_hotfix != null)
     {
         this.m_GainRaffleRewardLevelInfoRafflePool_hotfix.call(new object[]
         {
             this,
             rafflePool
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_raffleRewardLevelInfoDict.Clear();
     foreach (RaffleItem raffleItem in rafflePool.Config.RaffleItems)
     {
         if (!this.m_raffleRewardLevelInfoDict.ContainsKey(raffleItem.RaffleLevel))
         {
             this.m_raffleRewardLevelInfoDict[raffleItem.RaffleLevel] = new List <RaffleItem>();
         }
         this.m_raffleRewardLevelInfoDict[raffleItem.RaffleLevel].Add(raffleItem);
     }
 }
Exemplo n.º 19
0
 // Token: 0x060125A3 RID: 75171 RVA: 0x004B68F0 File Offset: 0x004B4AF0
 public void UpdateCostPanelState(RafflePool rafflePool)
 {
     this.m_owner.UpdateCostPanelState(rafflePool);
 }
Exemplo n.º 20
0
 // Token: 0x06007590 RID: 30096 RVA: 0x00203518 File Offset: 0x00201718
 private void __callBase_DrawCostItem(RafflePool rafflePool, int raffleId)
 {
     base.DrawCostItem(rafflePool, raffleId);
 }
Exemplo n.º 21
0
 // Token: 0x06007591 RID: 30097 RVA: 0x00203524 File Offset: 0x00201724
 private RaffleItem __callBase_GetRaffleItem(RafflePool pool, int raffleId)
 {
     return(base.GetRaffleItem(pool, raffleId));
 }
 // Token: 0x06012569 RID: 75113 RVA: 0x004B5B1C File Offset: 0x004B3D1C
 public void GainRaffleRewardLevelInfo(RafflePool rafflePool)
 {
     this.m_owner.GainRaffleRewardLevelInfo(rafflePool);
 }
Exemplo n.º 23
0
 // Token: 0x06007594 RID: 30100 RVA: 0x00203548 File Offset: 0x00201748
 private int __callBase_GetAllDrawedCount(RafflePool pool)
 {
     return(base.GetAllDrawedCount(pool));
 }
Exemplo n.º 24
0
 // Token: 0x060075A7 RID: 30119 RVA: 0x00203800 File Offset: 0x00201A00
 public int __callBase_GetDrawItemCost(RafflePool pool)
 {
     return(this.m_owner.__callBase_GetDrawItemCost(pool));
 }
Exemplo n.º 25
0
 // Token: 0x060075A5 RID: 30117 RVA: 0x002037E0 File Offset: 0x002019E0
 public bool __callBase_IsRaffleItemsAllDrawed(RafflePool pool)
 {
     return(this.m_owner.__callBase_IsRaffleItemsAllDrawed(pool));
 }
Exemplo n.º 26
0
 // Token: 0x060075A8 RID: 30120 RVA: 0x00203810 File Offset: 0x00201A10
 public bool __callBase_CanFreeDraw(RafflePool pool)
 {
     return(this.m_owner.__callBase_CanFreeDraw(pool));
 }
Exemplo n.º 27
0
 // Token: 0x060075AA RID: 30122 RVA: 0x00203830 File Offset: 0x00201A30
 public void __callBase_DrawCostItem(RafflePool rafflePool, int raffleId)
 {
     this.m_owner.__callBase_DrawCostItem(rafflePool, raffleId);
 }
Exemplo n.º 28
0
 // Token: 0x060075AB RID: 30123 RVA: 0x00203840 File Offset: 0x00201A40
 public RaffleItem __callBase_GetRaffleItem(RafflePool pool, int raffleId)
 {
     return(this.m_owner.__callBase_GetRaffleItem(pool, raffleId));
 }
Exemplo n.º 29
0
 // Token: 0x060075AE RID: 30126 RVA: 0x00203870 File Offset: 0x00201A70
 public int __callBase_GetAllDrawedCount(RafflePool pool)
 {
     return(this.m_owner.__callBase_GetAllDrawedCount(pool));
 }
Exemplo n.º 30
0
 // Token: 0x0600758E RID: 30094 RVA: 0x00203500 File Offset: 0x00201700
 private bool __callBase_CanFreeDraw(RafflePool pool)
 {
     return(base.CanFreeDraw(pool));
 }