Esempio n. 1
0
        //相邻两个VIP的金额差
        private void setVipAmountDifference()
        {
            int priceCha = VIPUtil.GetNextVIPPrice(Singleton <VIPMode> .Instance.vipInfoMsg.vip) - (int)Singleton <VIPMode> .Instance.vipInfoMsg.totalDiam;

            if (priceCha < 0)
            {
                priceCha = 0;
            }
            payTip.text   = LanguageManager.GetWord("VIPView.PayTip", priceCha.ToString());
            payTotal.text = LanguageManager.GetWord("VIPView.PayTotal", Singleton <VIPMode> .Instance.vipInfoMsg.totalDiam.ToString());
        }
Esempio n. 2
0
 //修改进度条
 private void setPayProcess()
 {
     if (Singleton <VIPMode> .Instance.vipInfoMsg.vip >= 0)
     {
         if (Singleton <VIPMode> .Instance.vipInfoMsg.totalDiam >= VIPUtil.GetNextVIPPrice(Singleton <VIPMode> .Instance.vipInfoMsg.vip))
         {
             payProcess.value = 0.999f;
         }
         else
         {
             payProcess.value = ((float)Singleton <VIPMode> .Instance.vipInfoMsg.totalDiam + 0.9f) / (float)(VIPUtil.GetNextVIPPrice(Singleton <VIPMode> .Instance.vipInfoMsg.vip));
         }
     }
     if (Singleton <VIPMode> .Instance.vipInfoMsg.vip == VIPConsts.PAGEBOUNDARY_13)
     {
         payProcess.value = 1f;
         objNextVIP.gameObject.SetActive(false);                  //不显示下一级VIP的信息
     }
     processDes.text = Singleton <VIPMode> .Instance.vipInfoMsg.totalDiam.ToString() + "/" + VIPUtil.GetNextVIPPrice(Singleton <VIPMode> .Instance.vipInfoMsg.vip).ToString();
 }
Esempio n. 3
0
 //点击了具体的物品
 private void BtnItem(GameObject go)
 {
     Singleton <TipsManager> .Instance.OpenTipsByGoodsId((uint)VIPUtil.GetItemID(go.name, ShowPannel, pageIndex), null, null, "", "", 0);
 }
Esempio n. 4
0
        public override void Update()
        {
            HindLeftOrRightBtn(pageIndex.current - 1);
            //进度条数字
            if (payProcess && Singleton <VIPMode> .Instance.vipInfoMsg != null)
            {
                payProcess.value = ((float)Singleton <VIPMode> .Instance.vipInfoMsg.totalDiam) / (float)(VIPUtil.GetNextVIPPrice(Singleton <VIPMode> .Instance.vipInfoMsg.vip));

                if (payProcess.value != 0f)
                {
                    sliderBg.gameObject.SetActive(true);
                }
            }
        }