Esempio n. 1
0
 public StoreConfirmParam(pd_StoreItem item, OnOkDeleage _del = null)
 {
     title      = Store.GetName(item);
     icon_id    = item.price.goods_type.ToString();
     price      = item.price.goods_value;
     message    = Localization.Get("StorePurchaseMessage");
     stuff_item = item;
     OnOk       = _del;
 }
Esempio n. 2
0
 public StoreConfirmParam(StoreGoodsItem item, OnOkDeleage _del = null)
 {
     title      = item.Name;
     icon_id    = item.PriceIconID;
     price      = item.Price.goods_value;
     message    = Localization.Get("StorePurchaseMessage");
     goods_item = item;
     OnOk       = _del;
 }
Esempio n. 3
0
 public StoreConfirmParam(Rune rune, RuneType type, pd_GoodsData goods, OnOkDeleage _del, bool is_event)
 {
     title         = rune.GetName();
     this.icon_id  = goods.goods_type.ToString();
     this.price    = goods.goods_value;
     rune_item     = rune;
     message       = Localization.Get(type + "Confirm");
     OnOk          = _del;
     this.is_event = is_event;
 }
Esempio n. 4
0
 public StoreConfirmParam(pd_GoodsData goods, string refresh_icon, OnOkDeleage _del = null)
 {
     title             = Localization.Get("StoreRefreshTitle");
     refresh_goods     = goods;
     this.icon_id      = goods.goods_type.ToString();
     this.price        = goods.goods_value;
     message           = Localization.Get("StoreRefreshMessage");
     this.refresh_icon = refresh_icon;
     OnOk = _del;
 }
Esempio n. 5
0
    public StoreConfirmParam(StoreLootItem item, OnOkDeleage _del = null, bool is_free = false)
    {
        title   = item.Name;
        icon_id = item.IconID;
        if (is_free)
        {
            price = 0;
        }
        else
        {
            price = item.Price.goods_value;
        }
        message = Localization.Get("StorePurchaseMessage");

        loot_item = item;

        OnOk = _del;
    }
Esempio n. 6
0
    override public void SetParams(bool is_new, object[] parms)
    {
        base.SetParams(is_new, parms);

        m_BuyType = (pe_SlotBuy)parms[0];
        switch (m_BuyType)
        {
        case pe_SlotBuy.Creature:
            m_title.text        = Localization.Get("HeroSlotBuy");
            m_desc.text         = Localization.Get("HeroSlotBuyDesc");
            m_desc_max.text     = Localization.Get("HeroSlotLimited");
            m_slot              = CreatureInfoManager.Instance.Slot;
            m_SlotCount.text    = Network.PlayerInfo.creature_count_max.ToString();
            m_SlotCountNew.text = (Network.PlayerInfo.creature_count_max + m_slot.AddCount).ToString();
            m_toggle.value      = Network.PlayerInfo.creature_count_max >= m_slot.CountMax;
            break;

        case pe_SlotBuy.Rune:
            m_title.text        = Localization.Get("RuneSlotBuy");
            m_desc.text         = Localization.Get("RuneSlotBuyDesc");
            m_desc_max.text     = Localization.Get("RuneSlotLimited");
            m_slot              = RuneInfoManager.Instance.Slot;
            m_SlotCount.text    = Network.PlayerInfo.rune_count_max.ToString();
            m_SlotCountNew.text = (Network.PlayerInfo.rune_count_max + m_slot.AddCount).ToString();
            m_toggle.value      = Network.PlayerInfo.rune_count_max >= m_slot.CountMax;
            break;
        }

        m_price.text = Localization.Format("GoodsFormat", Network.PlayerInfo.GetSlotBuyCash(m_slot));
        if (parms.Length > 1)
        {
            _OnOK = (OnOkDeleage)parms[1];
        }
        else
        {
            _OnOK = null;
        }
    }