消息聊天框 有问题

This commit is contained in:
Lenheart 2025-01-20 18:13:02 +08:00
parent d256e8b7d5
commit 97e510390e
2 changed files with 5 additions and 15 deletions

View File

@ -28,6 +28,8 @@ function InitGame() {
_GameController_();
//初始化顶部工具条UI
Sq_CreateWindow(_Top_tool, "窗口顶部工具条", 208, 0, 650, 20, 0);
//初始化聊天窗口
Sq_CreateWindow(_PlayerChat, "玩家聊天窗口", 1066, 0, 332, 600, 0);
//预加载
Animation("ui/charactercreate/dust.ani");

View File

@ -8,6 +8,9 @@
//主类
class _PlayerChat extends Yosin_Window {
//是否为顶层窗口
IsTop = true;
constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) {
base.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH);
@ -264,18 +267,3 @@ class PlayerChat_SplicingButton extends Yosin_CommonUi {
}
}
if (!getroottable().rawin("chongzaiflag")) {
getroottable()["chongzaiflag"] <- true;
} else {
//遍历窗口队列 如果可见则调用Show
for (local i = 0; i< _SYS_WINDOW_LIST_.len(); i++) {
local Window = _SYS_WINDOW_LIST_[i];
Window.Visible = false;
Window.RemoveSelf();
}
TestStage();
}