【脚本】如何解决容器不闪动问题

脚本中涉及到的相关图片请自行添加,不足之处,请多多指教。

[@功能测试面板]
{
#if
#act
MOV N$索引 1
MOV N$奖励 1

#if
#act
goto @显示面板

[@显示面板]
#if
#act
goto @显示容器
#say
<Img|children={box,line1,line2,list}|x=158.0|y=50.0|esc=1|bg=1|move=1|loadDelay=0|img=public/zdy/fashion/main_from.png|reset=0>
<Img|id=box|x=38.0|y=98.0|img=public/zdy/fashion/back01.png|esc=0>
<Img|id=line1|x=33.0|y=99.0|width=730|height=1|img=public/bg_yyxsz_01.png|esc=0>
<Img|id=line2|x=465.0|y=101.0|width=1|height=400|img=public/bg_yyxsz_02.png|esc=0>
<Layout|x=920.0|y=65.0|width=80|height=80|link=@exit>
<Button|x=920.0|y=65.0|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
<ListView|id=list|children={容器底,}|x=470|y=100|width=292|height=400|direction=1|margin=3|>
<Layout|id=容器底|width=292|height=2400|children={<$str(S$列表子项)>}|>
<$str(S$容器展示)>

[@显示容器]
#if
#act
MOV S$容器展示

#if
#act
MOV S$列表子项
MOV N$索引Id 1
MOV N$Y 0
While <$str(N$索引Id)> < 31
    goto @容器列表展示
EndWhile

[@容器列表展示]
#if
#act
INC S$列表子项 List<$str(N$索引Id)>,
INC S$容器展示 <Img|id=List<$str(N$索引Id)>|children={chioce<$str(N$索引Id)>,文字<$str(N$索引Id)>,状态<$str(N$索引Id)>}|x=1.0|y=<$str(N$Y)>|img=public/imgs/frames/004.png|esc=0|link=@选择#索引=<$str(N$索引Id)>>
INC S$容器展示 <Text|id=文字<$str(N$索引Id)>|x=50|y=20|text=容器实例<$str(N$索引Id)>|color=250|>
INC S$容器展示 <Button|id=状态<$str(N$索引Id)>|x=180|y=20|size=18|color=100|nimg=public/zdy/RolePackage/package_btn01.png|pimg=public/zdy/RolePackage/package_btn01.png|text=领取|link=@领取奖励#物品=<$str(N$索引Id)>>

#if
equal <$str(N$索引)> <$str(N$索引Id)>
#act
INC S$容器展示 <Img|id=chioce<$str(N$索引Id)>|x=0.0|y=0.0|img=public/imgs/frames/010.png|esc=0>

#if
equal <$str(N$奖励)> <$str(N$索引Id)>
#act
INC S$容器展示 <Button|id=状态<$str(N$索引Id)>|x=180|y=20|size=18|color=249|nimg=public/zdy/RolePackage/package_btn01.png|pimg=public/zdy/RolePackage/package_btn01.png|text=已领取>

#if
#act
INC N$索引Id 1
INC N$Y 80

[@选择]
#if
#act
MOV N$索引 <$str(S$索引)>

#if
#act
goto @显示面板

[@领取奖励]
#if
#act
MOV N$奖励 <$str(S$物品)>

#if
#act
goto @显示面板
}

 

THE END