Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | |
| | | sendInfo.NPCIDList = string.Format("[{0}]", string.Join(",", stringArray)); |
| | | sendInfo.NPCIDListLen = (byte)sendInfo.NPCIDList.Length; |
| | | GameNetSystem.Instance.SendInfo(sendInfo); |
| | | GameNetSystem.Instance.SendToCrossServer(sendInfo); |
| | | } |
| | | |
| | | public void RequestBoxSurplusInfo() |
| | |
| | | sendInfo.LineID = (ushort)PlayerDatas.Instance.baseData.dungeonLineId; |
| | | sendInfo.NPCIDList = string.Format("[{0},{1}]", bigBoxNpcId, smallBoxNpcId); |
| | | sendInfo.NPCIDListLen = (byte)sendInfo.NPCIDList.Length; |
| | | GameNetSystem.Instance.SendInfo(sendInfo); |
| | | GameNetSystem.Instance.SendToCrossServer(sendInfo); |
| | | } |
| | | |
| | | public void RequestEliteSurplusInfo() |
| | |
| | | |
| | | sendInfo.NPCIDList = string.Format("[{0}]", string.Join(",", stringArray)); |
| | | sendInfo.NPCIDListLen = (byte)sendInfo.NPCIDList.Length; |
| | | GameNetSystem.Instance.SendInfo(sendInfo); |
| | | GameNetSystem.Instance.SendToCrossServer(sendInfo); |
| | | } |
| | | |
| | | public void UpdateMonsterSurplusInfo(HA714_tagMCNPCCntList _npcInfoes) |
| | |
| | | |
| | | private void OnFunctionStateChange(int id) |
| | | { |
| | | if (id == 160) |
| | | if (id == 162) |
| | | { |
| | | UpdateRedpoint(); |
| | | } |
| | |
| | | |
| | | private void UpdateRedpoint() |
| | | { |
| | | if (!FuncOpen.Instance.IsFuncOpen(160)) |
| | | if (!FuncOpen.Instance.IsFuncOpen(162)) |
| | | { |
| | | redpoint.count = 0; |
| | | } |
| | |
| | | using UnityEngine.UI; |
| | | using System;
|
| | |
|
| | | namespace Snxxz.UI { |
| | | namespace Snxxz.UI
|
| | | { |
| | | |
| | | public class RankCellCtrl : ScrollerUI
|
| | | {
|
| | |
| | | [SerializeField] Image m_RankNumBottom;
|
| | | [SerializeField] Text m_NameTxt;
|
| | | [SerializeField] Text m_JobTxt;
|
| | | // [SerializeField] Text m_RankWhatTxt;
|
| | | // [SerializeField] Text m_RankWhatTxt;
|
| | | [SerializeField] Text m_SegmentTxt;
|
| | | [SerializeField] Text m_IntegralTxt;
|
| | | [SerializeField] Image m_RealmImage;
|
| | |
| | | m_RealmImage.gameObject.SetActive(false);
|
| | | RankingInformationClass data = null;
|
| | | ZoneRankingStruct zoneRanking = new ZoneRankingStruct();
|
| | | zoneRanking.ZoneID= crossServerRewardModel.ZoneID;
|
| | | zoneRanking.ZoneID = crossServerRewardModel.ZoneID;
|
| | | zoneRanking.SeasonID = crossServerRewardModel.SeasonID;
|
| | | Dictionary<int, RankingInformationClass> rankDic = new Dictionary<int, RankingInformationClass>();
|
| | | if (crossServerRewardModel.ZoneRankingDic.ContainsKey(zoneRanking))
|
| | |
| | | }
|
| | | if (data != null)
|
| | | {
|
| | | m_RankButton.SetListener(()=> |
| | | m_RankButton.SetListener(() =>
|
| | | {
|
| | | //DebugEx.LogError(data.PlayerID);
|
| | | roleParticularModel.ViewFairyCrossServerOneVsOne(data.PlayerID);
|
| | | });
|
| | |
|
| | | if (data.PlayerID == PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | m_JobTxt.color = new Color32(16, 157, 6, 255);
|
| | | m_NameTxt.color = new Color32(16, 157, 6, 255);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_JobTxt.color = new Color32(64, 28, 6, 255);
|
| | | m_NameTxt.color = new Color32(64, 28, 6, 255); ;
|
| | | }
|
| | | m_NameTxt.text = data.PlayerName;
|
| | | m_JobTxt.text = OccupationNameConfig.GetOccupationName(data.Job, 1);
|
| | | RealmConfig presentCfg = Config.Instance.Get<RealmConfig>(data.Realm);
|
| | |
| | | m_RealmImage.gameObject.SetActive(true);
|
| | | m_RealmImage.SetSprite(presentCfg.Img);
|
| | | }
|
| | | // m_RankWhatTxt.text = data.Power.ToString();
|
| | | // m_RankWhatTxt.text = data.Power.ToString();
|
| | | Segment(data.DanLv);
|
| | | m_IntegralTxt.text = data.PkScore.ToString();
|
| | | }
|
| | |
| | | {
|
| | | m_NameTxt.text = Language.Get("L1046");
|
| | | m_JobTxt.text = "-";
|
| | | // m_RankWhatTxt.text = "-";
|
| | | m_SegmentTxt.text= "-";
|
| | | m_IntegralTxt.text= "-";
|
| | | // m_RankWhatTxt.text = "-";
|
| | | m_SegmentTxt.text = "-";
|
| | | m_IntegralTxt.text = "-";
|
| | |
|
| | | m_NameTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
|
| | | m_JobTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
|
| | | // m_RankWhatTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
|
| | | // m_RankWhatTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
|
| | | m_SegmentTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
|
| | | m_RankButton.RemoveAllListeners();
|
| | | }
|
| | | }
|
| | |
|
| | | private void Segment(int Danlv)
|
| | | private void Segment(int Danlv)
|
| | | {
|
| | | var config = Config.Instance.Get<CrossServerArenaConfig>(Danlv);
|
| | | m_SegmentTxt.text = config.Name;
|
| | | m_SegmentTxt.color= UIHelper.GetDanLVColor(Danlv, false);
|
| | | m_SegmentTxt.color = UIHelper.GetDanLVColor(Danlv, false);
|
| | | //if (Danlv >= 24)
|
| | | //{
|
| | | // m_SegmentTxt.color = new Color32(255, 3, 3, 255);
|
| | |
| | | //}
|
| | | }
|
| | |
|
| | | } |
| | | |
| | | |
| | | }
|
| | |
|
| | |
|
| | | } |
| | | |
| | | |
| | |
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = _leaderData.rolePropData.Job,
|
| | | clothesId = fashionClothes > 0 ? fashionClothes : clothes,
|
| | | fashionClothesId = fashionClothes,
|
| | | fashionWeaponId = fashionWeapon,
|
| | | fashionSecondaryId = fashionWeapon2,
|
| | | clothesId = clothes,
|
| | | suitLevel = _suitEffect,
|
| | | weaponId = fashionWeapon > 0 ? fashionWeapon : weapon,
|
| | | weaponId = weapon,
|
| | | wingsId = wing,
|
| | | secondaryId = fashionWeapon2 > 0 ? fashionWeapon2 : weapon2,
|
| | | secondaryId = weapon2,
|
| | | godWeapons = godWeapons,
|
| | | isDialogue = false,
|
| | | };
|
| | |
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | var fashionDressClothesId = 0;
|
| | | var fashionDressWeaponId = 0;
|
| | | var fashionDressSecondaryId = 0;
|
| | |
|
| | | foreach (var type in model.fashionDressTypes)
|
| | | {
|
| | | var selectFashionId = model.GetSelectFashionDress(type);
|
| | |
| | | switch ((RoleEquipType)index)
|
| | | {
|
| | | case RoleEquipType.retFashionWeapon:
|
| | | weaponId = fashionDress.GetEquipItemId();
|
| | | fashionDressWeaponId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | case RoleEquipType.retFashionClothes:
|
| | | clothesId = fashionDress.GetEquipItemId();
|
| | | fashionDressClothesId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | case RoleEquipType.retFashionWeapon2:
|
| | | secondaryId = fashionDress.GetEquipItemId();
|
| | | fashionDressSecondaryId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | weaponId = weaponId,
|
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | fashionClothesId = fashionDressClothesId,
|
| | | fashionWeaponId = fashionDressWeaponId,
|
| | | fashionSecondaryId = fashionDressSecondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = dict
|
| | | };
|
| | |
| | | this.itemId = itemId;
|
| | | var config = Config.Instance.Get<ItemConfig>(itemId);
|
| | | m_ItemName.text = config.ItemName;
|
| | | m_ItemName.color = UIHelper.GetUIColor(config.ItemColor);
|
| | | m_ItemName.color = UIHelper.GetUIColor(config.ItemColor, true);
|
| | |
|
| | | m_Bottom.SetSprite(model.selectItemId == itemId ? "ChildListBtn_Select" : "ChildListBtn_UnSelect");
|
| | | }
|
| | |
| | | mountSkillDict = itemTipsModel.GetMountSkillDict(itemTipsModel.curAttrData.itemConfig.EffectValueA1);
|
| | | modelShow.SetModelShow(horseConfig.Model, ModelShowType.mount, Language.Get("TreasureEffect103"), horseConfig.ShowFightPower);
|
| | | break;
|
| | | case 83:
|
| | | bgObj.anchoredPosition3D = new Vector3(197, 0, 0);
|
| | | modelShow.gameObject.SetActive(true);
|
| | | modelShow.SetModelShow(itemTipsModel.curAttrData.itemConfig.EffectValueA1, ModelShowType.FashionDress, Language.Get("TreasureEffect103"));
|
| | | break;
|
| | | default:
|
| | | modelShow.gameObject.SetActive(false);
|
| | | bgObj.anchoredPosition3D = Vector3.zero;
|
| | |
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using TableConfig;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
| | | [SerializeField] public GameObject fightImg;
|
| | |
|
| | | ModelShowType showType;
|
| | | FashionDressModel fashionDressModel { get { return ModelCenter.Instance.GetModel<FashionDressModel>(); } }
|
| | | MagicianModel godWeaponModel
|
| | | {
|
| | | get { return ModelCenter.Instance.GetModel<MagicianModel>(); }
|
| | | }
|
| | |
|
| | | public void OnDisable()
|
| | | {
|
| | |
| | | {
|
| | | titleText.text = title;
|
| | | this.showType = showType;
|
| | | var job = PlayerDatas.Instance.baseData.Job;
|
| | | switch (showType)
|
| | | {
|
| | | case ModelShowType.treasure:
|
| | |
| | | case ModelShowType.pet:
|
| | | var config = Config.Instance.Get<NPCConfig>(id);
|
| | | UI3DModelExhibition.Instance.ShowNPC(id, config.UIModeLOffset, config.UIModelRotation, modelImg);
|
| | | break;
|
| | | case ModelShowType.FashionDress:
|
| | | UI3DModelExhibition.Instance.ShowOtherPlayer(modelImg,SetFashionDressData(id));
|
| | | break;
|
| | | }
|
| | |
|
| | |
| | | fightPowerText.text = fightValue.ToString();
|
| | | }
|
| | | }
|
| | |
|
| | | public UI3DPlayerExhibitionData SetFashionDressData(int fashionId)
|
| | | {
|
| | | var job = PlayerDatas.Instance.baseData.Job;
|
| | |
|
| | | var playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>();
|
| | |
|
| | | var clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | var clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
|
| | |
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | var weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
|
| | |
|
| | | var wings = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWing);
|
| | | var wingsId = wings == null ? 0 : (int)wings.itemInfo.ItemID;
|
| | |
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | FashionDress fashionDress = null;
|
| | | bool isFashion = fashionDressModel.TryGetFashionDress(fashionId,out fashionDress);
|
| | | var fashionClothesId = 0;
|
| | | var fashionWeaponId = 0;
|
| | | var fashionSecondaryId = 0;
|
| | | if(isFashion)
|
| | | {
|
| | | int itemId = fashionDress.requireLevelUpItem;
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(itemId);
|
| | | switch(fashionDress.fashionDressType)
|
| | | {
|
| | | case 1:
|
| | | fashionClothesId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | case 2:
|
| | | fashionWeaponId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | case 3:
|
| | | fashionSecondaryId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | int _suitLevel = 0;
|
| | |
|
| | | if (clothes != null)
|
| | | {
|
| | | if (clothes.itemInfo.IsSuite == 1)
|
| | | {
|
| | | if (clothes.GetUseDataModel(30) != null && clothes.GetUseDataModel(30)[0] != 0)
|
| | | {
|
| | | _suitLevel = clothes.GetUseDataModel(30)[0];
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | Dictionary<int, int> dict = new Dictionary<int, int>();
|
| | | for (int i = 0; i < godWeaponModel.godWeaponTypes.Count; i++)
|
| | | {
|
| | | var type = godWeaponModel.godWeaponTypes[i];
|
| | | var godWeaponInfo = godWeaponModel.GetGodWeaponInfo(type);
|
| | | var equipedLevel = godWeaponInfo != null ? godWeaponInfo.level : 0;
|
| | | dict[type] = equipedLevel;
|
| | | }
|
| | |
|
| | | UI3DPlayerExhibitionData data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | | job = job,
|
| | | clothesId = clothesId,
|
| | | suitLevel = _suitLevel,
|
| | | weaponId = weaponId,
|
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | fashionClothesId = fashionClothesId,
|
| | | fashionWeaponId = fashionWeaponId,
|
| | | fashionSecondaryId = fashionSecondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = dict
|
| | | };
|
| | | return data;
|
| | | }
|
| | | }
|
| | |
|
| | | public enum ModelShowType
|
| | | {
|
| | | treasure, //法宝
|
| | | mount, //坐骑
|
| | | pet,
|
| | | pet, //灵宠
|
| | | FashionDress, //时装
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | Dispose();
|
| | |
|
| | | var flashClothes = 0;
|
| | | var flashWeapon = 0;
|
| | | var flashSecondary = 0;
|
| | | var fashionClothes = 0;
|
| | | var fashionWeapon = 0;
|
| | | var fashionSecondary = 0;
|
| | | var clothesItemId = 0;
|
| | | var weaponItemId = 0;
|
| | | var wingsItemId = 0;
|
| | |
| | | switch ((RoleEquipType)equipInfo.ItemPlace)
|
| | | {
|
| | | case RoleEquipType.retFashionClothes:
|
| | | flashClothes = (int)equipInfo.ItemID;
|
| | | fashionClothes = (int)equipInfo.ItemID;
|
| | | break;
|
| | | case RoleEquipType.retFashionWeapon:
|
| | | flashWeapon = (int)equipInfo.ItemID;
|
| | | fashionWeapon = (int)equipInfo.ItemID;
|
| | | break;
|
| | | case RoleEquipType.retFashionWeapon2:
|
| | | flashSecondary = (int)equipInfo.ItemID;
|
| | | fashionSecondary = (int)equipInfo.ItemID;
|
| | | break;
|
| | | case RoleEquipType.retWeapon:
|
| | | weaponItemId = (int)equipInfo.ItemID;
|
| | |
| | | var data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | | job = PlayerDatas.Instance.loginInfo.Job,
|
| | | clothesId = flashClothes > 0 ? flashClothes : clothesItemId,
|
| | | fashionClothesId = fashionClothes,
|
| | | clothesId = clothesItemId,
|
| | | suitLevel = suitLevel,
|
| | | weaponId = flashWeapon > 0 ? flashWeapon : weaponItemId,
|
| | | fashionWeaponId = fashionWeapon,
|
| | | weaponId = weaponItemId,
|
| | | wingsId = wingsItemId,
|
| | | secondaryId = flashSecondary > 0 ? flashSecondary : secondaryItemId,
|
| | | fashionSecondaryId = fashionSecondary,
|
| | | secondaryId = secondaryItemId,
|
| | | godWeapons = new Dictionary<int, int>() {
|
| | | { 1, (int)PlayerDatas.Instance.loginInfo.ExAttr15 },
|
| | | { 2, (int)PlayerDatas.Instance.loginInfo.ExAttr16},
|
| | |
| | | int selectStage = 1;
|
| | | public static int selectGodWeaponType = 1;
|
| | |
|
| | | MagicianModel model
|
| | | {
|
| | | MagicianModel model {
|
| | | get { return ModelCenter.Instance.GetModel<MagicianModel>(); }
|
| | | }
|
| | |
|
| | |
| | | UI3DPlayerExhibitionData data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | | job = job,
|
| | | clothesId = fashionClothesId > 0 ? fashionClothesId : clothesId,
|
| | |
|
| | | fashionClothesId = fashionClothesId,
|
| | | fashionWeaponId = fashionWeaponId,
|
| | | fashionSecondaryId = fashionSecondaryId,
|
| | | clothesId = clothesId,
|
| | | suitLevel = _suitLevel,
|
| | | weaponId = fashionWeaponId > 0 ? fashionWeaponId : weaponId,
|
| | | weaponId = weaponId,
|
| | | wingsId = wingsId,
|
| | | secondaryId = fashionSecondaryId > 0 ? fashionSecondaryId : secondaryId,
|
| | | secondaryId = secondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = dict
|
| | | };
|
| | |
| | | {
|
| | | var fightPower = GetHorseSkillFightPower(_id, lv);
|
| | | var horseUpConfig = HorseUpConfig.GetHorseIDAndLV(_id, lv);
|
| | | if (horseUpConfig == null)
|
| | | {
|
| | | return 0;
|
| | | }
|
| | | Dictionary<int, int> dict = new Dictionary<int, int>();
|
| | | int[] propertys = horseUpConfig.AttrType;
|
| | | int[] values = horseUpConfig.AttrValue;
|
| | |
| | | for (int i = 0; i < horses.Count; i++)
|
| | | {
|
| | | HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horses[i].id, horses[i].lv);
|
| | | if (horseUpConfig == null)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | GetHorseProperty(horses[i].id, horses[i].lv, ref propertyDict);
|
| | | int[] propertys = horseUpConfig.AttrType;
|
| | | int[] values = horseUpConfig.AttrValue;
|
| | |
| | | return x.id == condition;
|
| | | });
|
| | | HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horseInfo.id, horseInfo.lv);
|
| | | if (horseUpConfig == null)
|
| | | {
|
| | | return dict;
|
| | | }
|
| | | int[] propertys = horseUpConfig.AttrType;
|
| | | int[] values = horseUpConfig.AttrValue;
|
| | | for (int k = 0; k < propertys.Length; k++)
|
| | |
| | | for (int i = 0; i < horses.Count; i++)
|
| | | {
|
| | | HorseConfig horseConfig = Config.Instance.Get<HorseConfig>(horses[i].id);
|
| | | if (horseConfig == null)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | if (horseConfig.Quality == condition)
|
| | | {
|
| | | HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horses[i].id, horses[i].lv);
|
| | |
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = viewPlayerData.rolePropData.Job,
|
| | | clothesId = fashionClothes > 0 ? fashionClothes : clothes,
|
| | | fashionClothesId = fashionClothes,
|
| | | fashionWeaponId = fashionWeapon,
|
| | | fashionSecondaryId = fashionWeapon2,
|
| | | clothesId = clothes,
|
| | | suitLevel = _suitLevel,
|
| | | weaponId = fashionWeapon > 0 ? fashionWeapon : weapon,
|
| | | weaponId = weapon,
|
| | | wingsId = wing,
|
| | | secondaryId = fashionWeapon2 > 0 ? fashionWeapon2 : weapon2,
|
| | | secondaryId = weapon2,
|
| | | godWeapons = godWeapons,
|
| | | isDialogue = false,
|
| | | };
|
| | |
| | | public class UI3DHeroSkillShow : MonoBehaviour
|
| | | {
|
| | | static UI3DHeroSkillShow m_Instance = null;
|
| | | public static UI3DHeroSkillShow Instance
|
| | | {
|
| | | get
|
| | | {
|
| | | public static UI3DHeroSkillShow Instance {
|
| | | get {
|
| | | if (m_Instance == null)
|
| | | {
|
| | | var gameObject = Instantiate(UILoader.LoadPrefab("UI3DHeroSkillShow"));
|
| | |
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | |
|
| | | Transform m_HeroPoint;
|
| | | public Transform hero
|
| | | {
|
| | | get
|
| | | {
|
| | | public Transform hero {
|
| | | get {
|
| | | return m_HeroPoint;
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | public Camera showCamera { get { return m_ShowCamera; } }
|
| | |
|
| | | public Transform MP_Name1
|
| | | {
|
| | | get
|
| | | {
|
| | | public Transform MP_Name1 {
|
| | | get {
|
| | | var mp_name = hero.GetChildTransformDeeply("A_Name2");
|
| | | if (!mp_name)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public Transform MP_Weapon
|
| | | {
|
| | | get
|
| | | {
|
| | | public Transform MP_Weapon {
|
| | | get {
|
| | | var mp_weapon = hero.GetChildTransformDeeply(WEAPON_NODE);
|
| | | if (mp_weapon != null)
|
| | | {
|
| | |
| | | UI3DPlayerExhibitionData data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | | job = _job,
|
| | | clothesId = fashionClothesId > 0 ? fashionClothesId : _clothesId,
|
| | | fashionClothesId = fashionClothesId,
|
| | | clothesId = _clothesId,
|
| | | suitLevel = _suitLevel,
|
| | | weaponId = fashionWeaponId > 0 ? fashionWeaponId : _weaponId,
|
| | | fashionWeaponId = fashionWeaponId,
|
| | | weaponId = _weaponId,
|
| | | wingsId = _wingsId,
|
| | | secondaryId = fashionSecondaryId > 0 ? fashionSecondaryId : _secondaryId,
|
| | | fashionSecondaryId = fashionSecondaryId,
|
| | | secondaryId = _secondaryId,
|
| | | godWeapons = dict,
|
| | | isDialogue = false,
|
| | | };
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | IEnumerator Co_PlaySkill()
|
| | |
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = _job,
|
| | | clothesId = flashClothes > 0 ? flashClothes : clothesItemId,
|
| | | fashionClothesId = flashClothes,
|
| | | fashionWeaponId = flashWeapon,
|
| | | fashionSecondaryId = flashSecondary,
|
| | | clothesId = clothesItemId,
|
| | | suitLevel = suitLevel,
|
| | | weaponId = flashWeapon > 0 ? flashWeapon : weaponItemId,
|
| | | weaponId = weaponItemId,
|
| | | wingsId = wingsItemId,
|
| | | secondaryId = flashSecondary > 0 ? flashSecondary : secondaryItemId,
|
| | | secondaryId = secondaryItemId,
|
| | | isDialogue = false,
|
| | | godWeapons = new Dictionary<int, int>() {
|
| | | { 1, (int)PlayerDatas.Instance.loginInfo.ExAttr15 },
|
| | |
| | |
|
| | | public void ShowPlayer(RawImage _rawImage, int _job, bool _isDialogue = false)
|
| | | {
|
| | | var clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | clothes = clothes ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | var clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | var flashClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | var clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
|
| | | var flashClothesId = flashClothes == null ? 0 : flashClothes.itemInfo.ItemID;
|
| | |
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | weapon = weapon ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | var flashWeapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | var weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
|
| | | var flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemInfo.ItemID;
|
| | |
|
| | | var wings = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWing);
|
| | | var wingsId = wings == null ? 0 : (int)wings.itemInfo.ItemID;
|
| | |
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | secondary = secondary ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var flahsSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | | var flashSecondaryId = flahsSecondary == null ? 0 : flahsSecondary.itemInfo.ItemID;
|
| | |
|
| | | int suitLevel = 0;
|
| | | if (clothes != null)
|
| | |
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = _job,
|
| | | fashionClothesId = flashClothesId,
|
| | | fashionWeaponId = flashWeaponId,
|
| | | fashionSecondaryId = flashSecondaryId,
|
| | | clothesId = clothesId,
|
| | | suitLevel = suitLevel,
|
| | | weaponId = weaponId,
|
| | |
| | | var weaponId = 0;
|
| | | var wingsId = 0;
|
| | | var secondaryId = 0;
|
| | | var flashClothesId = 0;
|
| | | var flashWeaponId = 0;
|
| | | var flashSecondaryId = 0;
|
| | |
|
| | | ItemModel clothes = null;
|
| | |
|
| | | if (exceptEquip != RoleEquipType.retClothes)
|
| | | {
|
| | | clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | clothes = clothes ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | var flashClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
|
| | | flashClothesId = flashClothes == null ? 0 : flashClothes.itemInfo.ItemID;
|
| | | }
|
| | |
|
| | | if (exceptEquip != RoleEquipType.retWeapon)
|
| | | {
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | weapon = weapon ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | var flashWeapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
|
| | | flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemInfo.ItemID;
|
| | | }
|
| | |
|
| | | if (exceptEquip != RoleEquipType.retWing)
|
| | |
| | |
|
| | | if (exceptEquip != RoleEquipType.retWeapon2)
|
| | | {
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | secondary = secondary ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var flashSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | | flashSecondaryId = secondary == null ? 0 : flashSecondary.itemInfo.ItemID;
|
| | | }
|
| | |
|
| | | var suitLevel = 0;
|
| | |
| | | weaponId = weaponId,
|
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | fashionClothesId = flashClothesId,
|
| | | fashionWeaponId = flashWeaponId,
|
| | | fashionSecondaryId = flashSecondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = new Dictionary<int, int>() {
|
| | | { 1, godWeapon1==null?0:godWeapon1.level },
|
| | |
| | | public int weaponId;
|
| | | public int wingsId;
|
| | | public int secondaryId;
|
| | | public int fashionClothesId;
|
| | | public int fashionWeaponId;
|
| | | public int fashionSecondaryId;
|
| | | public bool isDialogue;
|
| | | public Dictionary<int, int> godWeapons;
|
| | | }
|
| | |
| | | int clothesId;
|
| | | int wingsId;
|
| | | int secondaryId;
|
| | | int extraSecondaryId;
|
| | | int job;
|
| | |
|
| | | GameObject weaponModel;
|
| | | GameObject clothesModel;
|
| | | GameObject wingsModel;
|
| | | GameObject secondaryModel;
|
| | | GameObject extraSecondaryModel;
|
| | |
|
| | | Animator wingsAnimator;
|
| | | Animator clothesAnimator;
|
| | | RuntimeAnimatorController cacheClothedAC;
|
| | |
| | | this.showPoint = showPoint;
|
| | | this.job = data.job;
|
| | |
|
| | | var clothes = data.clothesId;
|
| | | var clothes = data.fashionClothesId > 0 ? data.fashionClothesId : data.clothesId;
|
| | | var suitID = data.suitLevel;
|
| | | var weaponId = data.weaponId;
|
| | | var weaponId = data.fashionWeaponId > 0 ? data.fashionWeaponId : data.weaponId;
|
| | | var wingsId = data.wingsId;
|
| | | var secondaryId = data.secondaryId;
|
| | | var secondaryId = data.fashionSecondaryId > 0 ? data.fashionSecondaryId : data.secondaryId;
|
| | | var godWeapons = data.godWeapons;
|
| | |
|
| | | var jobConfig = Config.Instance.Get<JobSetupConfig>(job);
|
| | |
| | | var secondaryResId = 0;
|
| | | if (secondaryId == 0)
|
| | | {
|
| | | if (this.job == 1)
|
| | | if (data.fashionClothesId < 0)
|
| | | {
|
| | | secondaryResId = this.clothesId + 2900;
|
| | | }
|
| | | else
|
| | | {
|
| | | secondaryResId = jobConfig.BaseEquip[2];
|
| | | if (this.job == 1)
|
| | | {
|
| | | secondaryResId = this.clothesId + 2900;
|
| | | }
|
| | | else
|
| | | {
|
| | | secondaryResId = jobConfig.BaseEquip[2];
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | var item = Config.Instance.Get<ItemConfig>(secondaryId);
|
| | | secondaryResId = item == null ? jobConfig.BaseEquip[2] : item.ChangeOrd;
|
| | | }
|
| | |
|
| | | PutOnSecondary(job, secondaryResId);
|
| | |
|
| | | var extraSecondaryId = 0;
|
| | | if (data.job == 1 && data.fashionSecondaryId > 0 && data.fashionClothesId == 0)
|
| | | {
|
| | | if (data.clothesId == 0)
|
| | | {
|
| | | extraSecondaryId = jobConfig.BaseEquip[0] + 2900;
|
| | | }
|
| | | else
|
| | | {
|
| | | var item = Config.Instance.Get<ItemConfig>(data.clothesId);
|
| | | var defaultClothesResId = item == null ? jobConfig.BaseEquip[0] : item.ChangeOrd;
|
| | | extraSecondaryId = defaultClothesResId + 2900;
|
| | | }
|
| | | }
|
| | |
|
| | | PutOnExtraSecondary(job, extraSecondaryId);
|
| | |
|
| | | var wingsResId = 0;
|
| | | if (wingsId != 0)
|
| | |
| | | var item = Config.Instance.Get<ItemConfig>(wingsId);
|
| | | wingsResId = item == null ? 0 : item.ChangeOrd;
|
| | | }
|
| | |
|
| | | PutOnWing(wingsResId);
|
| | | PutOnGodWeaponEffect(godWeapons);
|
| | |
|
| | |
| | | pool.Release(secondaryModel);
|
| | | }
|
| | | secondaryModel = null;
|
| | | }
|
| | |
|
| | | if (extraSecondaryId != 0)
|
| | | {
|
| | | prefab = InstanceResourcesLoader.LoadModelRes(extraSecondaryId);
|
| | | if (prefab)
|
| | | {
|
| | | if (extraSecondaryModel)
|
| | | {
|
| | | extraSecondaryModel.SetActive(true);
|
| | | }
|
| | | pool = GameObjectPoolManager.Instance.RequestPool(prefab);
|
| | | pool.Release(extraSecondaryModel);
|
| | | }
|
| | | extraSecondaryModel = null;
|
| | | }
|
| | |
|
| | | if (wingsId != 0)
|
| | |
| | | weaponId = 0;
|
| | | wingsId = 0;
|
| | | secondaryId = 0;
|
| | | extraSecondaryId = 0;
|
| | |
|
| | | TakeOffGodWeaponEffect();
|
| | | }
|
| | |
| | | weaponId = resoureceId;
|
| | | }
|
| | |
|
| | | private void PutOnExtraSecondary(int job, int extraSecondaryId)
|
| | | {
|
| | | var oldSecondary = this.extraSecondaryId;
|
| | | if (oldSecondary == extraSecondaryId)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | GameObject prefab = null;
|
| | | GameObjectPoolManager.GameObjectPool pool = null;
|
| | |
|
| | | if (oldSecondary != 0)
|
| | | {
|
| | | prefab = InstanceResourcesLoader.LoadModelRes(oldSecondary);
|
| | | pool = GameObjectPoolManager.Instance.RequestPool(prefab);
|
| | | pool.Release(extraSecondaryModel);
|
| | | extraSecondaryModel = null;
|
| | | }
|
| | |
|
| | | if (extraSecondaryId != 0)
|
| | | {
|
| | | prefab = InstanceResourcesLoader.LoadModelRes(extraSecondaryId);
|
| | | if (!prefab)
|
| | | {
|
| | | var config = Config.Instance.Get<JobSetupConfig>(job);
|
| | | extraSecondaryId = config.BaseEquip[2];
|
| | | prefab = InstanceResourcesLoader.LoadModelRes(extraSecondaryId);
|
| | | }
|
| | |
|
| | | if (prefab)
|
| | | {
|
| | | pool = GameObjectPoolManager.Instance.RequestPool(prefab);
|
| | | extraSecondaryModel = pool.Request();
|
| | |
|
| | | var parent = this.clothesModel.transform.GetChildTransformDeeply(GAStaticDefine.SecondaryBindBoneName[this.job - 1]);
|
| | | extraSecondaryModel.transform.SetParentEx(parent, Vector3.zero, Quaternion.identity, Vector3.one);
|
| | | }
|
| | | }
|
| | |
|
| | | this.extraSecondaryId = extraSecondaryId;
|
| | | }
|
| | |
|
| | | private void PutOnSecondary(int _job, int secondaryResId)
|
| | | {
|
| | | var oldSecondary = secondaryId;
|