diff --git a/sqr/Core/UI_Class/UI_Core.nut b/sqr/Core/UI_Class/UI_Core.nut index 4f4216e..6d5b916 100644 --- a/sqr/Core/UI_Class/UI_Core.nut +++ b/sqr/Core/UI_Class/UI_Core.nut @@ -184,7 +184,7 @@ class Yosin_Window extends Yosin_BaseWindow { //是否为独立窗口 IsIndependent = true; - constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) { + constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH, IsLayer = false) { ObjectId = gObjectId; //宽度 Width = gWidth; @@ -199,7 +199,7 @@ class Yosin_Window extends Yosin_BaseWindow { Y = gY; //调用原生方法 - base.constructor(true); + base.constructor(IsLayer); SetSize(Width, Height); SyncPos(X, Y); diff --git a/sqr/User/UI/Window/1_Select_Character.nut b/sqr/User/UI/Window/1_Select_Character.nut index 6db3a02..726b4cc 100644 --- a/sqr/User/UI/Window/1_Select_Character.nut +++ b/sqr/User/UI/Window/1_Select_Character.nut @@ -91,7 +91,7 @@ class _Select_Character_SettingBackground_Window extends Yosin_Window { ScrollObject = null; constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) { - base.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH); + base.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH, true); SettingBackgroundButtonList = []; SetClipRect(5, 9, gWidth, gHeight - 9); @@ -145,14 +145,14 @@ class _Select_Character_SettingBackground_Window extends Yosin_Window { } //角色 -class _Select_Character_Chr extends Yosin_Window { +class _Select_Character_Chr extends Yosin_CommonUi { //是否为独立窗口 IsIndependent = false; Info = null; - constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) { - base.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH); + constructor(gX, gY, gWidth, gHeight) { + base.constructor(gX, gY, gWidth, gHeight); RegisterDraw(); } @@ -171,6 +171,7 @@ class _Select_Character_Chr extends Yosin_Window { Charc.SetAnimation("RestAni"); Charc.SetPosition(48, 12, 0); Addchild(Charc); + // print(Charc.AnimationManager.Children.len()); } } @@ -239,7 +240,7 @@ class _Select_Character_Window extends Yosin_Window { //角色对象 for (local i = 0; i< 5; i++) { - local Buf = _Select_Character_Chr("选择角色角色对象" + i, 190 + (i * 144), ((i % 2) ? 15 : 0) + 225, 126, 208, 0); + local Buf = _Select_Character_Chr(190 + (i * 144), ((i % 2) ? 15 : 0) + 225, 126, 208); if (i< Info.charac.len()) Buf.Init(Info.charac[i]); AddUIChild(Buf); }