项目

一般

简介

AddDlg » 历史记录 » 版本 2

yangdefeng, 2022-06-21 13:58

1 2 yangdefeng
h4. _*%{color:green}addDlg%*_
2
3 1 machenhe
主界面左侧边栏添加自定义对话框内容
4
5
标签:命令定义|addDlg
6
7
*格式*
8
|_.命令名	|_.参数1	|_.参数2	|_.参数3	|_.参数4	|_.参数5	|
9
|addDlg		|侧边对话框编号	|展示内容	|平台类型	|标签页图片组	|创建或刷新	|
10
11
*说明*
12
* 参数1: 侧边对话框编号
13 2 yangdefeng
           支持多个左侧边栏自定义对话框
14 1 machenhe
15 2 yangdefeng
* 参数2: 展示内容,同一id的左侧边栏自定义对话框,支持两个独立标签页
16
           格式如下:
17
           dlg:上方标签页内容文本dlg:下方标签页内容文本
18 1 machenhe
19
* 参数3: 平台类型
20
** 1 手机
21
** 2 PC
22
23
* 参数4: 标签页图片组,格式如下
24 2 yangdefeng
           标签页1按钮未选中图片,标签页1按钮选中图片,标签页2按钮未选中图片,标签页2按钮选中图片
25 1 machenhe
26
* 参数5: 创建或刷新
27
** 0 创建新的侧边栏对话框
28
** 1 刷新已存在的侧边栏对话框
29 2 yangdefeng
30
31
-
32
-
33
34
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
35
36
*使用前提1*
37
请开启配置开关"isUseCustomOKPanel"
38
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
39
|配置节点|[[tjconfig|[tjconfig]]]			|
40
|配置项  |isUseCustomOkPanel=1				|
41
42
43
*使用前提2*
44
请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc%
45
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
46
|配置节点|[tjconfig]					|
47
|配置项  |patch=aa,bb,lc				|
48
49
-
50
-
51
52
bq. [<notextile>@</notextile>main]
53
#act
54
[[mov]] s$dlgUpIni 
55
[[inc]] s$dlgUpIni <[[dlg_text_|text]]:魔神个人页面{fcolor=251}:50:20>
56
[[inc]] s$dlgUpIni <[[dlg_img_|img]]:settings_jiantou_you:0:4:1:1>
57
[[inc]] s$dlgUpIni <[[dlg_img_|img]]:settings_jiantou_zuo:220:4:1:1>
58
[[inc]] s$dlgUpIni <[[dlg_text_|text]]:点击行会页签试试吧{fcolor=103}:12:175>
59
[[inc]] s$dlgUpIni <[[dlg_text_|text]]:特戒引擎持续更新中{fcolor=103}:12:275>
60
[[inc]] s$dlgUpIni <[[dlg_img_|img]]:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/<notextile>@</notextile>行会魔神介绍>
61
[[inc]] s$dlgUpIni <[[dlg_text_|text]]:介绍{fcolor=103}:375:185:50:1:20>
62
[[inc]] s$dlgUpIni <[[dlg_img_|img]]:lc_xiaofei_shuzi_changtai:360:220:1:1/<notextile>@</notextile>退出行会魔神>
63
[[inc]] s$dlgUpIni <[[dlg_text_|text]]:退出{fcolor=103}:375:275:50:1:20>
64
&nbsp;
65
[[mov]] s$dlgDownIni
66
[[inc]] s$dlgDownIni <[[dlg_text_|text]]:魔神行会页面{fcolor=251}:50:20>
67
[[inc]] s$dlgDownIni <[[dlg_img_|img]]:settings_jiantou_you:0:4:1:1>
68
[[inc]] s$dlgDownIni <[[dlg_img_|img]]:settings_jiantou_zuo:220:4:1:1>
69
[[inc]] s$dlgDownIni <[[dlg_text_|text]]:查看介绍时间刷新{fcolor=103}:40:90>
70
[[inc]] s$dlgDownIni <[[dlg_text_|text]]:<notextile>~~~<$time>~~~</notextile>{fcolor=222}:20:130>
71
[[inc]] s$dlgDownIni <[[dlg_text_|text]]:点击个人页签试试{fcolor=103}:40:175>
72
[[inc]] s$dlgDownIni <[[dlg_text_|text]]:特戒引擎服务至上{fcolor=103}:40:275>
73
[[inc]] s$dlgDownIni <[[dlg_img_|img]]:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/<notextile>@</notextile>行会魔神介绍>
74
[[inc]] s$dlgDownIni <[[dlg_text_|text]]:介绍{fcolor=103}:375:185:50:1:20>
75
[[inc]] s$dlgDownIni <[[dlg_img_|img]]:lc_xiaofei_shuzi_changtai:360:220:1:1/<notextile>@</notextile>退出行会魔神>
76
[[inc]] s$dlgDownIni <[[dlg_text_|text]]:退出{fcolor=103}:375:275:50:1:20>
77
&nbsp;
78
mov s$setPic main_task_geren_02,main_task_geren_01,main_task_hanghui_02,main_task_hanghui_01
79
&nbsp;
80
%{color:lightGrey};--对话框id 对话框内容(以dlg:分割) 平台类型(1:手机 2:PC) 按钮图片组(未选中1,选中1,未选中2,选中2) 创建或刷新(0:创建 1:刷新)--%
81
*{color:green}addDlg* 1 dlg:<$str(s$dlgUpIni)>dlg:<$str(s$dlgDownIni)> 1 <$str(s$setPic)> 0
82
&nbsp;
83
&nbsp;
84
[<notextile>@</notextile>行会魔神介绍]
85
#say
86
<[[dlg_text_|text]]:行会魔神介绍:0:0>
87
<[[dlg_img_|img]]:lc_quxiaogenbiao:50:60:1:0.65>
88
&nbsp;
89
#act
90
[[mov]] s$dlgUpRefresh
91
[[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:魔神行会页面{fcolor=251}:50:20>
92
[[inc]] s$dlgUpRefresh <[[dlg_img_|img]]:settings_jiantou_you:0:4:1:1>
93
[[inc]] s$dlgUpRefresh <[[dlg_img_|img]]:settings_jiantou_zuo:220:4:1:1>
94
[[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:查看介绍时间刷新{fcolor=103}:40:90>
95
[[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:<notextile>~~~<$time>~~~</notextile>{fcolor=222}:20:130>
96
[[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:点击个人页签试试{fcolor=103}:40:175>
97
[[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:特戒引擎服务至上{fcolor=103}:40:275>
98
[[inc]] s$dlgUpRefresh <[[dlg_img_|img]]:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/<notextile>@</notextile>行会魔神介绍>
99
[[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:介绍{fcolor=103}:375:185:50:1:20>
100
[[inc]] s$dlgUpRefresh <[[dlg_img_|img]]:lc_xiaofei_shuzi_changtai:360:220:1:1/<notextile>@</notextile>退出行会魔神>
101
[[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:退出{fcolor=103}:375:275:50:1:20>
102
&nbsp;
103
*{color:green}addDlg* 1 dlg:<$str(s$dlgUpIni)>dlg:<$str(s$dlgUpRefresh)> 1 <$str(s$setPic)> 1
104
&nbsp;
105
[<notextile>@</notextile>退出行会魔神]
106
#act
107
[[delDlg]] 1