项目

一般

简介

行为

addDlg

主界面左侧边栏添加自定义对话框内容

标签:命令定义|addDlg

格式
命令名 参数1 参数2 参数3 参数4 参数5
addDlg 侧边对话框编号 展示内容 平台类型 标签页图片组 创建或刷新
说明
  • 参数1: 侧边对话框编号
              支持多个左侧边栏自定义对话框
  • 参数2: 展示内容,同一id的左侧边栏自定义对话框,支持两个独立标签页
              格式如下:
              dlg:上方标签页内容文本dlg:下方标签页内容文本
  • 参数3: 平台类型
    • 1 手机
    • 2 PC
  • 参数4: 标签页图片组,格式如下
              标签页1按钮未选中图片,标签页1按钮选中图片,标签页2按钮未选中图片,标签页2按钮选中图片
  • 参数5: 创建或刷新
    • 0 创建新的侧边栏对话框
    • 1 刷新已存在的侧边栏对话框


特戒引擎脚本示例:

使用前提1
请开启配置开关"isUseCustomOKPanel"
配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
配置节点 [tjconfig]
配置项 isUseCustomOkPanel=1
使用前提2
请配置补丁资源"lc",即找到以下配置项,加入 lc
配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
配置节点 [tjconfig]
配置项 patch=aa,bb,lc


[@main]
#act
mov s$dlgUpIni
inc s$dlgUpIni <text:魔神个人页面{fcolor=251}:50:20>
inc s$dlgUpIni <img:settings_jiantou_you:0:4:1:1>
inc s$dlgUpIni <img:settings_jiantou_zuo:220:4:1:1>
inc s$dlgUpIni <text:点击行会页签试试吧{fcolor=103}:12:175>
inc s$dlgUpIni <text:特戒引擎持续更新中{fcolor=103}:12:275>
inc s$dlgUpIni <img:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/@行会魔神介绍>
inc s$dlgUpIni <text:介绍{fcolor=103}:375:185:50:1:20>
inc s$dlgUpIni <img:lc_xiaofei_shuzi_changtai:360:220:1:1/@退出行会魔神>
inc s$dlgUpIni <text:退出{fcolor=103}:375:275:50:1:20>
 
mov s$dlgDownIni
inc s$dlgDownIni <text:魔神行会页面{fcolor=251}:50:20>
inc s$dlgDownIni <img:settings_jiantou_you:0:4:1:1>
inc s$dlgDownIni <img:settings_jiantou_zuo:220:4:1:1>
inc s$dlgDownIni <text:查看介绍时间刷新{fcolor=103}:40:90>
inc s$dlgDownIni <text:~~~<$time>~~~{fcolor=222}:20:130>
inc s$dlgDownIni <text:点击个人页签试试{fcolor=103}:40:175>
inc s$dlgDownIni <text:特戒引擎服务至上{fcolor=103}:40:275>
inc s$dlgDownIni <img:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/@行会魔神介绍>
inc s$dlgDownIni <text:介绍{fcolor=103}:375:185:50:1:20>
inc s$dlgDownIni <img:lc_xiaofei_shuzi_changtai:360:220:1:1/@退出行会魔神>
inc s$dlgDownIni <text:退出{fcolor=103}:375:275:50:1:20>
 
mov s$setPic main_task_geren_02,main_task_geren_01,main_task_hanghui_02,main_task_hanghui_01
 
;--对话框id 对话框内容(以dlg:分割) 平台类型(1:手机 2:PC) 按钮图片组(未选中1,选中1,未选中2,选中2) 创建或刷新(0:创建 1:刷新)--
addDlg 1 dlg:<$str(s$dlgUpIni)>dlg:<$str(s$dlgDownIni)> 1 <$str(s$setPic)> 0
 
 
[@行会魔神介绍]
#say
<text:行会魔神介绍:0:0>
<img:lc_quxiaogenbiao:50:60:1:0.65>
 
#act
mov s$dlgUpRefresh
inc s$dlgUpRefresh <text:魔神行会页面{fcolor=251}:50:20>
inc s$dlgUpRefresh <img:settings_jiantou_you:0:4:1:1>
inc s$dlgUpRefresh <img:settings_jiantou_zuo:220:4:1:1>
inc s$dlgUpRefresh <text:查看介绍时间刷新{fcolor=103}:40:90>
inc s$dlgUpRefresh <text:~~~<$time>~~~{fcolor=222}:20:130>
inc s$dlgUpRefresh <text:点击个人页签试试{fcolor=103}:40:175>
inc s$dlgUpRefresh <text:特戒引擎服务至上{fcolor=103}:40:275>
inc s$dlgUpRefresh <img:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/@行会魔神介绍>
inc s$dlgUpRefresh <text:介绍{fcolor=103}:375:185:50:1:20>
inc s$dlgUpRefresh <img:lc_xiaofei_shuzi_changtai:360:220:1:1/@退出行会魔神>
inc s$dlgUpRefresh <text:退出{fcolor=103}:375:275:50:1:20>
 
addDlg 1 dlg:<$str(s$dlgUpIni)>dlg:<$str(s$dlgUpRefresh)> 1 <$str(s$setPic)> 1
 
[@退出行会魔神]
#act
delDlg 1

yangdefeng 更新于 超过 2 年 之前 · 2 修订