Dlg holdBtn » 历史记录 » 修订 5
修订 4 (tejie, 2025-06-16 14:58) → 修订 5/6 (tejie, 2025-09-23 17:56)
h4. _*%{color:green}<holdBtn:%*_ 对话框中放置一个支持长按的按钮,按钮在按下与抬起时,均可发出消息。 标签:命令定义^<holdBtn 标签:命令定义|dlg_holdBtn *格式* |命令名 |参数1 |参数2|参数3|参数4 | |holdBtn|图片资源|X坐标|Y坐标|跳转标识| *说明* |参数1|配置按钮显示图片| |参数2|按钮在对话框中的X坐标| |参数3|按钮在对话框中的Y坐标| |参数4|按下按钮时的跳转标识| |\2. *{color:deepPink}按钮按下时,返回s0=0;按钮抬起时,返回s0=1*| - - h4. *%{color:deepskyblue}特戒引擎脚本示例:%* - - bq. <notextile>[@main]</notextile> #say <notextile><</notextile>*{color:green}holdBtn*:anniu_hui:50:50/<notextile>@</notextile>按钮事件> <notextile></notextile> [<notextile>@</notextile>按钮事件] #if #act [[sendMsg]] 6 输出s0--><$str(s0)> <notextile></notextile> #if [[equal]] s0 0 #act [[print]] 按钮已按下 [[mov]] s$进度条 <text:努力加载中{scolor=248}:355:37> [[inc]] s$进度条 <loadingBar:0:80:20:150:jingyantiao:jingyantiao_01:50:100/<notextile>@</notextile>关闭进度条> [[goto]] <notextile>@</notextile>显示进度条 <notextile></notextile> #if [[equal]] s0 1 #act [[print]] 按钮已抬起 [[goto]] <notextile>@</notextile>关闭进度条 <notextile></notextile> [<notextile>@</notextile>显示进度条] #act [[addUiDlg]] 1 27,5 <$str(s$进度条)> 0,0 0 <notextile></notextile> <notextile>[@关闭进度条]</notextile> #act [[delUiDlg]] 1 27,5 0