消息聊天框 有问题
This commit is contained in:
parent
d256e8b7d5
commit
97e510390e
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
Loading…
Reference in New Issue