UI核心库 更改窗口继承 是否启用Layer判断
This commit is contained in:
parent
3c73480642
commit
cdbe4a31fe
|
|
@ -184,7 +184,7 @@ class Yosin_Window extends Yosin_BaseWindow {
|
||||||
//是否为独立窗口
|
//是否为独立窗口
|
||||||
IsIndependent = true;
|
IsIndependent = true;
|
||||||
|
|
||||||
constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) {
|
constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH, IsLayer = false) {
|
||||||
ObjectId = gObjectId;
|
ObjectId = gObjectId;
|
||||||
//宽度
|
//宽度
|
||||||
Width = gWidth;
|
Width = gWidth;
|
||||||
|
|
@ -199,7 +199,7 @@ class Yosin_Window extends Yosin_BaseWindow {
|
||||||
Y = gY;
|
Y = gY;
|
||||||
|
|
||||||
//调用原生方法
|
//调用原生方法
|
||||||
base.constructor(true);
|
base.constructor(IsLayer);
|
||||||
|
|
||||||
SetSize(Width, Height);
|
SetSize(Width, Height);
|
||||||
SyncPos(X, Y);
|
SyncPos(X, Y);
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ class _Select_Character_SettingBackground_Window extends Yosin_Window {
|
||||||
ScrollObject = null;
|
ScrollObject = null;
|
||||||
|
|
||||||
constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) {
|
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 = [];
|
SettingBackgroundButtonList = [];
|
||||||
|
|
||||||
SetClipRect(5, 9, gWidth, gHeight - 9);
|
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;
|
IsIndependent = false;
|
||||||
|
|
||||||
Info = null;
|
Info = null;
|
||||||
|
|
||||||
constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) {
|
constructor(gX, gY, gWidth, gHeight) {
|
||||||
base.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH);
|
base.constructor(gX, gY, gWidth, gHeight);
|
||||||
RegisterDraw();
|
RegisterDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -171,6 +171,7 @@ class _Select_Character_Chr extends Yosin_Window {
|
||||||
Charc.SetAnimation("RestAni");
|
Charc.SetAnimation("RestAni");
|
||||||
Charc.SetPosition(48, 12, 0);
|
Charc.SetPosition(48, 12, 0);
|
||||||
Addchild(Charc);
|
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++) {
|
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]);
|
if (i< Info.charac.len()) Buf.Init(Info.charac[i]);
|
||||||
AddUIChild(Buf);
|
AddUIChild(Buf);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue