按钮组效果示例 » 历史记录 » 版本 3
tejie, 2025-01-07 10:53
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 | bq. <notextile>[@main]</notextile> |
||
65 | #say |
||
66 | <notextile><加按钮列表3/@加按钮列表3></notextile>\ \ |
||
67 | <notextile></notextile> |
||
68 | <notextile>[@加按钮列表3]</notextile> |
||
69 | #act |
||
70 | <notextile>goto @item初始化3</notextile> |
||
71 | [[addUiDlg]] 3 27,4 <$str(s2)> 0,0 0 |
||
72 | <notextile></notextile> |
||
73 | <notextile>[@item初始化3]</notextile> |
||
74 | #act |
||
75 | [[mov]] s$item |
||
76 | [[inc]] s$item (<itemIndex:1> |
||
77 | [[inc]] s$item <itemToggle:ui_alpha0:ui_alpha0> |
||
78 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@1</notextile>> |
||
79 | [[inc]] s$item <text:按钮1{fColor=254}:55:105>) |
||
80 | <notextile></notextile> |
||
81 | [[inc]] s$item (<itemindex:2> |
||
82 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
83 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@2</notextile>> |
||
84 | [[inc]] s$item <text:按钮2{fColor=254}:55:105>) |
||
85 | <notextile></notextile> |
||
86 | [[inc]] s$item (<itemindex:3> |
||
87 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
88 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@3</notextile>> |
||
89 | [[inc]] s$item <text:按钮3{fColor=254}:55:105>) |
||
90 | <notextile></notextile> |
||
91 | [[inc]] s$item (<itemindex:4> |
||
92 | [[inc]] s$item <itemtoggle:ui_alpha0:ui_alpha0> |
||
93 | [[inc]] s$item <img:mianfeivip:25:25:1:<notextile>1/@4</notextile>> |
||
94 | [[inc]] s$item <text:按钮4{fColor=254}:55:105>) |
||
95 | <notextile></notextile> |
||
96 | [[mov]] s2 <img:mianfeivip:0:0:1:1/<notextile>@关闭3</notextile>>\ |
||
97 | [[inc]] s2 <text:关闭{fColor=254}:25:80>\ |
||
98 | [[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>\ |
||
99 | <notextile></notextile> |
||
100 | <notextile>[@关闭3]</notextile> |
||
101 | #act |
||
102 | *{color:green}delDlgList* 3 27,4 0 按钮列表x 1 1.5 |
||
103 | <notextile></notextile> |
||
104 | [[mov]] s2 <img:mianfeivip:0:0:1:1/@加按钮列表3> |
||
105 | [[inc]] s2 <text:展开{fColor=254}:25:80> |
||
106 | [[delaygoto]] 1500 <notextile>@关闭按钮组</notextile> |
||
107 | <notextile></notextile> |
||
108 | <notextile>[@关闭按钮组]</notextile> |
||
109 | #act |
||
110 | [[addUiDlg]] 3 27,4 <$str(s2)> 0,0 0 |