按钮组效果示例 » 历史记录 » 版本 1
tejie, 2025-01-07 10:41
| 1 | 1 | tejie | h3. 按钮组效果示例 |
|---|---|---|---|
| 2 | |||
| 3 | 通过<notextile></notextile>_*{color:green}itemGrid*_<notextile></notextile>组件,创建按钮组,实现按钮组的动态展开与收起。 |
||
| 4 | |||
| 5 | - |
||
| 6 | - |
||
| 7 | |||
| 8 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 9 | |||
| 10 | bq. <notextile>[@main]</notextile> |
||
| 11 | #say |
||
| 12 | <notextile><加按钮列表3/@加按钮列表3></notextile>\ \ |
||
| 13 | <notextile></notextile> |
||
| 14 | <notextile>[@加按钮列表3]</notextile> |
||
| 15 | #act |
||
| 16 | <notextile>goto @item初始化3</notextile> |
||
| 17 | [[addUiDlg]] 3 27,4 <$str(s2)> 0,0 0 |
||
| 18 | <notextile></notextile> |
||
| 19 | <notextile>[@item初始化3]</notextile> |
||
| 20 | #act |
||
| 21 | [[mov]] s$item |
||
| 22 | [[inc]] s$item (<itemIndex:1> |
||
| 23 | [[inc]] s$item <itemToggle:ui_alpha0:ui_alpha0> |
||
| 24 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@1</notextile>> |
||
| 25 | [[inc]] s$item <text:按钮1{fColor=254}:55:105>) |
||
| 26 | <notextile></notextile> |
||
| 27 | [[inc]] s$item (<itemindex:2> |
||
| 28 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
| 29 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@2</notextile>> |
||
| 30 | [[inc]] s$item <text:按钮2{fColor=254}:55:105>) |
||
| 31 | <notextile></notextile> |
||
| 32 | [[inc]] s$item (<itemindex:3> |
||
| 33 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
| 34 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@3</notextile>> |
||
| 35 | [[inc]] s$item <text:按钮3{fColor=254}:55:105>) |
||
| 36 | <notextile></notextile> |
||
| 37 | [[inc]] s$item (<itemindex:4> |
||
| 38 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
| 39 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@4</notextile>> |
||
| 40 | [[inc]] s$item <text:按钮4{fColor=254}:55:105>) |
||
| 41 | <notextile></notextile> |
||
| 42 | [[mov]] s2 <img:mianfeivip:0:0:1:1/<notextile>@关闭3</notextile>>\ |
||
| 43 | [[inc]] s2 <text:关闭{fColor=254}:25:80>\ |
||
| 44 | [[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>\ |
||
| 45 | <notextile></notextile> |
||
| 46 | <notextile>[@关闭3]</notextile> |
||
| 47 | #act |
||
| 48 | *{color:green}delDlgList* 3 27,4 0 按钮列表x 1 1.5 |
||
| 49 | <notextile></notextile> |
||
| 50 | [[mov]] s2 <img:mianfeivip:0:0:1:1/@加按钮列表3> |
||
| 51 | [[inc]] s2 <text:展开{fColor=254}:25:80> |
||
| 52 | [[delaygoto]] 1500 <notextile>@关闭按钮组</notextile> |
||
| 53 | <notextile></notextile> |
||
| 54 | <notextile>[@关闭按钮组]</notextile> |
||
| 55 | #act |
||
| 56 | [[addUiDlg]] 3 27,4 <$str(s2)> 0,0 0 |