项目

一般

简介

行为

delRedPointDlg

删除自定义对话框指定按钮上的红点。

标签:命令定义|delRedPointDlg

格式
命令名 参数1
delRedPointDlg 按钮标识
说明
  • 参数1: 按钮标识
              格式
              按钮文字@/跳转标签


特戒引擎脚本示例:

使用前提1
请开启配置开关"isUseCustomOKPanel"
配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
配置节点 [tjconfig]
配置项 isUseCustomOkPanel=1
使用前提2
请配置补丁资源"lc",即找到以下配置项,加入 lc
配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
配置节点 [tjconfig]
配置项 patch=aa,bb,lc


示例1

[@main]
#say
<text:这是可以产生红点的按钮{scolor=248}:0:20>
<imgButton:lc_anniuhui_2zi_xiao:80:100:按钮名称/@跳转目标>
\ \ \ \ \ \ \ \<加红点/@加红点>\ \
<删红点/@删红点>
 
[@加红点]
#act
redPointDlg 按钮名称/@跳转目标 0 0
 
[@删红点]
#act
delRedPointDlg 按钮名称/@跳转目标


示例2

[@main]
#say
<text:这是可以产生红点的按钮{scolor=248}:0:20>
<imgButton:lc_anniuhui_2zi_xiao:40:100:按钮1/@跳转目标(1)>
<imgButton:lc_anniuhui_2zi_xiao:200:100:按钮2/@跳转目标(2)>
 
<text:1加红点:0:200/@加红点(1)>
<text:1删红点:0:260/@删红点(1)>
<text:2加红点:260:200/@加红点(2)>
<text:2删红点:260:260/@删红点(2)>
 
[@加红点]
#act
redPointDlg 按钮<$scriptParam1>/@跳转目标(<$scriptParam1>) 0 0
 
[@删红点]
#act
delRedPointDlg 按钮<$scriptParam1>/@跳转目标(<$scriptParam1>)
 
[@跳转目标]
#act
messageBox 跳转成功-->传参为:<$scriptParam1>


示例3

[@红点初始]
#if
not tbl_exist tb_xx界面红点
#act
tbl_create_player tb_xx界面红点 关键字
 
#if tbl tb_xx界面红点 s$关键字
#act
redPointDlg 按钮<$str(s$关键字)>/@跳转目标(<$str(s$关键字)>) 0 0
 
[@main]
#act
goto @红点初始
 
#say
<text:这是可以产生红点的按钮{scolor=248}:0:20>
<imgButton:lc_anniuhui_2zi_xiao:40:100:按钮1/@跳转目标(1)>
<imgButton:lc_anniuhui_2zi_xiao:200:100:按钮2/@跳转目标(2)>
 
<text:1加红点:0:200/@加红点(1)>
<text:1删红点:0:260/@删红点(1)>
<text:2加红点:260:200/@加红点(2)>
<text:2删红点:260:260/@删红点(2)>
 
[@加红点]
#act
redPointDlg 按钮<$scriptParam1>/@跳转目标(<$scriptParam1>) 0 0
tbl_add tb_xx界面红点 <$scriptParam1>
tbl_save tb_xx界面红点
 
[@删红点]
#act
delRedPointDlg 按钮<$scriptParam1>/@跳转目标(<$scriptParam1>)
tbl_del tb_xx界面红点 <$scriptParam1>
tbl_save tb_xx界面红点
 
[@跳转目标]
#act
messageBox 跳转成功-->传参为:<$scriptParam1>

yangdefeng 更新于 大约 2 年 之前 · 2 修订