Example #1
0
    public void OpenQuickBuyPanel(int shopConfigID)
    {
        if (quickBuy == null)
        {
            return;
        }
        if (buyPanel != null)
        {
            DestroyImmediate(buyPanel);
        }
        buyPanel = UI.CreatObjectToNGUI.InstantiateObj(quickBuy, UICamera.transform.Find("Anchor"));
        buyPanel.transform.localPosition = new Vector3(0, 0, -100);
        QuickBuy buy = buyPanel.GetComponent <QuickBuy>();

        buy.Show(shopConfigID);
    }
Example #2
0
    private static void OnJumpToBuyWindow(string str)
    {
        int temp = 0;

        switch (str)
        {
        case "BuyEnergy":
            temp = PropConst.PowerIconId;
            QuickBuy.BuyGlodOrPorwer(temp, PropConst.GemIconId);
            break;

        case "BuyGold":
            temp = PropConst.GoldIconId;
            QuickBuy.BuyGlodOrPorwer(temp, PropConst.GemIconId);
            break;

        case "BuyEncouragePower":
            temp = PropConst.EncouragePowerId;
            QuickBuy.BuyGlodOrPorwer(temp, PropConst.GemIconId);
            break;
        }
    }
Example #3
0
        public void Init(bool isVipMark, TopUpPanel_V2 vipParent, QuickBuy myQuickParent, int index)
        {
            shopIndex  = index;           //int.Parse(transform.parent.name.Substring (9,1));
            isVipPanel = isVipMark;
            if (isVipPanel)
            {
                DiscountLabel = DiscountTip.GetComponent <UILabel>();
                MyVipParent   = vipParent;
            }
            else
            {
                myQuickBuyParent = myQuickParent;
                quickBuyLabel    = DiscountTip.GetComponent <SpriteSwith>();
            }
            IsSelect = false;
            if (MoneyIcon != null)
            {
#if (ANDROID_TENCENT && !UNITY_EDITOR)
                MoneyIcon.ChangeSprite(2);
#else
                MoneyIcon.ChangeSprite(1);
#endif
            }
        }
Example #4
0
 /// <summary>
 /// 显示兑换体力窗口
 /// </summary>
 private void ShowBuyPowerWindow()
 {
     QuickBuy.BuyGlodOrPorwer(PropConst.PowerIconId, PropConst.GemIconId);
 }
Example #5
0
 private void BuyEncouragePower()
 {
     QuickBuy.BuyGlodOrPorwer(PropConst.EncouragePowerId, PropConst.GemIconId);
 }