项目

一般

简介

行为

道具筛选框组件

模块说明
呼出一个道具筛选框,可自定义行列数
可定义哪些道具出现在筛选框中
点击组件中的按钮,返回选中道具名称列表,以“,”分隔

相关命令
getcanInputItemList
setcanInputItem
getAllInputItem

相关qfunction触发器
[@canInputItemList]
点击筛选框单元格时,单元处于可勾选状态时触发

[@canPutoffItemList]
点击筛选框单元格时,单元处于可取消勾选状态时触发


特戒引擎脚本示例:

[@main]
#act
mov n$打开筛选 1
;--配置置筛选框面板--
;panel:坐标x,坐标y:行,列:边长:选中图(对勾),未选中图(单元格底板):底板:间隔:面板宽,面板高:筛选列表x偏移,筛选列表y偏移
mov s$panel panel:0,0:5,2:100:settings_mark,settings_markbg:ok_di:10:650,400:0,0
 
;--配置置筛选框按钮--
;--button:坐标x,坐标y:图片:文字,颜色,字号
mov s$button button:160,-130:anniu_hui_4zi:放入,250,30
 
;--创建道具筛选框--
;getcanInputItemList 类型(0背包 1身上) 获取的最大数量 面板数据 按钮数据 筛选物品列表id,id,id, qf触发器
mov s$tmp 3,4,5,6,7,2001,
getcanInputItemList 0 10 <$str(s$panel)> <$str(s$button)> <$str(s$tmp)> %{color:green}放入


;--..\Mir200\Envir\Market_Def\QFunction-0.txt--
[@canInputItemList]
#act
setcanInputItem n0 1
print 勾选了<$str(n0)>
%nbsp;
[@canPutoffItemList]
#if
equal n$打开筛选 1
#act
setcanInputItem n0 0
print 取消了<$str(n0)>
 
[@放入]
#act
mov n$打开筛选 0
getAllInputItem s0
messagebox 勾选道具列表:\\<$str(s0)>

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