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