PopMenu » 历史记录 » 修订 2
修订 1 (yangdefeng, 2022-06-21 17:15) → 修订 2/3 (yangdefeng, 2022-06-21 17:28)
h4. _*%{color:green}popMenu%*_
主界面呼出一个闪动的按钮,点击按钮弹出按钮列表
按钮列表中每个按钮,可单独标记显示或隐藏
如列表中全部标记为隐藏,则闪动按钮也隐藏
点击列表中的按钮,跳转至qfunction-0.txt触发器 [@popButtonClickX] (X表示按钮跳转id)
标签:命令定义|checkScriptParam
*格式*
|命令名 |参数1 |
|checkScriptParam |按钮列表配置字符串 |
*说明*
* 参数1: 按钮列表配置字符串
** 背景配置
%{color:lightGrey};--xy偏移相对闪动按钮--%
<imgBg:背景图片:x偏移:y偏移>
** 单个按钮配置
%{color:lightGrey};--显隐标记(0隐藏,1显示);跳转id(列表按钮自身序号)--%
<popButton:按钮图片:按钮文字:显隐标记/跳转id>
-
-
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
*使用前提*
请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc%
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt |
|配置节点|[tjconfig] |
|配置项 |patch=aa,bb,lc |
-
-
bq. [<notextile>@</notextile>main]
#say
<呼出popMenu按钮{fcolor=248}>\ \
<隐藏popMenu按钮/<notextile>@</notextile>呼出(0)>\ \
<呼出1个按钮/<notextile>@</notextile>呼出(1)>\ \
<呼出2个按钮/<notextile>@</notextile>呼出(2)>\ \
<呼出3个按钮/<notextile>@</notextile>呼出(3)>\ \
<呼出4个按钮/<notextile>@</notextile>呼出(4)>\ \
<呼出5个按钮/<notextile>@</notextile>呼出(5)>\ \
<呼出6个按钮/<notextile>@</notextile>呼出(6)>\ \
<请点击任意处关闭呼出列表,再切换{fcolor=222}>\ \
[<notextile>@</notextile>呼出]
#act
[[mov]] n$idx 1
[[loop|#if loop]] 6
#act
[[mov]] n$popBtn<$str(n$idx)> 0
[[inc]] n$idx 1
#if
#act
[[mov]] n$idx 1
[[loop|#if loop]] <$scriptParam1>
#act
[[mov]] n$popBtn<$str(n$idx)> 1
[[inc]] n$idx 1
#if
#act
%{color:lightGrey};--弹出菜单底板设定--%
[[mov]] s$弹出菜单 <imgBg:lc_ok_di:0:0>
%{color:lightGrey};--弹出按钮设定--%
[[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:装备强星:<$str(n$popBtn1)>/1>
[[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:合成提升:<$str(n$popBtn2)>/2>
[[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:血魔圣体:<$str(n$popBtn3)>/3>
[[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:金钢神体:<$str(n$popBtn4)>/4>
[[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:免费赞助:<$str(n$popBtn5)>/5>
[[inc]] s$弹出菜单 <popButton:lc_anniuhui_4zi_da:免费赞助2:<$str(n$popBtn6)>/6>
*{color:green}popMenu* s$弹出菜单
-
-
bq. %{color:orange}触发器配置
..\Mir200\Envir\Market_Def\QFunction-0.txt%
[<notextile>@</notextile>popButtonClick1]
#act
messageBox hello-->弹出1
[<notextile>@</notextile>popButtonClick2]
#act
messageBox hello-->弹出2
[<notextile>@</notextile>popButtonClick3]
#act
messageBox hello-->弹出3
[<notextile>@</notextile>popButtonClick4]
#act
messageBox hello-->弹出4
[<notextile>@</notextile>popButtonClick5]
#act
messageBox hello-->弹出5
[<notextile>@</notextile>popButtonClick6]
#act
messageBox hello-->弹出6