| | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.ShowUICtrl( ); |
| | | gen_to_be_invoked.ShowTip( ); |
| | | |
| | | |
| | | |
| | |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ItemTipsModel gen_to_be_invoked = (Snxxz.UI.ItemTipsModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | { |
| | | |
| | | return 0; |
| | |
| | |
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, itemModel.guid, false, true);
|
| | | itemTipsModel.SetBagTipsBtn(itemTipsModel.curAttrData);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | tipsModel.SetItemTipsModel(model.packType,model.guid,false,false);
|
| | | tipsModel.SetDogzEquipBtn(tipsModel.curAttrData);
|
| | | tipsModel.ShowUICtrl();
|
| | | tipsModel.ShowTip();
|
| | | });
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | tipsModel.SetItemTipsModel(model.packType, model.guid, false, true);
|
| | | tipsModel.SetDogzItemBtn(tipsModel.curAttrData);
|
| | | tipsModel.ShowUICtrl();
|
| | | tipsModel.ShowTip();
|
| | | });
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | });
|
| | | ModelCenter.Instance.GetModel<ItemTipsModel>().ShowUICtrl();
|
| | | ModelCenter.Instance.GetModel<ItemTipsModel>().ShowTip();
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | var equip = packModel.GetItemByGuid(this.candidateEquip.guid); |
| | | tipModel.SetItemTipsModel(PackType.Item, equip.guid, false, true); |
| | | tipModel.SetBagTipsBtn(tipModel.curAttrData); |
| | | tipModel.ShowUICtrl(); |
| | | tipModel.ShowTip(); |
| | | |
| | | if (this.candidateEquip.selected.value) |
| | | { |
| | |
| | | { |
| | | tipModel.SetItemTipsModel(PackType.Equip, slot.equip.value, false); |
| | | tipModel.SetPutOnTipsBtn(tipModel.curAttrData); |
| | | tipModel.ShowUICtrl(); |
| | | tipModel.ShowTip(); |
| | | } |
| | | else if (model.HasSamePlaceCandidateEquip(slot.equipPosition)) |
| | | { |
| | |
| | | {
|
| | | var itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>();
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, equipGuid, false, true);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | });
|
| | |
|
| | | var maxStar = EquipStarModel.GetMaxStarLevel(equip.config.ItemColor, equip.config.LV);
|
| | |
| | | m_ItemEquip.button.SetListener(() =>
|
| | | {
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, equipGuid, false, true);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | });
|
| | | }
|
| | | var equipLvNowList = strengthModel.GetEquipValueList(level, equipPlace);
|
| | |
| | | m_ItemEquip.button.SetListener(() =>
|
| | | {
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, equipGuid, false, true);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | }); |
| | | } |
| | | m_TextNumber.text = "+" + (equipLv + 1); |
| | |
| | | m_ItemEquip.button.SetListener(() =>
|
| | | {
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, equipGuid, false, true);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | |
| | | var itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>(); |
| | | itemTipsModel.SetItemTipsModel(PackType.Item, equipGuid, false, true); |
| | | itemTipsModel.ShowUICtrl(); |
| | | itemTipsModel.ShowTip(); |
| | | } |
| | | |
| | | [System.Serializable] |
| | |
| | |
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, _guid, false, true);
|
| | | itemTipsModel.SetBagTipsBtn(itemTipsModel.curAttrData);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | |
|
| | | model.ReportConfirmBetterEquip(model.currentEquipGuid);
|
| | | }
|
| | |
| | | string expValueFormula = "";
|
| | | Dictionary<int, string> exhaustedAttrFormula { get; set; }
|
| | | Dictionary<int, int> exhaustedMaxLvDict { get; set; }
|
| | | int[] guardAutoDrops;
|
| | |
|
| | | public int[] gemOpenLvs { get; private set; }
|
| | | public int[] jadeDynastyGemOpenLvs { get; private set; }
|
| | |
| | |
|
| | | guardDesDict = new Dictionary<int, List<string>>();
|
| | | FuncConfigConfig guardDesFunc = FuncConfigConfig.Get("GuardianTips");
|
| | | FuncConfigConfig guardAutoDropFunc = FuncConfigConfig.Get("GuardianPickUpID");
|
| | | guardAutoDrops = ConfigParse.GetMultipleStr<int>(guardAutoDropFunc.Numerical1);
|
| | | JsonData guardDesData = JsonMapper.ToObject(guardDesFunc.Numerical1);
|
| | | foreach (var key in guardDesData.Keys)
|
| | | {
|
| | |
| | |
|
| | | if (isShowUINow)
|
| | | {
|
| | | ShowUICtrl();
|
| | | ShowTip();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (isShowUINow)
|
| | | {
|
| | | ShowUICtrl();
|
| | | ShowTip();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | , type, itemModel.guid, ConfigParse.Analysis(itemModel.itemInfo.userData));
|
| | | }
|
| | |
|
| | | public void ShowUICtrl()
|
| | | public void ShowTip()
|
| | | {
|
| | | if (curAttrData == null) return;
|
| | |
|
| | |
| | | string jobName = "";
|
| | | public string GetEquipJobName(ItemAttrData attrData)
|
| | | {
|
| | |
|
| | | jobName = "";
|
| | | if (attrData == null) return jobName;
|
| | |
|
| | |
| | | {
|
| | | if (attrData.itemConfig.JobLimit != 0)
|
| | | {
|
| | | JobNameConfig jobNameConfig = JobNameConfig.Get(attrData.itemConfig.JobLimit);
|
| | | if (playerJob >= equipJob)
|
| | | {
|
| | | jobName = UIHelper.AppendColor(TextColType.White, jobNameConfig.name);
|
| | | }
|
| | | else
|
| | | {
|
| | | jobName = UIHelper.AppendColor(TextColType.Red, jobNameConfig.name);
|
| | | }
|
| | | var config = JobNameConfig.Get(attrData.itemConfig.JobLimit);
|
| | | jobName = UIHelper.AppendColor(playerJob >= equipJob ? TextColType.White : TextColType.Red, config.name);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | public bool isHavePutLimit { get; private set; }
|
| | |
|
| | | ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | | RuneModel runeModel { get { return ModelCenter.Instance.GetModel<RuneModel>(); } }
|
| | | GodBeastModel beastModel { get { return ModelCenter.Instance.GetModel<GodBeastModel>(); } }
|
| | |
|
| | | public ItemAttrData(int id, bool isPreview = false, ulong count = 0, int index = -1, bool isCompare = false, PackType type = PackType.Deleted, string guid = "", Dictionary<int, List<int>> useDataDict = null, ItemTipChildType childType = ItemTipChildType.Normal)
|
| | |
| | | {
|
| | | exhaustedMaxDataDict.Add(ids[i], values[i]);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | //设置弹框的宝石数据
|
| | |
| | | gridCell.itemCellBtn.onceClick = (int info) =>
|
| | | {
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, itemModel.guid, false, true);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | };
|
| | | gridCell.itemCellBtn.doubleClick = () =>
|
| | | {
|
| | |
| | | {
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, itemModel.guid, false, true);
|
| | | itemTipsModel.SetBagTipsBtn(itemTipsModel.curAttrData);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | };
|
| | | }
|
| | |
|
| | |
| | | gridCell.itemCellBtn.onceClick = (int info) =>
|
| | | {
|
| | | itemTipsModel.SetItemTipsModel(PackType.Warehouse, itemModel.guid, false, true);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | };
|
| | | gridCell.itemCellBtn.doubleClick = () =>
|
| | | {
|
| | |
| | |
|
| | | tipModel.SetItemTipsModel(PackType.Equip, item.guid, false);
|
| | | tipModel.SetPutOnTipsBtn(tipModel.curAttrData);
|
| | | tipModel.ShowUICtrl();
|
| | | tipModel.ShowTip();
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, itemModel.guid, false, true);
|
| | | itemTipsModel.SetBagTipsBtn(itemTipsModel.curAttrData);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | , "", null, ItemTipChildType.Buy);
|
| | | itemTipsModel.SetItemTipsModel(attrData, false);
|
| | | attrData.SetTipsFuncBtn(ItemOperateType.buy, (ItemOperateType type, string id) => { OnClickBuyBtn(ItemOperateType.buy, shopInfo.ID); });
|
| | | itemTipsModel.ShowUICtrl();
|
| | | itemTipsModel.ShowTip();
|
| | | }
|
| | |
|
| | | public int BuyCnt { get; private set; }
|
| | |
| | | tipsModel.SetItemTipsModel(attrData, false);
|
| | | if (tipsModel.compareAttrData != null)
|
| | | {
|
| | | tipsModel.ShowUICtrl();
|
| | | tipsModel.ShowTip();
|
| | | }
|
| | | else
|
| | | {
|