UI核心库 更改窗口继承 是否启用Layer判断
This commit is contained in:
parent
3c73480642
commit
cdbe4a31fe
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue