他也玩传奇 首页 传奇学院 引擎功能 996引擎 查看内容

传奇996引擎版本自定义列表容器参数说明

2023-11-2 17:14| 发布者: 积木GM论坛| 查看: 1293| 评论: 0

摘要: 自定义列表容器(左右滑动,上下滑动)列表容器:ListViewListView|children={1,2}|direction=xx|bounce=xx|margin=xx|-- direction 方向 1竖向 2横向-- bounce 是否弹性 1是 0否-- margin 子控件间隔-- reloa ...
自定义列表容器(左右滑动,上下滑动)
列表容器:<ListView>
<ListView|children={1,2}|direction=xx|bounce=xx|margin=xx|>
-- direction       方向 1竖向 2横向
-- bounce          是否弹性 1是 0否
-- margin          子控件间隔
-- reload          刷新面板=1 不刷新=0  

-- default         索引跳转第几个容器 
-- cantouch        是否可滑动 1默认 0不可

-- 例子:<ListView|children={2,3,4,5,6,7,8,9}|x=33|y=55|width=220|height=440|direction=1|bounce=0|margin=1|reload=0>
-- 我想跳转到第ID:9的容器 default=8 因为children= {2,3,4,5,6,7,8,9}里面的ID:9在第8个顺序
-- loadStep=3      默认加载容器ID层数   写大型界面有卡顿可以3个配合一起使用效果更佳
-- loadCount=4     逐步加载容器ID层数
-- loadDelay=1     是否延迟加载 0=取消延迟 1= 延迟加载并刷新
-- ************************** 
同一脚本ID不可以重复,背景默认ID为1,自己定义ID从2开始
如果容器脚本非常大,导致单页面加载脚本卡,需要用延迟加载功能就不卡了


例子:

[@main]
#IF
#ACT
MOVS$锁定<Img|id=26|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面

[@显示页面]
<Img|bg=1|move=1|reset=0|img=public/1900000610.png>
<Layout|x=775.0|y=1.0|width=80|height=80|link=@exit>
<Button|x=782.0|y=2.0|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
<Img|x=255|y=52|width=2|height=446|img=public/bg_yyxsz_02.png>
<Img|x=270|y=70|img=public/word_sxbt_04.png>
<Img|ax=0|ay=1|x=300.0|y=260.0|width=400|height=120|img=public/bg_hhzy_01_1.png>
<Text|x=363.0|y=400.0|color=255|size=16|text=活动说明:开区一周双倍,开区暴率双倍\活动说明:开区一周双倍,开区暴率双倍\活动说明:开区一周双倍,开区暴率双倍\>
<Img|x=302|y=110|img=public/1900000651.png>
<ItemShow|x=300|y=108|itemid=1|showtips=1|color=1003>
<Img|x=382|y=110|img=public/1900000651.png>
<ItemShow|x=380|y=108|itemid=1|showtips=1>
<Img|x=462|y=110|img=public/1900000651.png>
<ItemShow|x=460|y=108|itemid=1|showtips=1>
<Img|x=542|y=110|img=public/1900000651.png>
<ItemShow|x=540|y=108|itemid=1|showtips=1>
<Img|x=622|y=110|img=public/1900000651.png>
<ItemShow|x=620|y=108|itemid=1|showtips=1>
<Img|x=302|y=180|img=public/1900000651.png>
<ItemShow|x=300|y=178|itemid=1|showtips=1>
<Img|x=382|y=180|img=public/1900000651.png>
<ItemShow|x=380|y=178|itemid=1|showtips=1>
<Img|x=462|y=180|img=public/1900000651.png>
<ItemShow|x=460|y=178|itemid=1|showtips=1>
<Img|x=542|y=180|img=public/1900000651.png>
<ItemShow|x=540|y=178|itemid=1|showtips=1>
<Img|x=622|y=180|img=public/1900000651.png>
<ItemShow|x=619|y=177|itemid=1|showtips=1>

<ListView|children={2,3,4,5,6,7,8,9}|x=33|y=55|width=220|height=440|direction=1|bounce=0|margin=1|reload=0|default=8>

<Img|id=2|children={20}|x=33.0|y=55.0|img=custom/challenge_boss/bg_bosstz_01.png|link=@首领B1>
<Img|id=20|children={21}|x=13|y=10|img=custom/challenge_boss/icon_bosstz_01.png>
<Img|id=21|children={22}||x=2|y=55|img=custom/challenge_boss/bg_bosstz_02.png>
<Text|id=22|children={23}|text=容器案例1|x=110|y=-10|size=18|color=1003>
<Text|id=23|children={24}|text=1/3|x=-90|y=11|size=16|color=255>
<Text|id=24|children={25}|text=等级60|x=100|y=-50|size=16|color=255>
<Img|id=25|children={26}|x=-112|y=5|img=monster_icon/00139.png>

 

