UI核心库 更改窗口继承 是否启用Layer判断

This commit is contained in:
Lenheart 2024-12-16 20:32:11 +08:00
parent 3c73480642
commit bbcfc17280
1 changed files with 2 additions and 2 deletions

View File

@ -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);