|
@@ -9,11 +9,12 @@ namespace UI.CommonGame
|
|
public GComponent target;
|
|
public GComponent target;
|
|
public GLoader m_loaIcon;
|
|
public GLoader m_loaIcon;
|
|
public GTextField m_txtName;
|
|
public GTextField m_txtName;
|
|
- public GTextField m_txtCount;
|
|
|
|
public GImage m_imgGot;
|
|
public GImage m_imgGot;
|
|
public GTextField m_txtHasCount;
|
|
public GTextField m_txtHasCount;
|
|
public GLoader m_loaRarity;
|
|
public GLoader m_loaRarity;
|
|
public GLoader m_loaShouTongReward;
|
|
public GLoader m_loaShouTongReward;
|
|
|
|
+ public GTextField m_txtCount;
|
|
|
|
+ public GGroup m_grpCount;
|
|
public const string URL = "ui://eg2y0ldpj48o98";
|
|
public const string URL = "ui://eg2y0ldpj48o98";
|
|
public const string PACKAGE_NAME = "CommonGame";
|
|
public const string PACKAGE_NAME = "CommonGame";
|
|
public const string RES_NAME = "ComItem";
|
|
public const string RES_NAME = "ComItem";
|
|
@@ -63,21 +64,23 @@ namespace UI.CommonGame
|
|
{
|
|
{
|
|
m_loaIcon = (GLoader)comp.GetChild("loaIcon");
|
|
m_loaIcon = (GLoader)comp.GetChild("loaIcon");
|
|
m_txtName = (GTextField)comp.GetChild("txtName");
|
|
m_txtName = (GTextField)comp.GetChild("txtName");
|
|
- m_txtCount = (GTextField)comp.GetChild("txtCount");
|
|
|
|
m_imgGot = (GImage)comp.GetChild("imgGot");
|
|
m_imgGot = (GImage)comp.GetChild("imgGot");
|
|
m_txtHasCount = (GTextField)comp.GetChild("txtHasCount");
|
|
m_txtHasCount = (GTextField)comp.GetChild("txtHasCount");
|
|
m_loaRarity = (GLoader)comp.GetChild("loaRarity");
|
|
m_loaRarity = (GLoader)comp.GetChild("loaRarity");
|
|
m_loaShouTongReward = (GLoader)comp.GetChild("loaShouTongReward");
|
|
m_loaShouTongReward = (GLoader)comp.GetChild("loaShouTongReward");
|
|
|
|
+ m_txtCount = (GTextField)comp.GetChild("txtCount");
|
|
|
|
+ m_grpCount = (GGroup)comp.GetChild("grpCount");
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
m_loaIcon = null;
|
|
m_loaIcon = null;
|
|
m_txtName = null;
|
|
m_txtName = null;
|
|
- m_txtCount = null;
|
|
|
|
m_imgGot = null;
|
|
m_imgGot = null;
|
|
m_txtHasCount = null;
|
|
m_txtHasCount = null;
|
|
m_loaRarity = null;
|
|
m_loaRarity = null;
|
|
m_loaShouTongReward = null;
|
|
m_loaShouTongReward = null;
|
|
|
|
+ m_txtCount = null;
|
|
|
|
+ m_grpCount = null;
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
{
|
|
{
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|