|
@@ -8,7 +8,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
private List<GComponent> comRedDotPool = new List<GComponent>();
|
|
private List<GComponent> comRedDotPool = new List<GComponent>();
|
|
|
|
|
|
- public void SetComRedDot(GComponent parentCom, bool isRed, string res = "", int left = 0, int right = 0, int top = 0, int bottom = 0)
|
|
|
|
|
|
+ public void SetComRedDot(GComponent parentCom, bool isRed, string res = "", int left = 0, int top = 0)
|
|
{
|
|
{
|
|
GComponent comRedDot;
|
|
GComponent comRedDot;
|
|
|
|
|
|
@@ -26,7 +26,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
parentCom.AddChild(comRedDot);
|
|
parentCom.AddChild(comRedDot);
|
|
comRedDot.name = "comResDot";
|
|
comRedDot.name = "comResDot";
|
|
- comRedDot.SetPosition(parentCom.width - comRedDot.width - left + right, bottom - top, 0);
|
|
|
|
|
|
+ comRedDot.SetPosition(parentCom.width - comRedDot.width + left, top, 0);
|
|
comRedDot.AddRelation(comRedDot, RelationType.TopExt_Top);
|
|
comRedDot.AddRelation(comRedDot, RelationType.TopExt_Top);
|
|
comRedDot.AddRelation(comRedDot, RelationType.RightExt_Right);
|
|
comRedDot.AddRelation(comRedDot, RelationType.RightExt_Right);
|
|
comRedDot.GetChild("loaIcon").asLoader.url = ResPathUtil.GetCommonGameResPath(res == "" ? "zx_hogndian" : res);
|
|
comRedDot.GetChild("loaIcon").asLoader.url = ResPathUtil.GetCommonGameResPath(res == "" ? "zx_hogndian" : res);
|