项目

一般

简介

RedPointDlg » 历史记录 » 版本 3

tejie, 2025-03-17 18:37

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