|
@@ -18,6 +18,7 @@ namespace GFGGame
|
|
|
private GImage _imgNotHas;
|
|
|
private GImage _imgHas;
|
|
|
private GImage _imgShouTong;
|
|
|
+ private GImage _imgNum;
|
|
|
private Controller _qualityType;
|
|
|
private Controller _scaleType;
|
|
|
// private GGroup _grpCount;
|
|
@@ -40,6 +41,7 @@ namespace GFGGame
|
|
|
_imgNotHas = _item.GetChild("imgNotHas") as GImage;
|
|
|
_imgHas = _item.GetChild("imgHas") as GImage;
|
|
|
_imgShouTong = _item.GetChild("imgShowTong") as GImage;
|
|
|
+ _imgNum = _item.GetChild("imgNum") as GImage;
|
|
|
_qualityType = _item.GetController("QualityType") as Controller;
|
|
|
_scaleType = _item.GetController("ScaleType") as Controller;
|
|
|
// _grpCount = obj.GetChild("grpCount") as GGroup;
|
|
@@ -83,6 +85,7 @@ namespace GFGGame
|
|
|
// _grpCount.visible = true;
|
|
|
_showTips = true;
|
|
|
_txtCount.visible = true;
|
|
|
+ _imgNum.visible = true;
|
|
|
|
|
|
_txtName.text = itemCfg.name;
|
|
|
_txtCount.text = string.Format("{0}", _itemData.num);
|
|
@@ -91,7 +94,7 @@ namespace GFGGame
|
|
|
if(itemCfg.rarity > 0)
|
|
|
_qualityType.selectedIndex = itemCfg.rarity - 1;
|
|
|
|
|
|
- _scaleType.selectedIndex = _textScale ? 1 : 0;
|
|
|
+ _scaleType.selectedIndex = _textScale ? 1 : 0;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -243,6 +246,13 @@ namespace GFGGame
|
|
|
_txtCount.SetScale(value, value);
|
|
|
}
|
|
|
}
|
|
|
+ public float SetTxtNameScale
|
|
|
+ {
|
|
|
+ set
|
|
|
+ {
|
|
|
+ _txtName.SetScale(value, value);
|
|
|
+ }
|
|
|
+ }
|
|
|
public void SetTxtCountPos(int x, int y)
|
|
|
{
|
|
|
_txtCount.SetPosition(x, y, 0);
|
|
@@ -252,6 +262,7 @@ namespace GFGGame
|
|
|
set
|
|
|
{
|
|
|
_txtCount.visible = value;
|
|
|
+ _imgNum.visible = value;
|
|
|
}
|
|
|
}
|
|
|
public void ChangeTxtCountStyle()
|