Dlg holdBtn » 历史记录 » 版本 1
tejie, 2024-02-18 18:36
| 1 | 1 | tejie | h4. _*%{color:green}<holdBtn:%*_ |
|---|---|---|---|
| 2 | |||
| 3 | 自定义对话框中的长按按钮。 |
||
| 4 | |||
| 5 | 标签:命令定义|dlg_holdBtn>dlg_holdBtn |
||
| 6 | |||
| 7 | *格式* |
||
| 8 | |命令名 |参数1 |参数2 |参数3 |参数4 | |
||
| 9 | |dlg_holdBtn|按钮图片|对话框中x偏移|对话框中y偏移|按下与抬起触发跳转| |
||
| 10 | |||
| 11 | - |
||
| 12 | - |
||
| 13 | |||
| 14 | *说明* |
||
| 15 | * 参数1: 按钮图片 |
||
| 16 | * 参数2: 对话框中的x偏移 |
||
| 17 | * 参数3: 对话框中的y偏移 |
||
| 18 | * 参数4: 按下与抬起触发跳转 |
||
| 19 | * 示例 |
||
| 20 | <holdBtn:img:x:y/@按下,@抬起> |
||
| 21 | |||
| 22 | - |
||
| 23 | - |
||
| 24 | |||
| 25 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 26 | |||
| 27 | - |
||
| 28 | - |
||
| 29 | |||
| 30 | bq. <notextile>[@main]</notextile> |
||
| 31 | #say |
||
| 32 | <notextile><holdBtn:img:x:y/@按下,@抬起></notextile> |
||
| 33 | <notextile></notextile> |
||
| 34 | <notextile>[@按下]</notextile> |
||
| 35 | #act |
||
| 36 | [[print]] 按钮按下了 |
||
| 37 | <notextile></notextile> |
||
| 38 | <notextile>[@抬起]</notextile> |
||
| 39 | #act |
||
| 40 | [[print]] 按钮抬起了 |