<Img|id=3|children={30}|x=33.0|y=150.0|img=custom/challenge_boss/bg_bosstz_01.png|link=@首领B2>
<Img|id=30|children={31}|x=13|y=10|img=custom/challenge_boss/icon_bosstz_01.png>
<Img|id=31|children={32}||x=2|y=55|img=custom/challenge_boss/bg_bosstz_02.png>
<Text|id=32|children={33}|text=容器案例2|x=110|y=-10|size=18|color=1003>
<Text|id=33|children={34}|text=1/3|x=-90|y=11|size=16|color=255>
<Text|id=34|children={35}|text=等级60|x=100|y=-50|size=16|color=255>
<Img|id=35|children={36}|x=-112|y=5|img=monster_icon/00134.png>


<Img|id=4|children={40}|x=33.0|y=150.0|img=custom/challenge_boss/bg_bosstz_01.png|link=@首领B3>
<Img|id=40|children={41}|x=13|y=10|img=custom/challenge_boss/icon_bosstz_01.png>
<Img|id=41|children={42}||x=2|y=55|img=custom/challenge_boss/bg_bosstz_02.png>
<Text|id=42|children={43}|text=容器案例3|x=110|y=-10|size=18|color=1003>
<Text|id=43|children={44}|text=1/3|x=-90|y=11|size=16|color=255>
<Text|id=44|children={45}|text=等级60|x=100|y=-50|size=16|color=255>
<Img|id=45|children={46}|x=-112|y=5|img=monster_icon/00135.png>


<Img|id=5|children={50}|x=33.0|y=150.0|img=custom/challenge_boss/bg_bosstz_01.png|link=@首领B4>
<Img|id=50|children={51}|x=13|y=10|img=custom/challenge_boss/icon_bosstz_01.png>
<Img|id=51|children={52}||x=2|y=55|img=custom/challenge_boss/bg_bosstz_02.png>
<Text|id=52|children={53}|text=容器案例4|x=110|y=-10|size=18|color=1003>
<Text|id=53|children={54}|text=1/3|x=-90|y=11|size=16|color=255>
<Text|id=54|children={55}|text=等级60|x=100|y=-50|size=16|color=255>
<Img|id=55|children={56}|x=-112|y=5|img=monster_icon/00136.png>


<Img|id=6|children={60}|x=33.0|y=150.0|img=custom/challenge_boss/bg_bosstz_01.png|link=@首领B5>
<Img|id=60|children={61}|x=13|y=10|img=custom/challenge_boss/icon_bosstz_01.png>
<Img|id=61|children={62}||x=2|y=55|img=custom/challenge_boss/bg_bosstz_02.png>
<Text|id=62|children={63}|text=容器案例5|x=110|y=-10|size=18|color=1003>
<Text|id=63|children={64}|text=1/3|x=-90|y=11|size=16|color=255>
<Text|id=64|children={65}|text=等级60|x=100|y=-50|size=16|color=255>
<Img|id=65|children={66}|x=-112|y=5|img=monster_icon/00137.png>


<Img|id=7|children={70}|x=33.0|y=150.0|img=custom/challenge_boss/bg_bosstz_01.png|link=@首领B6>
<Img|id=70|children={71}|x=13|y=10|img=custom/challenge_boss/icon_bosstz_01.png>
<Img|id=71|children={72}||x=2|y=55|img=custom/challenge_boss/bg_bosstz_02.png>
<Text|id=72|children={73}|text=容器案例6|x=110|y=-10|size=18|color=1003>
<Text|id=73|children={74}|text=1/3|x=-90|y=11|size=16|color=255>
<Text|id=74|children={75}|text=等级60|x=100|y=-50|size=16|color=255>
<Img|id=75|children={76}|x=-112|y=5|img=monster_icon/00138.png>


<Img|id=8|children={80}|x=33.0|y=150.0|img=custom/challenge_boss/bg_bosstz_01.png|link=@首领B7>
<Img|id=80|children={81}|x=13|y=10|img=custom/challenge_boss/icon_bosstz_01.png>
<Img|id=81|children={82}||x=2|y=55|img=custom/challenge_boss/bg_bosstz_02.png>
<Text|id=82|children={83}|text=容器案例7|x=110|y=-10|size=18|color=1003>
<Text|id=83|children={84}|text=1/3|x=-90|y=11|size=16|color=255>
<Text|id=84|children={85}|text=等级60|x=100|y=-50|size=16|color=255>
<Img|id=85|children={86}|x=-112|y=5|img=monster_icon/00140.png>


