Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | Utils.BeginObjectRegister(typeof(E_ModelResType), L, translator, 0, 0, 0, 0); |
| | | Utils.EndObjectRegister(typeof(E_ModelResType), L, translator, null, null, null, null, null); |
| | | |
| | | Utils.BeginClassRegister(typeof(E_ModelResType), L, null, 8, 0, 0); |
| | | Utils.BeginClassRegister(typeof(E_ModelResType), L, null, 9, 0, 0); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Weapon", E_ModelResType.Weapon); |
| | | |
| | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Secondary", E_ModelResType.Secondary); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Hand", E_ModelResType.Hand); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Spirit", E_ModelResType.Spirit); |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); |
| | | |
| | |
| | | { |
| | | translator.PushE_ModelResType(L, E_ModelResType.Hand); |
| | | } |
| | | else if (LuaAPI.xlua_is_eq_str(L, 1, "Spirit")) |
| | | { |
| | | translator.PushE_ModelResType(L, E_ModelResType.Spirit); |
| | | } |
| | | else |
| | | { |
| | | return LuaAPI.luaL_error(L, "invalid string for E_ModelResType!"); |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: be7e2426fca728c4eaf7165f51ea3a9f |
| | | timeCreated: 1562331274 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "makeDruglist", _g_get_makeDruglist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlayBetterEquipEffect", _g_get_isPlayBetterEquipEffect); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "guardGetPathId", _g_get_guardGetPathId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "spiritWeaponPathIds", _g_get_spiritWeaponPathIds); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "wingsGetPathIdDict", _g_get_wingsGetPathIdDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dungeonUseDict", _g_get_dungeonUseDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lookLineIndex", _g_get_lookLineIndex); |
| | |
| | | |
| | | |
| | | { |
| | | int _equipPlace = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsShowAddEquipByPlace( _equipPlace ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_guardGetPathId(RealStatePtr L) |
| | | static int _g_get_spiritWeaponPathIds(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.PackModel gen_to_be_invoked = (Snxxz.UI.PackModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.guardGetPathId); |
| | | translator.Push(L, gen_to_be_invoked.spiritWeaponPathIds); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 44a79d6b36594754c8a1d7745278949d |
| | | timeCreated: 1562249796 |
| | | timeCreated: 1562338101 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TrialDungeonModel), SnxxzUITrialDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.EquipFightPower), SnxxzUIEquipFightPowerWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.EquipModel), SnxxzUIEquipModelWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairylandCeremonyModel), SnxxzUIFairylandCeremonyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FakeDungeonUtility), FakeDungeonUtilityWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit7(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(FakeDungeonUtility), FakeDungeonUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FashionDecomposeModel), SnxxzUIFashionDecomposeModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(CoinTaskTipModel), CoinTaskTipModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FeatureNoticeModel), FeatureNoticeModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit8(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(FeatureNoticeModel), FeatureNoticeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MainRedDot), SnxxzUIMainRedDotWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ExpertSkillSelectWin), SnxxzUIExpertSkillSelectWinWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(QuickSetting), QuickSettingWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(QuickSetting), QuickSettingWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.SkillModel), SnxxzUISkillModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(JumpUIType), JumpUITypeWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MapModel), SnxxzUIMapModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MapModel), SnxxzUIMapModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(WorldMapSkip), WorldMapSkipWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(RedPointState), RedPointStateWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TeamInviteType), TeamInviteTypeWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(TeamInviteType), TeamInviteTypeWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TeammatePrepareState), TeammatePrepareStateWrap.__Register); |
| | | |
| | | |
| | |
| | | <type fullname="Snxxz.UI.DungeonUseBuffModel" preserve="all"/> |
| | | <type fullname="IceLodeStarAwardClass" preserve="all"/> |
| | | <type fullname="Snxxz.UI.TrialDungeonModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.EquipFightPower" preserve="all"/> |
| | | <type fullname="Snxxz.UI.EquipModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.EquipGemModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.EquipStrengthModel" preserve="all"/> |
| | |
| | |
|
| | | public class AlchemyBasicDrugWin : AlchemyDrugWin
|
| | | {
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | base.OnPreClose();
|
| | | if (FunctionalGuideCenter.Instance.ExistUnderwayGuide(131))
|
| | | {
|
| | | FunctionalGuideCenter.Instance.RemoveGuide(131);
|
| | | }
|
| | | if (FunctionalGuideCenter.Instance.ExistUnderwayGuide(132))
|
| | | {
|
| | | FunctionalGuideCenter.Instance.RemoveGuide(132);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | public int normalBatchAlchemyLevel { get; private set; }
|
| | | Dictionary<int, int> alchemyRedpointLevelLimits;
|
| | |
|
| | | public int autoFunctionGuideLevel { get; private set; }
|
| | |
|
| | | public bool isServerPrepare { get; private set; }
|
| | |
|
| | | public event Action selectAlchemyRefresh;
|
| | |
| | | funcConfig = FuncConfigConfig.Get("AlchemyRedPoint");
|
| | | normalBatchAlchemyLevel = int.Parse(funcConfig.Numerical2);
|
| | | alchemyRedpointLevelLimits = ConfigParse.GetDic<int, int>(funcConfig.Numerical3);
|
| | | autoFunctionGuideLevel = int.Parse(funcConfig.Numerical4);
|
| | | }
|
| | |
|
| | | {
|
| | |
| | |
|
| | | public class AlchemyNormalUseDrugWin : AlchemyUseDrugWin
|
| | | {
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | base.OnAfterOpen();
|
| | |
|
| | | if (PlayerDatas.Instance.baseData.LV < model.autoFunctionGuideLevel
|
| | | && !FunctionalGuideCenter.Instance.ExistAnyUnderwayGuide()
|
| | | && model.alchemyDrugRedpoint3.state == RedPointState.Simple)
|
| | | {
|
| | | m_Controller.JumpIndex(0);
|
| | | NewBieCenter.Instance.ResetGuide(133);
|
| | | StartCoroutine(Co_StartGuied(133));
|
| | | }
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | base.OnPreClose();
|
| | |
|
| | | if (FunctionalGuideCenter.Instance.ExistUnderwayGuide(133))
|
| | | {
|
| | | FunctionalGuideCenter.Instance.RemoveGuide(133);
|
| | | }
|
| | |
|
| | | StopAllCoroutines();
|
| | | }
|
| | |
|
| | | IEnumerator Co_StartGuied(int guide)
|
| | | {
|
| | | yield return null;
|
| | | FunctionalGuideCenter.Instance.StartGuide(guide);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | DisplayAlchemyTime();
|
| | | break;
|
| | | case 2:
|
| | | if (model.selectAlchemyType == AlchemyType.Normal && PlayerDatas.Instance.baseData.LV < model.autoFunctionGuideLevel &&
|
| | | !FunctionalGuideCenter.Instance.ExistAnyUnderwayGuide())
|
| | | {
|
| | | NewBieCenter.Instance.ResetGuide(131);
|
| | | StartCoroutine(Co_StartGuied(131));
|
| | | }
|
| | | m_AlchemyCompleteEffect.Play();
|
| | | break;
|
| | | }
|
| | |
|
| | | if (model.selectAlchemyType == AlchemyType.Normal && PlayerDatas.Instance.baseData.LV < model.autoFunctionGuideLevel
|
| | | && !FunctionalGuideCenter.Instance.ExistAnyUnderwayGuide()
|
| | | && model.alchemyDrugRedpoint3.state == RedPointState.Simple
|
| | | && state != 2)
|
| | | {
|
| | | NewBieCenter.Instance.ResetGuide(132);
|
| | | StartCoroutine(Co_StartGuied(132));
|
| | | }
|
| | |
|
| | | DisplayViewLength();
|
| | |
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | IEnumerator Co_StartGuied(int guide)
|
| | | {
|
| | | yield return null;
|
| | | FunctionalGuideCenter.Instance.StartGuide(guide);
|
| | | }
|
| | |
|
| | | void DisplayReikiPoint()
|
| | |
| | | break;
|
| | | case 2:
|
| | | pak.DoType = 3;
|
| | |
|
| | | if (FunctionalGuideCenter.Instance.ExistUnderwayGuide(131))
|
| | | {
|
| | | FunctionalGuideCenter.Instance.RemoveGuide(131);
|
| | | }
|
| | | break;
|
| | | }
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | |
| | |
|
| | | PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
| | |
|
| | | public void Display(int itemId)
|
| | | public void Display(int itemId, int displayIndex)
|
| | | {
|
| | | this.gameObject.name = "AlchemyUseDrugCell_" + displayIndex;
|
| | |
|
| | | var count = packModel.GetItemCountByID(PackType.Item, itemId);
|
| | | var itemModel = new ItemCellModel(itemId, true, (ulong)count);
|
| | | m_Item.Init(itemModel);
|
| | |
| | | public class AlchemyUseDrugWin : Window
|
| | | {
|
| | | [SerializeField] AlchemyType m_AlchemyType;
|
| | | [SerializeField] ScrollerController m_Controller;
|
| | | [SerializeField] protected ScrollerController m_Controller;
|
| | | //[SerializeField] AlchemySortBehaviour m_AlchemyTypeSort;
|
| | | //[SerializeField] AlchemySortBehaviour m_AlchemyQualitySort;
|
| | |
|
| | | List<int> displayItems = new List<int>();
|
| | |
|
| | | AlchemyModel model { get { return ModelCenter.Instance.GetModel<AlchemyModel>(); } }
|
| | | protected AlchemyModel model { get { return ModelCenter.Instance.GetModel<AlchemyModel>(); } }
|
| | | PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
| | |
|
| | | #region Built-in
|
| | |
| | | private void OnRefreshCell(ScrollerDataType type, CellView cell)
|
| | | {
|
| | | var useDrugCell = cell as AlchemyUseDrugCell;
|
| | | useDrugCell.Display(displayItems[cell.index]);
|
| | | useDrugCell.Display(displayItems[cell.index], cell.index);
|
| | | }
|
| | |
|
| | | private void RefreshItemCountEvent(PackType packType, int arg2, int itemId)
|
| | |
| | |
|
| | | public int SuitEquipActiveCount { get; private set; }
|
| | | public int NormalEquipActiveCount { get; private set; }
|
| | | public int Item3801ActiveCount { get; private set; }
|
| | | public int Item3802ActiveCount { get; private set; }
|
| | | |
| | | private Dictionary<int, int> m_ItemExcahngeActiveCountDic = new Dictionary<int, int>();
|
| | |
|
| | | public event Action RefreshActiveCanGetEvent;
|
| | | public event Action ExchangetSuccessEvent;
|
| | |
| | |
|
| | | private bool IsBetterThanBodyEquip(ItemModel item)
|
| | | {
|
| | | if(item.config.EquipPlace == 0)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | if(item.config.JobLimit != PlayerDatas.Instance.baseData.Job)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | var equipGUID = m_EquipModel.GetEquip(new Int2(item.config.LV, item.config.EquipPlace));
|
| | | var equip = m_PackModel.GetItemByGuid(equipGUID);
|
| | | if (equip == null)
|
| | | int score = 0;
|
| | | var pos = new Int2(item.config.LV, item.config.EquipPlace);
|
| | | var index = EquipSet.ClientPlaceToServerPlace(pos);
|
| | | var itemModel = m_PackModel.GetItemByIndex(PackType.Equip, index);
|
| | | if(itemModel == null)
|
| | | {
|
| | | |
| | | return true;
|
| | | score = 0;
|
| | | }
|
| | | //if(equip.config.LV < item.config.LV)
|
| | | //{
|
| | | // return true;
|
| | | //}
|
| | | if (equip.score < item.score)
|
| | | else
|
| | | {
|
| | | score = itemModel.score;
|
| | | }
|
| | | |
| | | if (score < item.score)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | | int totalCount = 0;
|
| | | foreach (var equip in ChoseEquips)
|
| | | {
|
| | | if(equip.itemId == 3801)
|
| | | if( m_ItemExcahngeActiveCountDic.ContainsKey(equip.itemId) )
|
| | | {
|
| | | totalCount += Item3801ActiveCount * equip.count;
|
| | | totalCount += m_ItemExcahngeActiveCountDic[equip.itemId] * equip.count;
|
| | | continue;
|
| | | }
|
| | | if (equip.itemId == 3802)
|
| | | {
|
| | | totalCount += Item3802ActiveCount * equip.count;
|
| | | continue;
|
| | | }
|
| | | |
| | |
|
| | | if (equip.config.SuiteiD == 0)
|
| | | {
|
| | |
| | |
|
| | |
|
| | | var res2 = FuncConfigConfig.Get("FamilyDonate").Numerical2.Split('|');
|
| | | Item3801ActiveCount = int.Parse(res2[0].Split('_')[1]);
|
| | | Item3802ActiveCount = int.Parse(res2[1].Split('_')[1]);
|
| | | for (int i = 0; i < res2.Length; i++)
|
| | | {
|
| | | var info = res2[i].Split('_');
|
| | | m_ItemExcahngeActiveCountDic[int.Parse(info[0])] = int.Parse(info[1]);
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | public void SendExchangeRequest()
|
| | |
| | | suitEquips[j] = iEqu;
|
| | | }
|
| | | }
|
| | | //添加物品 ID 3801 3802
|
| | | suitEquips.AddRange(m_PackModel.GetItemsById(PackType.Item, 3801));
|
| | | suitEquips.AddRange(m_PackModel.GetItemsById(PackType.Item, 3802));
|
| | | //添加物品额外物体
|
| | | foreach (var itemId in m_ItemExcahngeActiveCountDic.Keys)
|
| | | {
|
| | | suitEquips.AddRange(m_PackModel.GetItemsById(PackType.Item, itemId));
|
| | | }
|
| | | |
| | | |
| | |
|
| | | return suitEquips;
|
| | | }
|
| | |
| | | isOpen = true;
|
| | | playerPack.selectDevourlist.Clear();
|
| | | devourModellist = playerPack.GetDevourModellist();
|
| | | colorlistObj.SetActive(false);
|
| | |
|
| | | InitUI();
|
| | | }
|
| | |
|
| | |
| | |
|
| | | }
|
| | |
|
| | | protected override void OnActived()
|
| | | {
|
| | | base.OnActived();
|
| | | colorlistObj.SetActive(false);
|
| | | }
|
| | |
|
| | | private void InitUI()
|
| | | {
|
| | | playerPack.GetSelectDevourList();
|
| | |
| | | using System.Linq; |
| | | using UnityEngine; |
| | | using LitJson; |
| | | using System.Text.RegularExpressions; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | |
| | | refreshItemSumUseCountEvent(itemId); |
| | | } |
| | | } |
| | | } |
| | | |
| | | }
|
| | |
|
| | | #endregion |
| | | |
| | |
|
| | | #region 玩家装备特殊逻辑 |
| | | public int guardGetPathId { get; private set; } |
| | | public Dictionary<int, Dictionary<int, int>> spiritWeaponPathIds { get; private set; } |
| | | public Dictionary<int, int> wingsGetPathIdDict { get; private set; } |
| | | public Dictionary<int, List<int>> dungeonUseDict { get; private set; } |
| | | void ParseConfig() |
| | | { |
| | | FuncConfigConfig funcConfig = FuncConfigConfig.Get("WingYuPeiHQTJ"); |
| | | guardGetPathId = int.Parse(funcConfig.Numerical3); |
| | | wingsGetPathIdDict = ConfigParse.GetDic<int, int>(funcConfig.Numerical4); |
| | | FuncConfigConfig funcConfig = FuncConfigConfig.Get("WingYuPeiHQTJ");
|
| | | spiritWeaponPathIds = new Dictionary<int, Dictionary<int, int>>();
|
| | | var splits = funcConfig.Numerical3.Split('|');
|
| | | for (int i = 0; i < splits.Length; i++)
|
| | | {
|
| | | var tempString = splits[i];
|
| | | var matches = Regex.Matches(tempString.Trim(), "\\d+");
|
| | | var equipPlace = int.Parse(matches[0].Value);
|
| | | var job = int.Parse(matches[1].Value);
|
| | | var itemId = int.Parse(matches[2].Value);
|
| | |
|
| | | if (!spiritWeaponPathIds.ContainsKey(equipPlace))
|
| | | {
|
| | | spiritWeaponPathIds[equipPlace] = new Dictionary<int, int>();
|
| | | }
|
| | |
|
| | | spiritWeaponPathIds[equipPlace][job] = itemId;
|
| | | }
|
| | | |
| | | FuncConfigConfig copyItemBulletWindow = FuncConfigConfig.Get("CopyItemBulletWindow"); |
| | | JsonData copyWinData = JsonMapper.ToObject(copyItemBulletWindow.Numerical1); |
| | | dungeonUseDict = new Dictionary<int, List<int>>(); |
| | |
| | | int playerJob = PlayerDatas.Instance.baseData.Job; |
| | | switch ((RoleEquipType)equipPlace) |
| | | { |
| | | case RoleEquipType.Guard: |
| | | return guardGetPathId; |
| | | case RoleEquipType.Wing: |
| | | if (wingsGetPathIdDict.ContainsKey(playerJob)) |
| | | { |
| | | return wingsGetPathIdDict[playerJob]; |
| | | } |
| | | break; |
| | | case RoleEquipType.Guard:
|
| | | case RoleEquipType.PeerlessWeapon1: |
| | | case RoleEquipType.PeerlessWeapon2: |
| | | case RoleEquipType.Wing:
|
| | | return spiritWeaponPathIds[equipPlace][playerJob]; |
| | | default:
|
| | | return 0;
|
| | | } |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | private void UpdateSecond() |
| | |
| | | isUpdatePlayerLv = true; |
| | | } |
| | | |
| | | public bool IsShowAddEquipByPlace(int equipPlace) |
| | | { |
| | | switch ((RoleEquipType)equipPlace) |
| | | { |
| | | case RoleEquipType.Wing:
|
| | | return true; |
| | | case RoleEquipType.Guard:
|
| | | return true;
|
| | | default: |
| | | return false; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | private void GetItemEventCtrl(ItemModel itemModel, bool showNewItem) |
| | |
| | | [SerializeField] ItemCell m_ItemCell;
|
| | |
|
| | | PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
| | | |
| | |
|
| | |
|
| | | RoleEquipType equipType;
|
| | |
|
| | |
| | | if (item == null)
|
| | | {
|
| | | m_ItemCell.gameObject.SetActive(false);
|
| | | if (packModel.IsShowAddEquipByPlace((int)equipType))
|
| | | {
|
| | | m_AddEquip.gameObject.SetActive(true);
|
| | | m_AddEquip.SetListener(AddEqup);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_AddEquip.gameObject.SetActive(false);
|
| | | }
|
| | | m_AddEquip.gameObject.SetActive(true);
|
| | | m_AddEquip.SetListener(AddEqup);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | packModel.SetLookIndex(guid);
|
| | | packModel.RefreshBagInfo();
|
| | | ItemTipUtility.Show(guid);
|
| | | }
|
| | | }
|
| | |
|