项目

一般

简介

DelRedPointDlg » 历史记录 » 版本 2

yangdefeng, 2022-06-23 08:40

1 2 yangdefeng
h4. _*%{color:green}delRedPointDlg%*_
2
3 1 yangdefeng
删除自定义对话框指定按钮上的红点。
4
5
标签:命令定义|delRedPointDlg
6
7
*格式*
8
|命令名            |参数1    |
9
|delRedPointDlg    |按钮标识 |
10
11
*说明*
12
* 参数1: 按钮标识
13
           格式
14
           按钮文字@/跳转标签
15
16
-
17
-
18
19
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
20
21
*使用前提1*
22
请开启配置开关"isUseCustomOKPanel"
23
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
24
|配置节点|[[tjconfig|[tjconfig]]]			|
25
|配置项  |isUseCustomOkPanel=1				|
26
27
28
*使用前提2*
29
请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc%
30
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
31
|配置节点|[tjconfig]					|
32
|配置项  |patch=aa,bb,lc				|
33
34
-
35
-
36
37 2 yangdefeng
h4. 示例1
38
39 1 yangdefeng
bq. <notextile>[@main]</notextile>
40
#say
41
<[[dlg_text_|text]]:这是可以产生红点的按钮{scolor=248}:0:20>
42
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:80:100:按钮名称/@跳转目标>
43
\ \ \ \ \ \ \ \<notextile><加红点/@加红点></notextile>\ \
44
<notextile><删红点/@删红点></notextile>
45
&nbsp;
46
<notextile>[@加红点]</notextile>
47
#act
48
[[redPointDlg]] <notextile>按钮名称/@跳转目标</notextile> 0 0
49
&nbsp;
50
<notextile>[@删红点]</notextile>
51
#act
52
*{color:green}delRedPointDlg* <notextile>按钮名称/@跳转目标</notextile>
53 2 yangdefeng
54
-
55
-
56
57
h4. 示例2
58
59
bq. [<notextile>@</notextile>main]
60
#say
61
<[[dlg_text_|text]]:这是可以产生红点的按钮{scolor=248}:0:20>
62
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:40:100:按钮1/<notextile>@</notextile>跳转目标(1)>
63
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:200:100:按钮2/<notextile>@</notextile>跳转目标(2)>
64
&nbsp;
65
<[[dlg_text_|text]]:1加红点:0:200/<notextile>@</notextile>加红点(1)>
66
<[[dlg_text_|text]]:1删红点:0:260/<notextile>@</notextile>删红点(1)>
67
<[[dlg_text_|text]]:2加红点:260:200/<notextile>@</notextile>加红点(2)>
68
<[[dlg_text_|text]]:2删红点:260:260/<notextile>@</notextile>删红点(2)>
69
&nbsp;
70
[<notextile>@</notextile>加红点]
71
#act
72
[[redPointDlg]] 按钮[[checkScriptParam|<$scriptParam1>]]/<notextile>@</notextile>跳转目标([[checkScriptParam|<$scriptParam1>]]) 0 0
73
&nbsp;
74
[<notextile>@</notextile>删红点]
75
#act
76
*{color:green}delRedPointDlg* 按钮[[checkScriptParam|<$scriptParam1>]]/<notextile>@</notextile>跳转目标([[checkScriptParam|<$scriptParam1>]])
77
&nbsp;
78
[<notextile>@</notextile>跳转目标]
79
#act
80
[[messageBox]] 跳转成功-->传参为:[[checkScriptParam|<$scriptParam1>]]
81
82
-
83
-
84
85
h4. 示例3
86
87
bq. [<notextile>@</notextile>红点初始]
88
#if
89
[[not]] [[tbl_exist]] tb_xx界面红点
90
#act
91
[[tbl_create_player]] tb_xx界面红点 关键字
92
&nbsp;
93
#if tbl tb_xx界面红点 s$关键字
94
#act
95
[[redPointDlg]] 按钮<$str(s$关键字)>/<notextile>@</notextile>跳转目标(<$str(s$关键字)>) 0 0
96
&nbsp;
97
[<notextile>@</notextile>main]
98
#act
99
goto <notextile>@</notextile>红点初始
100
&nbsp;
101
#say
102
<[[dlg_text_|text]]:这是可以产生红点的按钮{scolor=248}:0:20>
103
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:40:100:按钮1/<notextile>@</notextile>跳转目标(1)>
104
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:200:100:按钮2/<notextile>@</notextile>跳转目标(2)>
105
&nbsp;
106
<[[dlg_text_|text]]:1加红点:0:200/<notextile>@</notextile>加红点(1)>
107
<[[dlg_text_|text]]:1删红点:0:260/<notextile>@</notextile>删红点(1)>
108
<[[dlg_text_|text]]:2加红点:260:200/<notextile>@</notextile>加红点(2)>
109
<[[dlg_text_|text]]:2删红点:260:260/<notextile>@</notextile>删红点(2)>
110
&nbsp;
111
[<notextile>@</notextile>加红点]
112
#act
113
[[redPointDlg]] 按钮<$scriptParam1>/<notextile>@</notextile>跳转目标([[checkScriptParam|<$scriptParam1>]]) 0 0
114
[[tbl_add]] tb_xx界面红点 <$scriptParam1>
115
[[tbl_save]] tb_xx界面红点
116
&nbsp;
117
[<notextile>@</notextile>删红点]
118
#act
119
*{color:green}delRedPointDlg* 按钮<$scriptParam1>/<notextile>@</notextile>跳转目标([[checkScriptParam|<$scriptParam1>]])
120
[[tbl_del]] tb_xx界面红点 <$scriptParam1>
121
[[tbl_save]] tb_xx界面红点
122
&nbsp;
123
[<notextile>@</notextile>跳转目标]
124
#act
125
[[messageBox]] 跳转成功-->传参为:[[checkScriptParam|<$scriptParam1>]]