更改聊天窗口类目与文件名
This commit is contained in:
parent
d456913985
commit
d256e8b7d5
|
|
@ -1,17 +1,17 @@
|
|||
/*
|
||||
文件名:6_Message.nut
|
||||
路径:User/UI/Window/6_Message.nut
|
||||
创建日期:2025-01-17 19:41
|
||||
文件用途: 消息窗口
|
||||
文件名:6_PlayerChat.nut
|
||||
路径:User/UI/Window/6_PlayerChat.nut
|
||||
创建日期:2025-01-20 18:03
|
||||
文件用途:
|
||||
*/
|
||||
|
||||
//主类
|
||||
class _Message extends Yosin_Window {
|
||||
class _PlayerChat extends Yosin_Window {
|
||||
|
||||
constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) {
|
||||
base.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH);
|
||||
|
||||
local background = Message_Backgournd();
|
||||
local background = PlayerChat_Backgournd();
|
||||
Addchild(background);
|
||||
|
||||
RegisterWidget();
|
||||
|
|
@ -20,7 +20,7 @@ class _Message extends Yosin_Window {
|
|||
function RegisterWidget() {
|
||||
|
||||
// 普通
|
||||
local ordinary = Message_SplicingButton(6, 206, 53, 20, 8, "普通", sq_RGBA(255, 255, 255, 255));
|
||||
local ordinary = PlayerChat_SplicingButton(6, 206, 53, 20, 8, "普通", sq_RGBA(255, 255, 255, 255));
|
||||
AddUIChild(ordinary);
|
||||
ordinary.LBDownOnClick = function(btn) {
|
||||
print(111);
|
||||
|
|
@ -30,7 +30,7 @@ class _Message extends Yosin_Window {
|
|||
}
|
||||
|
||||
// 公会
|
||||
local notice = Message_SplicingButton(60, 206, 53, 20, 47, "公会", sq_RGBA(254, 77, 245, 255));
|
||||
local notice = PlayerChat_SplicingButton(60, 206, 53, 20, 47, "公会", sq_RGBA(254, 77, 245, 255));
|
||||
AddUIChild(notice);
|
||||
notice.LBDownOnClick = function(btn) {
|
||||
print(111);
|
||||
|
|
@ -40,7 +40,7 @@ class _Message extends Yosin_Window {
|
|||
}
|
||||
|
||||
// 频道
|
||||
local channel = Message_SplicingButton(114, 206, 53, 20, 48, "频道", sq_RGBA(221, 153, 197, 255));
|
||||
local channel = PlayerChat_SplicingButton(114, 206, 53, 20, 48, "频道", sq_RGBA(221, 153, 197, 255));
|
||||
AddUIChild(channel);
|
||||
channel.LBDownOnClick = function(btn) {
|
||||
print(111);
|
||||
|
|
@ -50,7 +50,7 @@ class _Message extends Yosin_Window {
|
|||
}
|
||||
|
||||
// 募集
|
||||
local raise = Message_SplicingButton(168, 206, 53, 20, 49, "募集", sq_RGBA(105, 212, 238, 255));
|
||||
local raise = PlayerChat_SplicingButton(168, 206, 53, 20, 49, "募集", sq_RGBA(105, 212, 238, 255));
|
||||
AddUIChild(raise);
|
||||
raise.LBDownOnClick = function(btn) {
|
||||
print(111);
|
||||
|
|
@ -74,7 +74,7 @@ class _Message extends Yosin_Window {
|
|||
|
||||
|
||||
// 背景
|
||||
class Message_Backgournd extends CL_CanvasObject {
|
||||
class PlayerChat_Backgournd extends CL_CanvasObject {
|
||||
|
||||
constructor() {
|
||||
base.constructor();
|
||||
|
|
@ -142,8 +142,8 @@ class Message_Backgournd extends CL_CanvasObject {
|
|||
DrawSprite(megaphoneBround, 6, 130);
|
||||
|
||||
// 消息
|
||||
local MessageBround = Yosin_NineBoxStretch(321, 345, "sprite/interface/newstyle/windows/chatting/chatting_ver4.img", 265);
|
||||
DrawSprite(MessageBround, 6, 225);
|
||||
local PlayerChatBround = Yosin_NineBoxStretch(321, 345, "sprite/interface/newstyle/windows/chatting/chatting_ver4.img", 265);
|
||||
DrawSprite(PlayerChatBround, 6, 225);
|
||||
|
||||
|
||||
// 结束绘制
|
||||
|
|
@ -158,7 +158,7 @@ class Message_Backgournd extends CL_CanvasObject {
|
|||
|
||||
|
||||
// 消息分类按钮
|
||||
class Message_SplicingButton extends Yosin_CommonUi {
|
||||
class PlayerChat_SplicingButton extends Yosin_CommonUi {
|
||||
|
||||
//按钮状态
|
||||
State = 0;
|
||||
|
|
@ -289,5 +289,8 @@
|
|||
},
|
||||
"User/Asset/Item/Stackable.nut": {
|
||||
"description": "消耗品及材料"
|
||||
},
|
||||
"User/UI/Window/6_PlayerChat.nut": {
|
||||
"description": "聊天消息窗口"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue