项目

一般

简介

行为

popMenu

主界面呼出一个闪动的按钮,点击按钮弹出按钮列表
按钮列表中每个按钮,可单独标记显示或隐藏
如列表中全部标记为隐藏,则闪动按钮也隐藏
点击列表中的按钮,跳转至qfunction-0.txt触发器 [@popButtonClickX] (X表示按钮跳转id)

标签:命令定义|popMenu

格式
命令名 参数1
popMenu 按钮列表配置字符串
说明
  • 参数1: 按钮列表配置字符串
    • 背景配置
      ;--xy偏移相对闪动按钮--
      <imgBg:背景图片:x偏移:y偏移>
    • 单个按钮配置
      ;--显隐标记(0隐藏,1显示);跳转id(列表按钮自身序号)--
      <popButton:按钮图片:按钮文字:显隐标记/跳转id>


特戒引擎脚本示例:

使用前提
请配置补丁资源"lc",即找到以下配置项,加入 lc
配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
配置节点 [tjconfig]
配置项 patch=aa,bb,lc


[@main]
#say
<呼出popMenu按钮{fcolor=248}>\ \
<隐藏popMenu按钮/@呼出(0)>\ \
<呼出1个按钮/@呼出(1)>\ \
<呼出2个按钮/@呼出(2)>\ \
<呼出3个按钮/@呼出(3)>\ \
<呼出4个按钮/@呼出(4)>\ \
<呼出5个按钮/@呼出(5)>\ \
<呼出6个按钮/@呼出(6)>\ \
<请点击任意处关闭呼出列表,再切换{fcolor=222}>\ \
 
[@呼出]
#act
mov n$idx 1
 
#if loop 6
#act
mov n$popBtn<$str(n$idx)> 0
inc n$idx 1
 
#if
#act
mov n$idx 1
 
#if loop <$scriptParam1>
#act
mov n$popBtn<$str(n$idx)> 1
inc n$idx 1
 
 
#if
#act
;--弹出菜单底板设定--
mov s$弹出菜单 <imgBg:lc_ok_di:0:0>
 
;--弹出按钮设定--
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>
 
popMenu s$弹出菜单


触发器配置
..\Mir200\Envir\Market_Def\QFunction-0.txt

 
[@popButtonClick1]
#act
messageBox hello-->弹出1
 
[@popButtonClick2]
#act
messageBox hello-->弹出2
 
[@popButtonClick3]
#act
messageBox hello-->弹出3
 
[@popButtonClick4]
#act
messageBox hello-->弹出4
 
[@popButtonClick5]
#act
messageBox hello-->弹出5
 
[@popButtonClick6]
#act
messageBox hello-->弹出6

yangdefeng 更新于 大约 2 年 之前 · 3 修订