按钮组效果示例 » 历史记录 » 版本 5
tejie, 2026-01-07 14:02
| 1 | 1 | tejie | h3. 按钮组效果示例 |
|---|---|---|---|
| 2 | |||
| 3 | 通过<notextile></notextile>_*{color:green}itemGrid*_<notextile></notextile>组件,创建按钮组,实现按钮组的动态展开与收起。 |
||
| 4 | |||
| 5 | 5 | tejie | 标签:^按钮组 |
| 6 | |||
| 7 | 1 | tejie | - |
| 8 | - |
||
| 9 | |||
| 10 | 2 | tejie | h4. %{color:fireBrick}相关命令% |
| 11 | |||
| 12 | |^. _*{color:green}<itemGrid:*_ |
||
| 13 | 对于[[addUiDlg]]命令 |
||
| 14 | 参数3支持附加参数 |
||
| 15 | |参数3 x坐标,追加附件参数滑动方向和滑动时间 |
||
| 16 | 格式: |
||
| 17 | x坐标,滑动方向,滑动时间 |
||
| 18 | <notextile></notextile> |
||
| 19 | *滑动方向* |
||
| 20 | 1 向左滑入 |
||
| 21 | 2 向右滑入 |
||
| 22 | 3 向上滑入 |
||
| 23 | 4 向下滑入 |
||
| 24 | *滑入时间* |
||
| 25 | 单位 秒 |
||
| 26 | 支持小数 比如 1.5| |
||
| 27 | |||
| 28 | 3 | tejie | - |
| 29 | - |
||
| 30 | |||
| 31 | 2 | tejie | _*{color:green}delDlgList*_ |
| 32 | 1 | tejie | |
| 33 | 3 | tejie | 销毁[[addUiDlg]]命令中指定的itemGrid,支持多种销毁动画过程。 |
| 34 | 2 | tejie | |
| 35 | |||
| 36 | |||
| 37 | *格式* |
||
| 38 | |命令名 |参数1 |参数2 |参数3 |参数4 |参数5 |参数6 | |
||
| 39 | |delDlgList |对话框id|界面id|平台类型 |列表名称|销毁模式|动画时间| |
||
| 40 | |||
| 41 | - |
||
| 42 | - |
||
| 43 | |||
| 44 | *说明* |
||
| 45 | |^.参数1|对话框id |
||
| 46 | addUiDlg命令添加的对话框id| |
||
| 47 | |^.参数2|界面id及子界面id| |
||
| 48 | |^.参数3|平台类型 |
||
| 49 | 0 手机 |
||
| 50 | 1 PC| |
||
| 51 | |^.参数4|列表名称 |
||
| 52 | 需要销毁的列表名称| |
||
| 53 | |^.参数5|销毁动画 |
||
| 54 | 1 向左滑出 |
||
| 55 | 2 向右滑出 |
||
| 56 | 3 向上滑出 |
||
| 57 | 4 向下滑出| |
||
| 58 | |^.参数6|动画时间 单位秒 |
||
| 59 | 支持小数 比如 0.5| |
||
| 60 | |||
| 61 | - |
||
| 62 | - |
||
| 63 | |||
| 64 | 1 | tejie | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
| 65 | |||
| 66 | 4 | tejie | 图片资源 ui_alpha0 |
| 67 | 需要引用 vm/_sys/ui12 v2/_sys/ui12 |
||
| 68 | |||
| 69 | 1 | tejie | bq. <notextile>[@main]</notextile> |
| 70 | #say |
||
| 71 | <notextile><加按钮列表3/@加按钮列表3></notextile>\ \ |
||
| 72 | <notextile></notextile> |
||
| 73 | <notextile>[@加按钮列表3]</notextile> |
||
| 74 | #act |
||
| 75 | <notextile>goto @item初始化3</notextile> |
||
| 76 | [[addUiDlg]] 3 27,4 <$str(s2)> 0,0 0 |
||
| 77 | <notextile></notextile> |
||
| 78 | <notextile>[@item初始化3]</notextile> |
||
| 79 | #act |
||
| 80 | [[mov]] s$item |
||
| 81 | [[inc]] s$item (<itemIndex:1> |
||
| 82 | [[inc]] s$item <itemToggle:ui_alpha0:ui_alpha0> |
||
| 83 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@1</notextile>> |
||
| 84 | [[inc]] s$item <text:按钮1{fColor=254}:55:105>) |
||
| 85 | <notextile></notextile> |
||
| 86 | [[inc]] s$item (<itemindex:2> |
||
| 87 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
| 88 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@2</notextile>> |
||
| 89 | [[inc]] s$item <text:按钮2{fColor=254}:55:105>) |
||
| 90 | <notextile></notextile> |
||
| 91 | [[inc]] s$item (<itemindex:3> |
||
| 92 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
| 93 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@3</notextile>> |
||
| 94 | [[inc]] s$item <text:按钮3{fColor=254}:55:105>) |
||
| 95 | <notextile></notextile> |
||
| 96 | [[inc]] s$item (<itemindex:4> |
||
| 97 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
| 98 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@4</notextile>> |
||
| 99 | [[inc]] s$item <text:按钮4{fColor=254}:55:105>) |
||
| 100 | <notextile></notextile> |
||
| 101 | [[mov]] s2 <img:mianfeivip:0:0:1:1/<notextile>@关闭3</notextile>>\ |
||
| 102 | [[inc]] s2 <text:关闭{fColor=254}:25:80>\ |
||
| 103 | [[inc]] s2 <<notextile></notextile>*{color:green}itemGrid*<notextile></notextile>:<$str(s$item)>:按钮列表x,1,0,1:125,2,1.5:0:125,125,1:1,4,150,1:0>\ |
||
| 104 | <notextile></notextile> |
||
| 105 | <notextile>[@关闭3]</notextile> |
||
| 106 | #act |
||
| 107 | *{color:green}delDlgList* 3 27,4 0 按钮列表x 1 1.5 |
||
| 108 | <notextile></notextile> |
||
| 109 | [[mov]] s2 <img:mianfeivip:0:0:1:1/@加按钮列表3> |
||
| 110 | [[inc]] s2 <text:展开{fColor=254}:25:80> |
||
| 111 | [[delaygoto]] 1500 <notextile>@关闭按钮组</notextile> |
||
| 112 | <notextile></notextile> |
||
| 113 | <notextile>[@关闭按钮组]</notextile> |
||
| 114 | #act |
||
| 115 | [[addUiDlg]] 3 27,4 <$str(s2)> 0,0 0 |