dp地牢的龙核配置ui问题,怎么实现我在搜索栏里输入玩家名字后,在点击邀请玩家,就可以邀请玩家进队伍,dp1.3.8
已自行解决:
先将邀请框组件按如下配置写好
邀请框:
type: "texture"
x: "界面变量.X+185"
y: "界面变量.Y+7"
width: "90"
height: "14"
texture: "商店/搜索栏背景.png"
邀请_文本框:
x: "界面变量.X+187"
y: "界面变量.Y+11"
text: "请输入内容"
drawBackground: false
length: 50
width: "53"
height: "10"
focused: false
actions:
click_left: 方法.设置组件值('邀请_文本框','text','');
其次按钮组件如下
邀请玩家:
type: "texture"
x: "背景.X+(背景.width-48)/2"
y: "背景.Y+171"
width: "48"
height: "16"
text: "邀请玩家"
texture: "公用/四字按钮弹起.png"
textureHovered: "公用/四字按钮按下.png"
actions:
click_left: 方法.聊天(方法.合并文本('/team invite ',方法.取组件值('邀请_文本框','text')));
即可实现
先将邀请框组件按如下配置写好
邀请框:
type: "texture"
x: "界面变量.X+185"
y: "界面变量.Y+7"
width: "90"
height: "14"
texture: "商店/搜索栏背景.png"
邀请_文本框:
x: "界面变量.X+187"
y: "界面变量.Y+11"
text: "请输入内容"
drawBackground: false
length: 50
width: "53"
height: "10"
focused: false
actions:
click_left: 方法.设置组件值('邀请_文本框','text','');
其次按钮组件如下
邀请玩家:
type: "texture"
x: "背景.X+(背景.width-48)/2"
y: "背景.Y+171"
width: "48"
height: "16"
text: "邀请玩家"
texture: "公用/四字按钮弹起.png"
textureHovered: "公用/四字按钮按下.png"
actions:
click_left: 方法.聊天(方法.合并文本('/team invite ',方法.取组件值('邀请_文本框','text')));
即可实现