|
@@ -69,7 +69,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
_ui.m_listRarity.numItems = ConstDressRarity.DressRarityList().Count;
|
|
_ui.m_listRarity.numItems = ConstDressRarity.DressRarityList().Count;
|
|
_ui.m_listScore.numItems = ConstDressUpScoreType.scoreTypeList().Count;
|
|
_ui.m_listScore.numItems = ConstDressUpScoreType.scoreTypeList().Count;
|
|
- _ui.m_listTag.numItems = ConstDressTag.DressTagList().Count;
|
|
|
|
|
|
+ _ui.m_listTag.numItems = TagCfgArray.Instance.dataArray.Length;// ConstDressTag.DressTagList().Count;
|
|
}
|
|
}
|
|
|
|
|
|
private void RenderListRarityItem(int index, GObject obj)
|
|
private void RenderListRarityItem(int index, GObject obj)
|
|
@@ -92,10 +92,11 @@ namespace GFGGame
|
|
private void RenderListTagItem(int index, GObject obj)
|
|
private void RenderListTagItem(int index, GObject obj)
|
|
{
|
|
{
|
|
GButton item = obj.asButton;
|
|
GButton item = obj.asButton;
|
|
- item.text = ConstDressTag.DressTagList()[index].name;
|
|
|
|
- item.icon = "ui://DressUp/sxsx_fgdi_" + ConstDressTag.DressTagList()[index].type;
|
|
|
|
|
|
+ TagCfg tagCfg = TagCfgArray.Instance.dataArray[index];
|
|
|
|
+ item.text = tagCfg.name;
|
|
|
|
+ item.icon = "ui://DressUp/sxsx_fgdi_" + tagCfg.type;
|
|
// item.data =
|
|
// item.data =
|
|
- string data = string.Format("{0}_{1}", ConstDressTag.DressTagList()[index].type, ConstDressTag.DressTagList()[index].name);
|
|
|
|
|
|
+ string data = string.Format("{0}_{1}", tagCfg.type, tagCfg.name);
|
|
item.data = data;
|
|
item.data = data;
|
|
item.selected = _selectTagList.IndexOf(data) >= 0;
|
|
item.selected = _selectTagList.IndexOf(data) >= 0;
|
|
}
|
|
}
|