|
@@ -106,7 +106,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
UI_ListScoreItem2 listItem = UI_ListScoreItem2.Proxy(obj);
|
|
UI_ListScoreItem2 listItem = UI_ListScoreItem2.Proxy(obj);
|
|
int score = 0;
|
|
int score = 0;
|
|
- int typeIndex = 0;
|
|
|
|
|
|
+ int typeIndex = 1;
|
|
listItem.m_ArrowsType.selectedIndex = 2;
|
|
listItem.m_ArrowsType.selectedIndex = 2;
|
|
if (_cardStarCfg.score1 > 0) {
|
|
if (_cardStarCfg.score1 > 0) {
|
|
typeIndex = 1;
|
|
typeIndex = 1;
|
|
@@ -159,7 +159,7 @@ namespace GFGGame
|
|
private void RenderListCardPropertyItem(int index, GObject obj)
|
|
private void RenderListCardPropertyItem(int index, GObject obj)
|
|
{
|
|
{
|
|
UI_ListScoreItem2 listItem = UI_ListScoreItem2.Proxy(obj);
|
|
UI_ListScoreItem2 listItem = UI_ListScoreItem2.Proxy(obj);
|
|
- int typeIndex = 0;
|
|
|
|
|
|
+ int typeIndex = 1;
|
|
if (_cardStarCfg.score1 > 0)
|
|
if (_cardStarCfg.score1 > 0)
|
|
typeIndex = 1;
|
|
typeIndex = 1;
|
|
else if (_cardStarCfg.score2 > 0)
|
|
else if (_cardStarCfg.score2 > 0)
|
|
@@ -168,7 +168,8 @@ namespace GFGGame
|
|
typeIndex = 3;
|
|
typeIndex = 3;
|
|
else if (_cardStarCfg.score4 > 0)
|
|
else if (_cardStarCfg.score4 > 0)
|
|
typeIndex = 4;
|
|
typeIndex = 4;
|
|
- listItem.m_txtProperty.text = _scores[typeIndex].ToString();
|
|
|
|
|
|
+ if(_scores.ContainsKey(typeIndex))
|
|
|
|
+ listItem.m_txtProperty.text = _scores[typeIndex].ToString();
|
|
listItem.m_loaIcon.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + typeIndex);
|
|
listItem.m_loaIcon.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + typeIndex);
|
|
UI_ListScoreItem2.ProxyEnd();
|
|
UI_ListScoreItem2.ProxyEnd();
|
|
}
|
|
}
|