void ItemBatchUse() { if (m_Item != null && m_Item.IsValid()) { //NumChooseController.OpenWindow(1, m_Item.StackCount, "使用", OnBatchUseNumChoose,1); NumChooseController.OpenWindow(1, (m_Item.StackCount > 99) ? 99 : m_Item.StackCount, StrDictionary.GetClientDictionaryString("#{2840}"), OnBatchUseNumChoose, 1, StrDictionary.GetClientDictionaryString("#{2840}"), StrDictionary.GetClientDictionaryString("#{3395}"), false); } }
void OnDestroy() { #if !UNITY_WP8 if (NumChooseController.Instance() != null) { UIManager.CloseUI(UIInfo.NumChoose); } #endif m_Instance = null; }
public void OnClickBuy(GameObject obj) { Tab_SystemShop sysShopTable = TableManager.GetSystemShopByID(WorldVoiceSysShopId, 0); if (sysShopTable != null && sysShopTable.CanBuyMulty > 0) { int ciid = sysShopTable.GetPidbyIndex(WorldVoiceIndex); string medicalName = "World Voice"; Tab_CommonItem tcitem = TableManager.GetCommonItemByID(ciid, 0); if (tcitem == null) { return; } else { medicalName = tcitem.Name; } // Tab_CommonItem buyItem = TableManager.GetCommonItemByID(WorldVoiceIndex, 0); // medicalName = buyItem.Name; string goldMoneyShopTitle = StrDictionary.GetClientDictionaryString("#{10955}", medicalName); string goldMoneyShopTotalTitle = StrDictionary.GetClientDictionaryString("#{2837}"); string oktitle = StrDictionary.GetClientDictionaryString("#{2837}"); string currencyIcon = string.Empty; int moneyType = sysShopTable.GetMoneyTypebyIndex(WorldVoiceIndex); int moneySubType = sysShopTable.GetMoneySubTypebyIndex(WorldVoiceIndex); int price = sysShopTable.GetPricebyIndex(WorldVoiceIndex); // int moneyType = 1; // int moneySubType = buyItem.SellMoneyType; // int price = buyItem.SellPrice; int stepPerClick = 1; if (moneyType == (int)Consume_Type.COIN) { currencyIcon = "qian5"; stepPerClick = 10; } else if (moneyType == (int)Consume_Type.YUANBAO) { if (moneySubType == (int)Consume_SubType.YUANBAO_NORMAL) { currencyIcon = "qian2"; } else if (moneySubType == (int)Consume_SubType.YUANBAO_BIND) { currencyIcon = "qian3"; } } NumChooseController.OpenWindow(1, 999, goldMoneyShopTitle, OnNumChoose, stepPerClick, goldMoneyShopTotalTitle, oktitle, true, "", currencyIcon, price); } else { MessageBoxLogic.OpenOKBox(1004, 1000); } }
void Buy() { if (m_LeftCount <= 0) { GUIData.AddNotifyData("#{10519}"); return; } NumChooseController.OpenWindow(1, m_LeftCount, StrDictionary.GetClientDictionaryString("#{2837}"), MsgBoxBuyGuildItemOK, 1); }
void Buy() { if (!m_nIsItemCanBuy) { Singleton <ObjManager> .GetInstance().MainPlayer.SendNoticMsg(false, "#{3194}"); return; } NumChooseController.OpenWindow(m_nShopItemChangeMin, m_nShopItemChangeMax, StrDictionary.GetClientDictionaryString("#{2837}"), MsgBoxBuyGuildItemOK, 1); }
// 批量购买当前选中物品 public void BuyBatchCurItem() { CloseCurItemTip(); if (null != m_curShowPage) { SysShopPage curPage = m_curShowPage.GetComponent <SysShopPage>(); if (curPage == null || curPage.GetCurHighLightItem() == null) { return; } Tab_SystemShop sysShopTable = TableManager.GetSystemShopByID(m_curShopID, 0); if (sysShopTable != null && sysShopTable.CanBuyMulty > 0) { string medicalName = curPage.GetCurHighLightItem().LabelName.text; string goldMoneyShopTitle = StrDictionary.GetClientDictionaryString("#{10955}", medicalName); string goldMoneyShopTotalTitle = StrDictionary.GetClientDictionaryString("#{2837}"); string oktitle = StrDictionary.GetClientDictionaryString("#{2837}"); int index = int.Parse(curPage.GetCurHighLightItem().gameObject.name); string currencyIcon = string.Empty; int moneyType = sysShopTable.GetMoneyTypebyIndex(index); int moneySubType = sysShopTable.GetMoneySubTypebyIndex(index); int stepPerClick = 1; if (moneyType == (int)Consume_Type.COIN) { currencyIcon = "qian5"; stepPerClick = 10; } else if (moneyType == (int)Consume_Type.YUANBAO) { if (moneySubType == (int)Consume_SubType.YUANBAO_NORMAL) { currencyIcon = "qian2"; } else if (moneySubType == (int)Consume_SubType.YUANBAO_BIND) { currencyIcon = "qian3"; } } NumChooseController.OpenWindow(ITEMCOUNT_MIN, ITEMCOUNT_MAX, goldMoneyShopTitle, OnNumChoose, stepPerClick, goldMoneyShopTotalTitle, oktitle, true, "", currencyIcon, sysShopTable.GetPricebyIndex(index)); } else { MessageBoxLogic.OpenOKBox(1004, 1000); } } }
void OnBuyClick() { if (null == RechargeController.Instance()) { return; } if (m_bEnableTimes) { NumChooseController.OpenWindow(1, 99999, Utils.GetDicByID(3225), OnChooseBuyCountOk, 1); } else { RechargeController.Instance().OnMakePay(gameObject.name, 1); } }
public static void OnShowNumChoose(bool bSuccess, object param) { if (!bSuccess) { return; } if (null == param) { LogModule.ErrorLog("ShowNumChoose:param not define."); return; } NumChooseController.NumChooseInfo curInfo = param as NumChooseController.NumChooseInfo; if (curInfo != null) { NumChooseController.Instance().SetData(curInfo._minValue, curInfo._maxValue, curInfo._szTitle, curInfo._okClickFun, curInfo._stepValue); } }
void ButtonBuy() { NumChooseController.OpenWindow(m_nShopItemChangeMin, m_nShopItemChangeMax, StrDictionary.GetClientDictionaryString("#{5315}"), BoxBuyItemOK, 1); }