change UI DlgPetList and code test for dlg
This commit is contained in:
@@ -3,6 +3,7 @@ using BrewMonster.Scripts.Pet;
|
||||
using CSNetwork.GPDataType;
|
||||
using ModelRenderer.Scripts.GameData;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
@@ -12,170 +13,327 @@ namespace BrewMonster.UI
|
||||
{
|
||||
public class CDlgPetList : AUIDialog
|
||||
{
|
||||
public const int CDLGPETLIST_SLOT_MAX = 10;
|
||||
public const int CDLGPETLIST_PAGE_MAX = 2;
|
||||
//public const int CDLGPETLIST_SLOT_MAX = 10;
|
||||
//public const int CDLGPETLIST_PAGE_MAX = 2;
|
||||
|
||||
[SerializeField] private Button[] m_pBtn_Summon = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private Button[] m_pBtn_Recall = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private Button[] m_pBtn_Detail = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private Button[] m_pBtn_Banish = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private Button[] m_pBtn_Evolution = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private Image[] m_pImg_Icon = new Image[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private TextMeshProUGUI[] m_pLab_Name = new TextMeshProUGUI[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private TextMeshProUGUI[] m_pLab_Level = new TextMeshProUGUI[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private TextMeshProUGUI[] m_pTxt_Name = new TextMeshProUGUI[CDLGPETLIST_SLOT_MAX];
|
||||
[SerializeField] private TextMeshProUGUI[] m_pTxt_Level = new TextMeshProUGUI[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private Button[] m_pBtn_Summon = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private Button[] m_pBtn_Recall = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private Button[] m_pBtn_Detail = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private Button[] m_pBtn_Banish = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private Button[] m_pBtn_Evolution = new Button[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private Image[] m_pImg_Icon = new Image[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private TextMeshProUGUI[] m_pLab_Name = new TextMeshProUGUI[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private TextMeshProUGUI[] m_pLab_Level = new TextMeshProUGUI[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private TextMeshProUGUI[] m_pTxt_Name = new TextMeshProUGUI[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private TextMeshProUGUI[] m_pTxt_Level = new TextMeshProUGUI[CDLGPETLIST_SLOT_MAX];
|
||||
//[SerializeField] private Button m_pBtnClose;
|
||||
//[SerializeField] private Sprite m_spriteDefault_Icon;
|
||||
//[SerializeField] private Button[] m_pBtn_Tab;
|
||||
//[SerializeField] private GameObject[] m_mask_off_pBtn_Tab;
|
||||
//int m_nPageIndex;
|
||||
//string strFile = "";
|
||||
//string strText = "";
|
||||
//CECPetCorral pPetCorral;
|
||||
//elementdataman pDB;
|
||||
//DATA_TYPE DataType = new DATA_TYPE();
|
||||
|
||||
//public void OnInitDialog()
|
||||
//{
|
||||
// //string szText = "";
|
||||
// //int i;
|
||||
// //for (i = 0; i < CDLGPETLIST_SLOT_MAX; i++)
|
||||
// //{
|
||||
// // szText = string.Format("Img_Icon{0}", i + 1);
|
||||
// // m_pImg_Icon[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Lab_Name%d", i + 1);
|
||||
// // m_pLab_Name[i] = (PAUILABEL)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Lab_Level%d", i + 1);
|
||||
// // m_pLab_Level[i] = (PAUILABEL)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Txt_Name%d", i + 1);
|
||||
// // m_pTxt_Name[i] = (PAUILABEL)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Txt_Level%d", i + 1);
|
||||
// // m_pTxt_Level[i] = (PAUILABEL)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Btn_Recall%d", i + 1);
|
||||
// // m_pBtn_Recall[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Btn_Summon%d", i + 1);
|
||||
// // m_pBtn_Summon[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Btn_Detail%d", i + 1);
|
||||
// // m_pBtn_Detail[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Btn_Banish%d", i + 1);
|
||||
// // m_pBtn_Banish[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// // sprintf(szText, "Btn_P%d", i + 1);
|
||||
// // m_pBtn_Evolution[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// //}
|
||||
// //for (i = 0; i < CDLGPETLIST_PAGE_MAX; i++)
|
||||
// //{
|
||||
// // m_pBtn_Page[i] = NULL;
|
||||
// // DDX_Control(AString().Format("Btn_Page%d", i + 1), m_pBtn_Page[i]);
|
||||
// // m_pBtn_Page[i].SetPushed(false);
|
||||
// //}
|
||||
// m_nPageIndex = 0;
|
||||
// //m_pBtn_Page[0].SetPushed(true);
|
||||
// int index = 0;
|
||||
// if (!IsShow()) Show(true);
|
||||
// for (int i = 0; i < m_pBtn_Summon.Length; i++)
|
||||
// {
|
||||
// index = i;
|
||||
// m_pBtn_Summon[index].onClick.RemoveAllListeners();
|
||||
// if(i == 0)
|
||||
// {
|
||||
// m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandSummon(1);
|
||||
// });
|
||||
// }
|
||||
// else if(i == 1)
|
||||
// {
|
||||
// m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandSummon(2);
|
||||
// });
|
||||
// }
|
||||
// else if (i == 2)
|
||||
// {
|
||||
// m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandSummon(3);
|
||||
// });
|
||||
// }
|
||||
// else if (i == 3)
|
||||
// {
|
||||
// m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandSummon(4);
|
||||
// });
|
||||
// }
|
||||
// else if (i == 5)
|
||||
// {
|
||||
// m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandSummon(6);
|
||||
// });
|
||||
// }
|
||||
// else if (i == 6)
|
||||
// {
|
||||
// m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandSummon(7);
|
||||
// });
|
||||
// }
|
||||
// else if (i == 7)
|
||||
// {
|
||||
// m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandSummon(8);
|
||||
// });
|
||||
// }
|
||||
// else if (i == 9)
|
||||
// {
|
||||
// m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandSummon(10);
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// for (int i = 0; i < m_pBtn_Recall.Length; i++)
|
||||
// {
|
||||
// index = i;
|
||||
// m_pBtn_Recall[index].onClick.RemoveAllListeners();
|
||||
// m_pBtn_Recall[index].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnCommandRecall();
|
||||
// });
|
||||
// }
|
||||
// m_pBtnClose.onClick.RemoveAllListeners();
|
||||
// m_pBtnClose.onClick.AddListener(() =>
|
||||
// {
|
||||
// Show(false);
|
||||
// });
|
||||
// for(int i = 0; i < m_pBtn_Tab.Length; i++)
|
||||
// {
|
||||
// m_pBtn_Tab[i].onClick.RemoveAllListeners();
|
||||
// if(i == 0)
|
||||
// {
|
||||
// m_pBtn_Tab[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnClickBtnTab(0);
|
||||
// });
|
||||
// }
|
||||
// else if(i == 1)
|
||||
// {
|
||||
// m_pBtn_Tab[i].onClick.AddListener(() =>
|
||||
// {
|
||||
// OnClickBtnTab(1);
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// OnClickBtnTab(0);
|
||||
//}
|
||||
|
||||
//bool IsPetDye(int nSlot)
|
||||
//{
|
||||
// return false;
|
||||
// //TO DO: fix later
|
||||
// //return nSlot >= 0
|
||||
// // && GetGameUIMan().m_pDlgPetDye.IsShow()
|
||||
// // && GetGameUIMan().m_pDlgPetDye.GetPetSlot() == nSlot;
|
||||
//}
|
||||
|
||||
//public override bool Render()
|
||||
//{
|
||||
// UpdateList();
|
||||
// return base.Render();
|
||||
//}
|
||||
|
||||
//public void UpdateList()
|
||||
//{
|
||||
// strText = "";
|
||||
// pPetCorral = GetHostPlayer().GetPetCorral();
|
||||
// pDB = ElementDataManProvider.GetElementDataMan();
|
||||
// DataType = new DATA_TYPE();
|
||||
// for (int i = 0; i < CDLGPETLIST_SLOT_MAX; i++)
|
||||
// {
|
||||
// int nPetSlot = i + m_nPageIndex * CDLGPETLIST_SLOT_MAX;
|
||||
// if (nPetSlot < pPetCorral.GetPetSlotNum())
|
||||
// {
|
||||
// m_pLab_Level[i].color = new Color(255f / 255f, 203f / 255f, 74f / 255f);
|
||||
// m_pLab_Name[i].color = new Color(255f / 255f, 203f / 255f, 74f / 255f);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// m_pLab_Level[i].color = new Color(128f / 128f, 128f / 128f, 128f / 128f);
|
||||
// m_pLab_Name[i].color = new Color(128f / 128f, 128f / 128f, 128f / 128f);
|
||||
// }
|
||||
// CECPetData pPet = pPetCorral.GetPetData(nPetSlot);
|
||||
// if (pPet != null)
|
||||
// {
|
||||
// bool bEnable = (pPetCorral.GetActivePetIndex() == nPetSlot && GetHostPlayer().IsOperatingPet() == 0);
|
||||
// m_pBtn_Recall[i].interactable = (bEnable);
|
||||
|
||||
// bEnable = (pPetCorral.GetActivePetIndex() != nPetSlot && GetHostPlayer().IsOperatingPet() == 0);
|
||||
// m_pBtn_Summon[i].interactable = (bEnable);
|
||||
|
||||
// m_pBtn_Detail[i].interactable = (true);
|
||||
|
||||
// strText = string.Format(GetStringFromTable(801).Replace("%d", "{0}"), pPet.GetLevel());
|
||||
// m_pTxt_Level[i].SetText(strText);
|
||||
// m_pTxt_Name[i].SetText(pPet.GetName());
|
||||
// if ((pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_COMBAT || pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_EVOLUTION) && pPet.GetHPFactor() == 0.0f || IsPetDye(nPetSlot))
|
||||
// m_pImg_Icon[i].color = new Color(128f/ 255f, 128f / 255f, 128f / 255f);
|
||||
// else
|
||||
// m_pImg_Icon[i].color = new Color(255f/ 255f, 255f / 255f, 255f / 255f);
|
||||
// //m_pImg_Icon[i].SetData(1);
|
||||
// //m_pImg_Icon[i].SetDataPtr((void*)1);
|
||||
// object pDBEssence = pDB.get_data_ptr((uint)pPet.GetTemplateID(),
|
||||
// ID_SPACE.ID_SPACE_ESSENCE, ref DataType);
|
||||
|
||||
// if (pDBEssence != null)
|
||||
// {
|
||||
// PET_ESSENCE pET = (PET_ESSENCE)pDBEssence;
|
||||
// af_GetFileTitle(pET.FileIcon,out strFile);
|
||||
// strFile.ToLower();
|
||||
// if(m_pImg_Icon[i].sprite == null || m_pImg_Icon[i].sprite.Equals(m_spriteDefault_Icon) || !m_pImg_Icon[i].sprite.name.Equals(strFile))
|
||||
// {
|
||||
// m_pImg_Icon[i].sprite = EC_Game.GetGameRun().GetUIManager().GetSpriteInListIvtr(strFile);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// m_pImg_Icon[i].sprite = m_spriteDefault_Icon;
|
||||
// //m_pImg_Icon[i].SetHint(_AL(""));
|
||||
// }
|
||||
|
||||
// if(m_pBtn_Evolution[i] != null)
|
||||
// m_pBtn_Evolution[i].interactable = (pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_COMBAT || pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_EVOLUTION);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// m_pBtn_Summon[i].interactable = (false);
|
||||
// m_pBtn_Recall[i].interactable = (false);
|
||||
// m_pBtn_Detail[i].interactable = (false);
|
||||
// //m_pBtn_Evolution[i].gameObject.SetActive(false);
|
||||
// // m_pBtn_Banish[i].Enable(false);
|
||||
// //m_pImg_Icon[i].SetDataPtr(NULL);
|
||||
// m_pTxt_Level[i].text = "";
|
||||
// m_pTxt_Name[i].text = "";
|
||||
// m_pImg_Icon[i].sprite = m_spriteDefault_Icon;
|
||||
// //m_pImg_Icon[i].SetHint(_AL(""));
|
||||
// //m_pImg_Icon[i].SetData(0);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
//public bool af_GetFileTitle(string lpszFile, out string lpszTitle)
|
||||
//{
|
||||
// lpszTitle = string.Empty;
|
||||
|
||||
// if (string.IsNullOrEmpty(lpszFile))
|
||||
// return lpszFile != null;
|
||||
|
||||
// if (lpszFile.EndsWith("\\") || lpszFile.EndsWith("/"))
|
||||
// return false;
|
||||
|
||||
// lpszTitle = Path.GetFileNameWithoutExtension(lpszFile);
|
||||
// return true;
|
||||
//}
|
||||
|
||||
//public void OnCommandSummon(int slot)
|
||||
//{
|
||||
// CECPetCorral pPetCorral = GetHostPlayer().GetPetCorral();
|
||||
// int nSlot = slot - 1;
|
||||
// nSlot += m_nPageIndex* CDLGPETLIST_SLOT_MAX;
|
||||
// // ·ÉÐÐ-¡·Æï³Ë
|
||||
// if (GetHostPlayer().GetActionSwitcher() != null && GetHostPlayer().GetActionSwitcher().OnFlyToRideAction(nSlot))
|
||||
// return;
|
||||
|
||||
// //UpdateList();
|
||||
// GetHostPlayer().SummonPet(nSlot);
|
||||
//}
|
||||
|
||||
//public void OnCommandRecall()
|
||||
//{
|
||||
// GetHostPlayer().RecallPet();
|
||||
//}
|
||||
|
||||
//public void OnClickBtnTab(int index)
|
||||
//{
|
||||
// m_nPageIndex = index;
|
||||
// for(int i = 0; i < m_pBtn_Tab.Length; i++)
|
||||
// {
|
||||
// m_mask_off_pBtn_Tab[i].SetActive(i != m_nPageIndex);
|
||||
// }
|
||||
// UpdateList();
|
||||
//}
|
||||
|
||||
public const int CDLGPETLIST_SLOT_MAX = 10;
|
||||
|
||||
[Header("Prefab Setup")]
|
||||
[SerializeField] private DlgPetListBox m_prefabPetSlot;
|
||||
[SerializeField] private Transform m_container;
|
||||
|
||||
[Header("Common UI")]
|
||||
[SerializeField] private Button m_pBtnClose;
|
||||
[SerializeField] private Sprite m_spriteDefault_Icon;
|
||||
[SerializeField] private Button[] m_pBtn_Tab;
|
||||
[SerializeField] private GameObject[] m_mask_off_pBtn_Tab;
|
||||
int m_nPageIndex;
|
||||
string strFile = "";
|
||||
string strText = "";
|
||||
CECPetCorral pPetCorral;
|
||||
elementdataman pDB;
|
||||
DATA_TYPE DataType = new DATA_TYPE();
|
||||
|
||||
private List<DlgPetListBox> m_spawnedSlots = new List<DlgPetListBox>();
|
||||
private int m_nPageIndex = 0;
|
||||
|
||||
public void OnInitDialog()
|
||||
{
|
||||
//string szText = "";
|
||||
//int i;
|
||||
//for (i = 0; i < CDLGPETLIST_SLOT_MAX; i++)
|
||||
//{
|
||||
// szText = string.Format("Img_Icon{0}", i + 1);
|
||||
// m_pImg_Icon[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// sprintf(szText, "Lab_Name%d", i + 1);
|
||||
// m_pLab_Name[i] = (PAUILABEL)GetDlgItem(szText);
|
||||
// sprintf(szText, "Lab_Level%d", i + 1);
|
||||
// m_pLab_Level[i] = (PAUILABEL)GetDlgItem(szText);
|
||||
// sprintf(szText, "Txt_Name%d", i + 1);
|
||||
// m_pTxt_Name[i] = (PAUILABEL)GetDlgItem(szText);
|
||||
// sprintf(szText, "Txt_Level%d", i + 1);
|
||||
// m_pTxt_Level[i] = (PAUILABEL)GetDlgItem(szText);
|
||||
// sprintf(szText, "Btn_Recall%d", i + 1);
|
||||
// m_pBtn_Recall[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// sprintf(szText, "Btn_Summon%d", i + 1);
|
||||
// m_pBtn_Summon[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// sprintf(szText, "Btn_Detail%d", i + 1);
|
||||
// m_pBtn_Detail[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// sprintf(szText, "Btn_Banish%d", i + 1);
|
||||
// m_pBtn_Banish[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
// sprintf(szText, "Btn_P%d", i + 1);
|
||||
// m_pBtn_Evolution[i] = (PAUIIMAGEPICTURE)GetDlgItem(szText);
|
||||
//}
|
||||
//for (i = 0; i < CDLGPETLIST_PAGE_MAX; i++)
|
||||
//{
|
||||
// m_pBtn_Page[i] = NULL;
|
||||
// DDX_Control(AString().Format("Btn_Page%d", i + 1), m_pBtn_Page[i]);
|
||||
// m_pBtn_Page[i].SetPushed(false);
|
||||
//}
|
||||
m_nPageIndex = 0;
|
||||
//m_pBtn_Page[0].SetPushed(true);
|
||||
int index = 0;
|
||||
if (!IsShow()) Show(true);
|
||||
for (int i = 0; i < m_pBtn_Summon.Length; i++)
|
||||
{
|
||||
index = i;
|
||||
m_pBtn_Summon[index].onClick.RemoveAllListeners();
|
||||
if(i == 0)
|
||||
{
|
||||
m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandSummon(1);
|
||||
});
|
||||
}
|
||||
else if(i == 1)
|
||||
{
|
||||
m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandSummon(2);
|
||||
});
|
||||
}
|
||||
else if (i == 2)
|
||||
{
|
||||
m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandSummon(3);
|
||||
});
|
||||
}
|
||||
else if (i == 3)
|
||||
{
|
||||
m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandSummon(4);
|
||||
});
|
||||
}
|
||||
else if (i == 5)
|
||||
{
|
||||
m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandSummon(6);
|
||||
});
|
||||
}
|
||||
else if (i == 6)
|
||||
{
|
||||
m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandSummon(7);
|
||||
});
|
||||
}
|
||||
else if (i == 7)
|
||||
{
|
||||
m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandSummon(8);
|
||||
});
|
||||
}
|
||||
else if (i == 9)
|
||||
{
|
||||
m_pBtn_Summon[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandSummon(10);
|
||||
});
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < m_pBtn_Recall.Length; i++)
|
||||
{
|
||||
index = i;
|
||||
m_pBtn_Recall[index].onClick.RemoveAllListeners();
|
||||
m_pBtn_Recall[index].onClick.AddListener(() =>
|
||||
{
|
||||
OnCommandRecall();
|
||||
});
|
||||
}
|
||||
m_pBtnClose.onClick.RemoveAllListeners();
|
||||
m_pBtnClose.onClick.AddListener(() =>
|
||||
{
|
||||
Show(false);
|
||||
});
|
||||
for(int i = 0; i < m_pBtn_Tab.Length; i++)
|
||||
{
|
||||
m_pBtn_Tab[i].onClick.RemoveAllListeners();
|
||||
if(i == 0)
|
||||
{
|
||||
m_pBtn_Tab[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnClickBtnTab(0);
|
||||
});
|
||||
}
|
||||
else if(i == 1)
|
||||
{
|
||||
m_pBtn_Tab[i].onClick.AddListener(() =>
|
||||
{
|
||||
OnClickBtnTab(1);
|
||||
});
|
||||
}
|
||||
}
|
||||
OnClickBtnTab(0);
|
||||
}
|
||||
|
||||
bool IsPetDye(int nSlot)
|
||||
{
|
||||
return false;
|
||||
//TO DO: fix later
|
||||
//return nSlot >= 0
|
||||
// && GetGameUIMan().m_pDlgPetDye.IsShow()
|
||||
// && GetGameUIMan().m_pDlgPetDye.GetPetSlot() == nSlot;
|
||||
m_pBtnClose.onClick.RemoveAllListeners();
|
||||
m_pBtnClose.onClick.AddListener(() => Show(false));
|
||||
|
||||
for (int i = 0; i < m_pBtn_Tab.Length; i++)
|
||||
{
|
||||
int index = i;
|
||||
m_pBtn_Tab[i].onClick.RemoveAllListeners();
|
||||
m_pBtn_Tab[i].onClick.AddListener(() => OnClickBtnTab(index));
|
||||
}
|
||||
|
||||
OnClickBtnTab(0);
|
||||
}
|
||||
|
||||
public override bool Render()
|
||||
@@ -186,106 +344,53 @@ namespace BrewMonster.UI
|
||||
|
||||
public void UpdateList()
|
||||
{
|
||||
strText = "";
|
||||
pPetCorral = GetHostPlayer().GetPetCorral();
|
||||
pDB = ElementDataManProvider.GetElementDataMan();
|
||||
DataType = new DATA_TYPE();
|
||||
CECPetCorral pPetCorral = GetHostPlayer()?.GetPetCorral();
|
||||
if (pPetCorral == null) return;
|
||||
|
||||
int operatingState = GetHostPlayer().IsOperatingPet();
|
||||
int totalPetNum = pPetCorral.GetPetSlotNum();
|
||||
|
||||
while (m_spawnedSlots.Count < CDLGPETLIST_SLOT_MAX)
|
||||
{
|
||||
DlgPetListBox newSlot = Instantiate(m_prefabPetSlot, m_container);
|
||||
m_spawnedSlots.Add(newSlot);
|
||||
}
|
||||
|
||||
for (int i = 0; i < CDLGPETLIST_SLOT_MAX; i++)
|
||||
{
|
||||
int nPetSlot = i + m_nPageIndex * CDLGPETLIST_SLOT_MAX;
|
||||
if (nPetSlot < pPetCorral.GetPetSlotNum())
|
||||
{
|
||||
m_pLab_Level[i].color = new Color(255f / 255f, 203f / 255f, 74f / 255f);
|
||||
m_pLab_Name[i].color = new Color(255f / 255f, 203f / 255f, 74f / 255f);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pLab_Level[i].color = new Color(128f / 128f, 128f / 128f, 128f / 128f);
|
||||
m_pLab_Name[i].color = new Color(128f / 128f, 128f / 128f, 128f / 128f);
|
||||
}
|
||||
CECPetData pPet = pPetCorral.GetPetData(nPetSlot);
|
||||
if (pPet != null)
|
||||
{
|
||||
bool bEnable = (pPetCorral.GetActivePetIndex() == nPetSlot && GetHostPlayer().IsOperatingPet() == 0);
|
||||
m_pBtn_Recall[i].interactable = (bEnable);
|
||||
int actualSlotIndex = i + (m_nPageIndex * CDLGPETLIST_SLOT_MAX);
|
||||
|
||||
bEnable = (pPetCorral.GetActivePetIndex() != nPetSlot && GetHostPlayer().IsOperatingPet() == 0);
|
||||
m_pBtn_Summon[i].interactable = (bEnable);
|
||||
CECPetData pPet = pPetCorral.GetPetData(actualSlotIndex);
|
||||
bool isActivePet = (pPetCorral.GetActivePetIndex() == actualSlotIndex);
|
||||
|
||||
m_pBtn_Detail[i].interactable = (true);
|
||||
|
||||
strText = string.Format(GetStringFromTable(801).Replace("%d", "{0}"), pPet.GetLevel());
|
||||
m_pTxt_Level[i].SetText(strText);
|
||||
m_pTxt_Name[i].SetText(pPet.GetName());
|
||||
if ((pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_COMBAT || pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_EVOLUTION) && pPet.GetHPFactor() == 0.0f || IsPetDye(nPetSlot))
|
||||
m_pImg_Icon[i].color = new Color(128f/ 255f, 128f / 255f, 128f / 255f);
|
||||
else
|
||||
m_pImg_Icon[i].color = new Color(255f/ 255f, 255f / 255f, 255f / 255f);
|
||||
//m_pImg_Icon[i].SetData(1);
|
||||
//m_pImg_Icon[i].SetDataPtr((void*)1);
|
||||
object pDBEssence = pDB.get_data_ptr((uint)pPet.GetTemplateID(),
|
||||
ID_SPACE.ID_SPACE_ESSENCE, ref DataType);
|
||||
|
||||
if (pDBEssence != null)
|
||||
{
|
||||
PET_ESSENCE pET = (PET_ESSENCE)pDBEssence;
|
||||
af_GetFileTitle(pET.FileIcon,out strFile);
|
||||
strFile.ToLower();
|
||||
if(m_pImg_Icon[i].sprite == null || m_pImg_Icon[i].sprite.Equals(m_spriteDefault_Icon) || !m_pImg_Icon[i].sprite.name.Equals(strFile))
|
||||
{
|
||||
m_pImg_Icon[i].sprite = EC_Game.GetGameRun().GetUIManager().GetSpriteInListIvtr(strFile);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pImg_Icon[i].sprite = m_spriteDefault_Icon;
|
||||
//m_pImg_Icon[i].SetHint(_AL(""));
|
||||
}
|
||||
|
||||
if(m_pBtn_Evolution[i] != null)
|
||||
m_pBtn_Evolution[i].interactable = (pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_COMBAT || pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_EVOLUTION);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pBtn_Summon[i].interactable = (false);
|
||||
m_pBtn_Recall[i].interactable = (false);
|
||||
m_pBtn_Detail[i].interactable = (false);
|
||||
//m_pBtn_Evolution[i].gameObject.SetActive(false);
|
||||
// m_pBtn_Banish[i].Enable(false);
|
||||
//m_pImg_Icon[i].SetDataPtr(NULL);
|
||||
m_pTxt_Level[i].text = "";
|
||||
m_pTxt_Name[i].text = "";
|
||||
m_pImg_Icon[i].sprite = m_spriteDefault_Icon;
|
||||
//m_pImg_Icon[i].SetHint(_AL(""));
|
||||
//m_pImg_Icon[i].SetData(0);
|
||||
}
|
||||
m_spawnedSlots[i].SetData(
|
||||
pPet,
|
||||
actualSlotIndex,
|
||||
isActivePet,
|
||||
operatingState,
|
||||
OnSlotClicked
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public bool af_GetFileTitle(string lpszFile, out string lpszTitle)
|
||||
private void OnSlotClicked(int slotIndex, bool isActivePet)
|
||||
{
|
||||
lpszTitle = string.Empty;
|
||||
|
||||
if (string.IsNullOrEmpty(lpszFile))
|
||||
return lpszFile != null;
|
||||
|
||||
if (lpszFile.EndsWith("\\") || lpszFile.EndsWith("/"))
|
||||
return false;
|
||||
|
||||
lpszTitle = Path.GetFileNameWithoutExtension(lpszFile);
|
||||
return true;
|
||||
if (isActivePet)
|
||||
{
|
||||
OnCommandRecall();
|
||||
}
|
||||
else
|
||||
{
|
||||
OnCommandSummon(slotIndex);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnCommandSummon(int slot)
|
||||
public void OnCommandSummon(int nSlot)
|
||||
{
|
||||
CECPetCorral pPetCorral = GetHostPlayer().GetPetCorral();
|
||||
int nSlot = slot - 1;
|
||||
nSlot += m_nPageIndex* CDLGPETLIST_SLOT_MAX;
|
||||
// ·ÉÐÐ-¡·Æï³Ë
|
||||
if (GetHostPlayer().GetActionSwitcher() != null && GetHostPlayer().GetActionSwitcher().OnFlyToRideAction(nSlot))
|
||||
var actionSwitcher = GetHostPlayer().GetActionSwitcher();
|
||||
if (actionSwitcher != null && actionSwitcher.OnFlyToRideAction(nSlot))
|
||||
return;
|
||||
|
||||
//UpdateList();
|
||||
GetHostPlayer().SummonPet(nSlot);
|
||||
}
|
||||
|
||||
@@ -297,10 +402,15 @@ namespace BrewMonster.UI
|
||||
public void OnClickBtnTab(int index)
|
||||
{
|
||||
m_nPageIndex = index;
|
||||
for(int i = 0; i < m_pBtn_Tab.Length; i++)
|
||||
|
||||
for (int i = 0; i < m_pBtn_Tab.Length; i++)
|
||||
{
|
||||
m_mask_off_pBtn_Tab[i].SetActive(i != m_nPageIndex);
|
||||
if (i < m_mask_off_pBtn_Tab.Length)
|
||||
{
|
||||
m_mask_off_pBtn_Tab[i].SetActive(i != m_nPageIndex);
|
||||
}
|
||||
}
|
||||
|
||||
UpdateList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
using BrewMonster.Network;
|
||||
using BrewMonster.Scripts.Pet;
|
||||
using BrewMonster.UI;
|
||||
using CSNetwork.GPDataType;
|
||||
using ModelRenderer.Scripts.GameData;
|
||||
using System;
|
||||
using System.IO;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace BrewMonster
|
||||
{
|
||||
public class DlgPetListBox : AUIDialog
|
||||
{
|
||||
[SerializeField] private Image m_iconPet;
|
||||
[SerializeField] private TMP_Text m_textPetName;
|
||||
[SerializeField] private TMP_Text m_textLevel;
|
||||
[SerializeField] private Sprite m_spriteDefault_Icon;
|
||||
|
||||
private int m_slotIndex;
|
||||
private bool m_isActivePet;
|
||||
private int m_operatingState;
|
||||
private Action<int, bool> m_onClickCallback;
|
||||
|
||||
public void SetData(CECPetData pPet, int actualSlot, bool isActivePet, int operatingState, Action<int, bool> onClickSlot)
|
||||
{
|
||||
if (pPet == null)
|
||||
{
|
||||
Show(false);
|
||||
return;
|
||||
}
|
||||
|
||||
Show(true);
|
||||
|
||||
m_slotIndex = actualSlot;
|
||||
m_isActivePet = isActivePet;
|
||||
m_operatingState = operatingState;
|
||||
m_onClickCallback = onClickSlot;
|
||||
|
||||
m_textPetName.text = pPet.GetName();
|
||||
m_textLevel.text = $"Cấp {pPet.GetLevel()}";
|
||||
|
||||
m_textPetName.color = isActivePet ? new Color(1f, 0.8f, 0.3f) : Color.white;
|
||||
|
||||
bool isDead = (pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_COMBAT ||
|
||||
pPet.GetClass() == (int)GP_PET_TYPE.GP_PET_CLASS_EVOLUTION) &&
|
||||
pPet.GetHPFactor() == 0.0f;
|
||||
|
||||
m_iconPet.color = isDead ? new Color(0.5f, 0.5f, 0.5f) : Color.white;
|
||||
UpdateIcon(pPet.GetTemplateID());
|
||||
|
||||
Button btn = GetComponent<Button>();
|
||||
if (btn != null)
|
||||
{
|
||||
btn.interactable = (m_operatingState == 0);
|
||||
btn.onClick.RemoveAllListeners();
|
||||
btn.onClick.AddListener(() => m_onClickCallback?.Invoke(m_slotIndex, m_isActivePet));
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateIcon(int templateID)
|
||||
{
|
||||
var pDB = ElementDataManProvider.GetElementDataMan();
|
||||
DATA_TYPE dataType = new DATA_TYPE();
|
||||
object pDBEssence = pDB.get_data_ptr((uint)templateID, ID_SPACE.ID_SPACE_ESSENCE, ref dataType);
|
||||
|
||||
if (pDBEssence != null)
|
||||
{
|
||||
PET_ESSENCE pET = (PET_ESSENCE)pDBEssence;
|
||||
string strFile = Path.GetFileNameWithoutExtension(pET.FileIcon).ToLower();
|
||||
m_iconPet.sprite = EC_Game.GetGameRun().GetUIManager().GetSpriteInListIvtr(strFile);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_iconPet.sprite = m_spriteDefault_Icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 64e90bb757076d4419730b442592c70c
|
||||
@@ -1,141 +1,5 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &72267796104511909
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4783086569943195517}
|
||||
- component: {fileID: 4583229471292315412}
|
||||
- component: {fileID: 1558277565493916878}
|
||||
m_Layer: 5
|
||||
m_Name: content_name
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4783086569943195517
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 72267796104511909}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8260572354647293687}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 315, y: -30}
|
||||
m_SizeDelta: {x: 384.4977, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4583229471292315412
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 72267796104511909}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1558277565493916878
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 72267796104511909}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "T\u1EED S\u1EAFc Linh H\u1ED3 "
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_sharedMaterial: {fileID: 9092487103257209053, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 39.15
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &223845278514436351
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1600,335 +1464,15 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
skillNameText: {fileID: 0}
|
||||
imageProgress: {fileID: 0}
|
||||
m_pBtn_Summon:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pBtn_Recall:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pBtn_Detail:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pBtn_Banish:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pBtn_Evolution:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pImg_Icon:
|
||||
- {fileID: 5711600454098720514}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pLab_Name:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pLab_Level:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pTxt_Name:
|
||||
- {fileID: 1558277565493916878}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_pTxt_Level:
|
||||
- {fileID: 2499015394542669687}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_prefabPetSlot: {fileID: 4659787501825667672, guid: 1f24da0ec1a703b4e9650d69ec4ceff2, type: 3}
|
||||
m_container: {fileID: 6146182060371184350}
|
||||
m_pBtnClose: {fileID: 8122086289517642079}
|
||||
m_spriteDefault_Icon: {fileID: 21300000, guid: 1356336560449e54a921e7243886103d, type: 3}
|
||||
m_pBtn_Tab:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
m_mask_off_pBtn_Tab:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
--- !u!1 &4834759334245868423
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7209708966561905306}
|
||||
- component: {fileID: 4205941651356068850}
|
||||
- component: {fileID: 5711600454098720514}
|
||||
m_Layer: 5
|
||||
m_Name: icon_animal
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7209708966561905306
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4834759334245868423}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8260572354647293687}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 0, y: 0.5}
|
||||
m_AnchoredPosition: {x: 65, y: 0}
|
||||
m_SizeDelta: {x: 77.11511, y: 77.8302}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4205941651356068850
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4834759334245868423}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5711600454098720514
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4834759334245868423}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 1356336560449e54a921e7243886103d, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 1
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &5028054674634092708
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6497347927771429827}
|
||||
- component: {fileID: 7835167435450404326}
|
||||
- component: {fileID: 2499015394542669687}
|
||||
m_Layer: 5
|
||||
m_Name: text_level
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6497347927771429827
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5028054674634092708}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8260572354647293687}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 169, y: -84.4}
|
||||
m_SizeDelta: {x: 96.622, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7835167435450404326
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5028054674634092708}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &2499015394542669687
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5028054674634092708}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "C\u1EA5p 10"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_sharedMaterial: {fileID: 9092487103257209053, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 39.15
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &5447703489185023651
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2100,84 +1644,6 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_ShowMaskGraphic: 0
|
||||
--- !u!1 &6545415726588748883
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8260572354647293687}
|
||||
- component: {fileID: 4426573899586245376}
|
||||
- component: {fileID: 5874527845100753266}
|
||||
m_Layer: 5
|
||||
m_Name: box1
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8260572354647293687
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6545415726588748883}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 7209708966561905306}
|
||||
- {fileID: 4783086569943195517}
|
||||
- {fileID: 6497347927771429827}
|
||||
m_Father: {fileID: 6146182060371184350}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 240, y: -89}
|
||||
m_SizeDelta: {x: 470, y: 130}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4426573899586245376
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6545415726588748883}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5874527845100753266
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6545415726588748883}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0.84705883}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 496f3a7d82233dd4eb60cee689df75ea, type: 3}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &6606295121296938252
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2863,8 +2329,7 @@ RectTransform:
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 8260572354647293687}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4169649014949499783}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
|
||||
@@ -0,0 +1,446 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &348038655157736426
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3216402974447372622}
|
||||
- component: {fileID: 7165189893168129209}
|
||||
- component: {fileID: 1118867773330876107}
|
||||
- component: {fileID: 4659787501825667672}
|
||||
m_Layer: 5
|
||||
m_Name: box_pet
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3216402974447372622
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 348038655157736426}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 4183720529485958435}
|
||||
- {fileID: 2045030433929570500}
|
||||
- {fileID: 300246082199506042}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 240, y: -89}
|
||||
m_SizeDelta: {x: 470, y: 130}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7165189893168129209
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 348038655157736426}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1118867773330876107
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 348038655157736426}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0.84705883}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 496f3a7d82233dd4eb60cee689df75ea, type: 3}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &4659787501825667672
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 348038655157736426}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 64e90bb757076d4419730b442592c70c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
skillNameText: {fileID: 0}
|
||||
imageProgress: {fileID: 0}
|
||||
m_iconPet: {fileID: 1243602517205999803}
|
||||
m_textPetName: {fileID: 5449806950497928055}
|
||||
m_textLevel: {fileID: 8984627373247379662}
|
||||
m_spriteDefault_Icon: {fileID: 21300000, guid: a5366f3bce011c046902e39b6bd3a077, type: 3}
|
||||
--- !u!1 &2001492326850316061
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 300246082199506042}
|
||||
- component: {fileID: 3656251068504947295}
|
||||
- component: {fileID: 8984627373247379662}
|
||||
m_Layer: 5
|
||||
m_Name: text_level
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &300246082199506042
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2001492326850316061}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3216402974447372622}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 169, y: -84.4}
|
||||
m_SizeDelta: {x: 96.622, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3656251068504947295
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2001492326850316061}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8984627373247379662
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2001492326850316061}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "C\u1EA5p 10"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_sharedMaterial: {fileID: 9092487103257209053, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 39.15
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &2096711788239344702
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4183720529485958435}
|
||||
- component: {fileID: 7232506232521808971}
|
||||
- component: {fileID: 1243602517205999803}
|
||||
m_Layer: 5
|
||||
m_Name: icon_animal
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4183720529485958435
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2096711788239344702}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3216402974447372622}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 0, y: 0.5}
|
||||
m_AnchoredPosition: {x: 65, y: 0}
|
||||
m_SizeDelta: {x: 77.11511, y: 77.8302}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7232506232521808971
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2096711788239344702}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1243602517205999803
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2096711788239344702}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 1356336560449e54a921e7243886103d, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 1
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &6845815108193056284
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2045030433929570500}
|
||||
- component: {fileID: 7033322270737113261}
|
||||
- component: {fileID: 5449806950497928055}
|
||||
m_Layer: 5
|
||||
m_Name: content_name
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2045030433929570500
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6845815108193056284}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3216402974447372622}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 315, y: -30}
|
||||
m_SizeDelta: {x: 384.4977, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7033322270737113261
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6845815108193056284}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5449806950497928055
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6845815108193056284}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "T\u1EED S\u1EAFc Linh H\u1ED3 "
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_sharedMaterial: {fileID: 9092487103257209053, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 39.15
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f24da0ec1a703b4e9650d69ec4ceff2
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -61,6 +61,26 @@ namespace BrewMonster
|
||||
var (header, members) = GPDataTypeHelper.ParseTeamMemberData(data);
|
||||
if (m_pTeam == null || header.idLeader != m_pTeam.GetLeaderID()) return;
|
||||
m_pTeam.UpdateTeamData(header, members);
|
||||
var pPlayerMan = EC_ManMessageMono.Instance?.GetECManPlayer;
|
||||
if (pPlayerMan != null)
|
||||
{
|
||||
for (int i = 0; i < m_pTeam.GetMemberNum(); i++)
|
||||
{
|
||||
var pMember = m_pTeam.GetMemberByIndex(i);
|
||||
if (pMember == null || pMember.IsInfoReady())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var pPlayer = pPlayerMan.GetPlayer(pMember.GetCharacterID(), 0) as CECPlayer;
|
||||
if (pPlayer != null)
|
||||
{
|
||||
pMember.SetProfession(pPlayer.GetProfession());
|
||||
pMember.SetGender(pPlayer.GetGender());
|
||||
pMember.SetInfoReadyFlag(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
NotifyUIUpdateTeam();
|
||||
}
|
||||
catch { }
|
||||
|
||||
Reference in New Issue
Block a user