Dlg holdBtn » 历史记录 » 版本 5
tejie, 2025-09-23 17:56
| 1 | 1 | tejie | h4. _*%{color:green}<holdBtn:%*_ |
|---|---|---|---|
| 2 | |||
| 3 | 3 | tejie | 对话框中放置一个支持长按的按钮,按钮在按下与抬起时,均可发出消息。 |
| 4 | 1 | tejie | |
| 5 | 5 | tejie | 标签:命令定义^<holdBtn |
| 6 | 1 | tejie | |
| 7 | *格式* |
||
| 8 | 3 | tejie | |命令名 |参数1 |参数2|参数3|参数4 | |
| 9 | |holdBtn|图片资源|X坐标|Y坐标|跳转标识| |
||
| 10 | 1 | tejie | |
| 11 | *说明* |
||
| 12 | 4 | tejie | |参数1|配置按钮显示图片| |
| 13 | |参数2|按钮在对话框中的X坐标| |
||
| 14 | |参数3|按钮在对话框中的Y坐标| |
||
| 15 | |参数4|按下按钮时的跳转标识| |
||
| 16 | |\2. *{color:deepPink}按钮按下时,返回s0=0;按钮抬起时,返回s0=1*| |
||
| 17 | 3 | tejie | |
| 18 | 1 | tejie | - |
| 19 | - |
||
| 20 | |||
| 21 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 22 | |||
| 23 | - |
||
| 24 | - |
||
| 25 | |||
| 26 | bq. <notextile>[@main]</notextile> |
||
| 27 | #say |
||
| 28 | 3 | tejie | <notextile><</notextile>*{color:green}holdBtn*:anniu_hui:50:50/<notextile>@</notextile>按钮事件> |
| 29 | 1 | tejie | <notextile></notextile> |
| 30 | 3 | tejie | [<notextile>@</notextile>按钮事件] |
| 31 | #if |
||
| 32 | 1 | tejie | #act |
| 33 | 3 | tejie | [[sendMsg]] 6 输出s0--><$str(s0)> |
| 34 | 1 | tejie | <notextile></notextile> |
| 35 | 3 | tejie | #if |
| 36 | [[equal]] s0 0 |
||
| 37 | 1 | tejie | #act |
| 38 | 3 | tejie | [[print]] 按钮已按下 |
| 39 | [[mov]] s$进度条 <text:努力加载中{scolor=248}:355:37> |
||
| 40 | [[inc]] s$进度条 <loadingBar:0:80:20:150:jingyantiao:jingyantiao_01:50:100/<notextile>@</notextile>关闭进度条> |
||
| 41 | [[goto]] <notextile>@</notextile>显示进度条 |
||
| 42 | <notextile></notextile> |
||
| 43 | #if |
||
| 44 | [[equal]] s0 1 |
||
| 45 | #act |
||
| 46 | [[print]] 按钮已抬起 |
||
| 47 | [[goto]] <notextile>@</notextile>关闭进度条 |
||
| 48 | <notextile></notextile> |
||
| 49 | [<notextile>@</notextile>显示进度条] |
||
| 50 | #act |
||
| 51 | [[addUiDlg]] 1 27,5 <$str(s$进度条)> 0,0 0 |
||
| 52 | <notextile></notextile> |
||
| 53 | <notextile>[@关闭进度条]</notextile> |
||
| 54 | #act |
||
| 55 | [[delUiDlg]] 1 27,5 0 |