自定义客户端包裹、UI按钮
扩展支持底部UI自定义按钮 背包自定义按钮
客户端文件 | 释义 |
|---|---|
ui\packagewnd.xml | 包裹经典界面 |
ui\NewPackageWnd.xml | 包裹时尚界面 |
ui\PanelWnd.xml | UI经典界面 |
ui\NewPanelWnd.xml | UI时尚界面 |
配置xml参数说明:
<Button name ="TestButton"> <Offset x = "21" y = "100" /> <!-- 偏移坐标 --> <NormalTexture index = "95" /> <!-- 正常按钮显示图片 --> <HighlightTexture index = "96" /> <!-- 高亮时显示图片 --> <PushedTexture index = "97" /> <!-- 按下时显示图片 --> <ButtonText Text = "按钮1" /> <!-- 按钮上显示文字 --> <Tips text="鼠标移上去提示文字" /> <!-- 鼠标移上去提示文字 --> <Font name = "FONT_YAHEI" size="14"/> <!-- 字体类型和大小 --></Button>添加以下代码 为关闭按钮组件 可自定义素材 偏移描述等
<!--ui\packagewnd.xml 包裹经典界面--><Button name = "CloseBtn"> <Offset x = "495" y = "4" /> <NormalTexture index = "80" /> <HighlightTexture index = "81" /> <PushedTexture index = "82" /> <Tips text="关闭背包" /> </Button><!--关闭按钮无须配置指定触发,只要增加这一段就可以正确关闭背包-->自定义按钮示例:
<!--ui\packagewnd.xml 包裹经典界面--> <Button name ="DiyButton"> <Offset x = "405" y = "34" /> <NormalTexture index = "13813" /> <HighlightTexture index = "13813" /> <PushedTexture index = "13814" /> <Tips text="自定义包裹按钮" /> </Button><!--自定义按钮需要关联服务端触发--><!--ui\PanelWnd.xml UI经典界面我用的是经典界面配置,自己使用需要根据需求选择界面配置--><Button name ="DiyUIBotton"> <Offset x = "-1" y = "130" /> <NormalTexture index = "13813" /> <HighlightTexture index = "13813" /> <PushedTexture index = "13814" /> <ButtonText Text = "自定义UI按钮" /> <Font name = "FONT_YAHEI" size="14"/></Button><!--自定义按钮需要关联服务端触发-->按钮的名字(例如:<Button name ="DiyButton">)对应触发标签的名字(例如:@DiyButton),名字可以自定义。服务端关联触发配置:文件 Envir\FunLableList.txt需要将触发标签加入到Envir\FunLableList.txt,否则不会触发@DiyButton@DiyUIBotton触发Funtion_def\Qfunction.txt中的标签[@DiyButton]#ACTSENDMSG 7 包裹按钮自定义通过[@DiyUIBotton]#ACTSENDMSG 7 UI按钮自定义通过
本页面由服务器脚本从原始 DOCX 自动生成。排版如与 Word 略有差异,请以原始 DOCX 为准。