项目

一般

简介

RedPointDlg » 历史记录 » 版本 4

tejie, 2025-05-16 13:49

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