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