RedPointDlg » 历史记录 » 修订 3
修订 2 (yangdefeng, 2022-06-23 08:40) → 修订 3/5 (tejie, 2025-03-17 18:37)
h4. _*%{color:green}redPointDlg%*_
自定义对话框指定按钮上加红点,提示玩家点击。
标签:命令定义|redPointDlg
*格式*
|命令名 |参数1 |参数2 |参数3 |
|redPointDlg |按钮标识 |x坐标 |y坐标 |
*说明*
|^.参数1|按钮标识
* 参数1: 按钮标识
格式
按钮文字@/跳转标签|
|参数2|红点在按钮上的x坐标,0点为按钮右上角|
|参数3|红点在按钮上的y坐标,0点为按钮右上角|
按钮文字@/跳转标签
* 参数2: 红点在按钮上的x坐标,0点为按钮右上角
* 参数3: 红点在按钮上的y坐标,0点为按钮右上角
-
-
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
*使用前提1*
请开启配置开关"isUseCustomOKPanel"
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt |
|配置节点|[[tjconfig|[tjconfig]]] |
|配置项 |isUseCustomOkPanel=1 |
*使用前提2*
请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc%
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt |
|配置节点|[tjconfig] |
|配置项 |patch=aa,bb,lc |
-
-
h4. 示例1
bq. <notextile>[@main]</notextile>
#say
<[[dlg_text_|text]]:这是可以产生红点的按钮{scolor=248}:0:20>
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:80:100:按钮名称/@跳转目标>
\ \ \ \ \ \ \ \<notextile><加红点/@加红点></notextile>\ \
<notextile><删红点/@删红点></notextile>
<notextile>[@加红点]</notextile>
#act
*{color:green}redPointDlg* <notextile>按钮名称/@跳转目标</notextile> 0 0
<notextile>[@删红点]</notextile>
#act
[[delRedPointDlg]] <notextile>按钮名称/@跳转目标</notextile>
-
-
h4. 示例2
bq. [<notextile>@</notextile>main]
#say
<[[dlg_text_|text]]:这是可以产生红点的按钮{scolor=248}:0:20>
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:40:100:按钮1/<notextile>@</notextile>跳转目标(1)>
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:200:100:按钮2/<notextile>@</notextile>跳转目标(2)>
<[[dlg_text_|text]]:1加红点:0:200/<notextile>@</notextile>加红点(1)>
<[[dlg_text_|text]]:1删红点:0:260/<notextile>@</notextile>删红点(1)>
<[[dlg_text_|text]]:2加红点:260:200/<notextile>@</notextile>加红点(2)>
<[[dlg_text_|text]]:2删红点:260:260/<notextile>@</notextile>删红点(2)>
[<notextile>@</notextile>加红点]
#act
*{color:green}redPointDlg* 按钮[[checkScriptParam|<$scriptParam1>]]/<notextile>@</notextile>跳转目标([[checkScriptParam|<$scriptParam1>]]) 0 0
[<notextile>@</notextile>删红点]
#act
[[delRedPointDlg]] 按钮[[checkScriptParam|<$scriptParam1>]]/<notextile>@</notextile>跳转目标([[checkScriptParam|<$scriptParam1>]])
[<notextile>@</notextile>跳转目标]
#act
[[messageBox]] 跳转成功-->传参为:[[checkScriptParam|<$scriptParam1>]]
-
-
h4. 示例3
bq. [<notextile>@</notextile>红点初始]
#if
[[not]] [[tbl_exist]] tb_xx界面红点
#act
[[tbl_create_player]] tb_xx界面红点 关键字
#if tbl tb_xx界面红点 s$关键字
#act
*{color:green}redPointDlg* 按钮<$str(s$关键字)>/<notextile>@</notextile>跳转目标(<$str(s$关键字)>) 0 0
[<notextile>@</notextile>main]
#act
goto <notextile>@</notextile>红点初始
#say
<[[dlg_text_|text]]:这是可以产生红点的按钮{scolor=248}:0:20>
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:40:100:按钮1/<notextile>@</notextile>跳转目标(1)>
<[[dlg_imgButton_|imgButton]]:lc_anniuhui_2zi_xiao:200:100:按钮2/<notextile>@</notextile>跳转目标(2)>
<[[dlg_text_|text]]:1加红点:0:200/<notextile>@</notextile>加红点(1)>
<[[dlg_text_|text]]:1删红点:0:260/<notextile>@</notextile>删红点(1)>
<[[dlg_text_|text]]:2加红点:260:200/<notextile>@</notextile>加红点(2)>
<[[dlg_text_|text]]:2删红点:260:260/<notextile>@</notextile>删红点(2)>
[<notextile>@</notextile>加红点]
#act
*{color:green}redPointDlg* 按钮<$scriptParam1>/<notextile>@</notextile>跳转目标([[checkScriptParam|<$scriptParam1>]]) 0 0
[[tbl_add]] tb_xx界面红点 <$scriptParam1>
[[tbl_save]] tb_xx界面红点
[<notextile>@</notextile>删红点]
#act
[[delRedPointDlg]] 按钮<$scriptParam1>/<notextile>@</notextile>跳转目标([[checkScriptParam|<$scriptParam1>]])
[[tbl_del]] tb_xx界面红点 <$scriptParam1>
[[tbl_save]] tb_xx界面红点
[<notextile>@</notextile>跳转目标]
#act
[[messageBox]] 跳转成功-->传参为:[[checkScriptParam|<$scriptParam1>]]