PopMenu » 历史记录 » 版本 2
yangdefeng, 2022-06-21 17:28
| 1 | 1 | yangdefeng | h4. _*%{color:green}popMenu%*_ |
|---|---|---|---|
| 2 | |||
| 3 | 主界面呼出一个闪动的按钮,点击按钮弹出按钮列表 |
||
| 4 | 按钮列表中每个按钮,可单独标记显示或隐藏 |
||
| 5 | 如列表中全部标记为隐藏,则闪动按钮也隐藏 |
||
| 6 | 点击列表中的按钮,跳转至qfunction-0.txt触发器 [@popButtonClickX] (X表示按钮跳转id) |
||
| 7 | |||
| 8 | |||
| 9 | 标签:命令定义|checkScriptParam |
||
| 10 | |||
| 11 | *格式* |
||
| 12 | |命令名 |参数1 | |
||
| 13 | |checkScriptParam |按钮列表配置字符串 | |
||
| 14 | |||
| 15 | *说明* |
||
| 16 | * 参数1: 按钮列表配置字符串 |
||
| 17 | ** 背景配置 |
||
| 18 | %{color:lightGrey};--xy偏移相对闪动按钮--% |
||
| 19 | <imgBg:背景图片:x偏移:y偏移> |
||
| 20 | ** 单个按钮配置 |
||
| 21 | %{color:lightGrey};--显隐标记(0隐藏,1显示);跳转id(列表按钮自身序号)--% |
||
| 22 | <popButton:按钮图片:按钮文字:显隐标记/跳转id> |
||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | - |
||
| 27 | - |
||
| 28 | |||
| 29 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 30 | |||
| 31 | 2 | yangdefeng | *使用前提* |
| 32 | 请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc% |
||
| 33 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
| 34 | |配置节点|[tjconfig] | |
||
| 35 | |配置项 |patch=aa,bb,lc | |
||
| 36 | |||
| 37 | 1 | yangdefeng | - |
| 38 | - |
||
| 39 | |||
| 40 | bq. [<notextile>@</notextile>main] |
||
| 41 | #say |
||
| 42 | <呼出popMenu按钮{fcolor=248}>\ \ |
||
| 43 | <隐藏popMenu按钮/<notextile>@</notextile>呼出(0)>\ \ |
||
| 44 | <呼出1个按钮/<notextile>@</notextile>呼出(1)>\ \ |
||
| 45 | <呼出2个按钮/<notextile>@</notextile>呼出(2)>\ \ |
||
| 46 | <呼出3个按钮/<notextile>@</notextile>呼出(3)>\ \ |
||
| 47 | <呼出4个按钮/<notextile>@</notextile>呼出(4)>\ \ |
||
| 48 | <呼出5个按钮/<notextile>@</notextile>呼出(5)>\ \ |
||
| 49 | <呼出6个按钮/<notextile>@</notextile>呼出(6)>\ \ |
||
| 50 | <请点击任意处关闭呼出列表,再切换{fcolor=222}>\ \ |
||
| 51 | |
||
| 52 | [<notextile>@</notextile>呼出] |
||
| 53 | #act |
||
| 54 | [[mov]] n$idx 1 |
||
| 55 | |
||
| 56 | [[loop|#if loop]] 6 |
||
| 57 | #act |
||
| 58 | [[mov]] n$popBtn<$str(n$idx)> 0 |
||
| 59 | [[inc]] n$idx 1 |
||
| 60 | |
||
| 61 | #if |
||
| 62 | #act |
||
| 63 | [[mov]] n$idx 1 |
||
| 64 | |
||
| 65 | [[loop|#if loop]] <$scriptParam1> |
||
| 66 | #act |
||
| 67 | [[mov]] n$popBtn<$str(n$idx)> 1 |
||
| 68 | [[inc]] n$idx 1 |
||
| 69 | |
||
| 70 | |
||
| 71 | #if |
||
| 72 | #act |
||
| 73 | %{color:lightGrey};--弹出菜单底板设定--% |
||
| 74 | [[mov]] s$弹出菜单 <imgBg:lc_ok_di:0:0> |
||
| 75 | |
||
| 76 | %{color:lightGrey};--弹出按钮设定--% |
||
| 77 | [[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:装备强星:<$str(n$popBtn1)>/1> |
||
| 78 | [[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:合成提升:<$str(n$popBtn2)>/2> |
||
| 79 | [[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:血魔圣体:<$str(n$popBtn3)>/3> |
||
| 80 | [[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:金钢神体:<$str(n$popBtn4)>/4> |
||
| 81 | [[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:免费赞助:<$str(n$popBtn5)>/5> |
||
| 82 | [[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:免费赞助2:<$str(n$popBtn6)>/6> |
||
| 83 | |
||
| 84 | *{color:green}popMenu* s$弹出菜单 |
||
| 85 | |||
| 86 | - |
||
| 87 | - |
||
| 88 | |||
| 89 | bq. %{color:orange}触发器配置 |
||
| 90 | ..\Mir200\Envir\Market_Def\QFunction-0.txt% |
||
| 91 | |
||
| 92 | [<notextile>@</notextile>popButtonClick1] |
||
| 93 | #act |
||
| 94 | messageBox hello-->弹出1 |
||
| 95 | |
||
| 96 | [<notextile>@</notextile>popButtonClick2] |
||
| 97 | #act |
||
| 98 | messageBox hello-->弹出2 |
||
| 99 | |
||
| 100 | [<notextile>@</notextile>popButtonClick3] |
||
| 101 | #act |
||
| 102 | messageBox hello-->弹出3 |
||
| 103 | |
||
| 104 | [<notextile>@</notextile>popButtonClick4] |
||
| 105 | #act |
||
| 106 | messageBox hello-->弹出4 |
||
| 107 | |
||
| 108 | [<notextile>@</notextile>popButtonClick5] |
||
| 109 | #act |
||
| 110 | messageBox hello-->弹出5 |
||
| 111 | |
||
| 112 | [<notextile>@</notextile>popButtonClick6] |
||
| 113 | #act |
||
| 114 | messageBox hello-->弹出6 |