<Img|id=9|children={90}|x=33.0|y=150.0|img=custom/challenge_boss/bg_bosstz_01.png|link=@首领B8>
<Img|id=90|children={91}|x=13|y=10|img=custom/challenge_boss/icon_bosstz_01.png>
<Img|id=91|children={92}||x=2|y=55|img=custom/challenge_boss/bg_bosstz_02.png>
<Text|id=92|children={93}|text=容器案例8|x=110|y=-10|size=18|color=1003>
<Text|id=93|children={94}|text=1/3|x=-90|y=11|size=16|color=255>
<Text|id=94|children={95}|text=等级60|x=100|y=-50|size=16|color=255>
<Img|id=95|children={96}|x=-112|y=5|img=monster_icon/00130.png>


<$STR(S$锁定)>


[@首领B1]
#IF
#ACT
MOV S$锁定 <Img|id=26|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面


[@首领B2]
#IF
#ACT
MOV S$锁定 <Img|id=36|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面 
SENDMSG 0 AAAAAAAAAA


[@首领B3]
#IF
#ACT
MOV S$锁定 <Img|id=46|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面

[@首领B4]
#IF
#ACT
MOV S$锁定 <Img|id=56|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面

[@首领B5]
#IF
#ACT
MOVS $锁定 <Img|id=66|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面

[@首领B6]
#IF
#ACT
MOVS$锁定<Img|id=76|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面

[@首领B7]
#IF
#ACT
MOV S$锁定 <Img|id=86|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面

[@首领B8]
#IF
#ACT
MOV S$锁定 <Img|id=96|x=-29|y=-20|width=230|height=90|img=public/1900000678_1.png|scale9b=0|scale9t=10|scale9r=0>
GOTO @显示页面

 

翻页容器示例:

[@main]
<Img|move=0|img=public/bg_npc_01.png|loadDelay=1|bg=1|reset=1|show=0>
<Layout|x=545|y=0|width=80|height=80|link=@exit>
<Button|x=546|y=0|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
<PageView|children={1,3,2}|x=297.0|y=49.0|width=450|height=200|direction=1|color=255>
<Layout|id=1|x=206.0|y=193.0|color=251>
<Layout|id=3|x=361.0|y=349.0|color=254>
<Layout|id=2|x=265.0|y=245.0|color=253>

[@容器跳问题]
<Img|width=380|height=500|img=public/icon_paihangbang_05.png|bg=1|reset=0|move=1>
<Layout|x=340|width=80|height=80|link=@exit>
<Button|x=340|y=20|nimg=publicn_gban_01.png|link=@exit>
<ListView|children={2,3,4,5,6,7,8,9}|x=30|y=50|width=150|height=400|margin=15>
<Button|id=2|ax=0|ay=1|x=0|y=0|width=150|height=55|pimg=public/bg_hhzy_01_3.png|outline=2|nimg=public/bg_hhzy_01_3.png|size=17|mimg=public/bg_hhzy_01_3.png|color=251|text=1111|link=@触发>
<Button|id=3|ax=0|ay=1|x=0|y=0|width=150|height=55|pimg=public/bg_hhzy_01_3.png|outline=2|nimg=public/bg_hhzy_01_3.png|size=17|mimg=public/bg_hhzy_01_3.png|color=251|text=2222|link=@触发>
<Button|id=4|ax=0|ay=1|x=0|y=0|width=150|height=55|pimg=public/bg_hhzy_01_3.png|outline=2|nimg=public/bg_hhzy_01_3.png|size=17|mimg=public/bg_hhzy_01_3.png|color=251|text=333|link=@触发>
<Button|id=5|ax=0|ay=1|x=0|y=0|width=150|height=55|pimg=public/bg_hhzy_01_3.png|outline=2|nimg=public/bg_hhzy_01_3.png|size=17|mimg=public/bg_hhzy_01_3.png|color=251|text=444|link=@触发>
<Button|id=6|ax=0|ay=1|x=0|y=0|width=150|height=55|pimg=public/bg_hhzy_01_3.png|outline=2|nimg=public/bg_hhzy_01_3.png|size=17|mimg=public/bg_hhzy_01_3.png|color=251|text=555|link=@触发>
<Button|id=7|ax=0|ay=1|x=0|y=0|width=150|height=55|pimg=public/bg_hhzy_01_3.png|outline=2|nimg=public/bg_hhzy_01_3.png|size=17|mimg=public/bg_hhzy_01_3.png|color=251|text=666|link=@触发>
<Button|id=8|ax=0|ay=1|x=0|y=0|width=150|height=55|pimg=public/bg_hhzy_01_3.png|outline=2|nimg=public/bg_hhzy_01_3.png|size=17|mimg=public/bg_hhzy_01_3.png|color=251|text=777|link=@触发>
<Button|id=9|ax=0|ay=1|x=0|y=0|width=150|height=55|pimg=public/bg_hhzy_01_3.png|outline=2|nimg=public/bg_hhzy_01_3.png|size=17|mimg=public/bg_hhzy_01_3.png|color=251|text=888|link=@触发>

相关阅读

最新评论