项目

一般

简介

RedPointDlg » 历史记录 » 版本 2

yangdefeng, 2022-06-23 08:40

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