利用npc自定义排版 模拟一个装备Tips
本帖最后由 996传世-小黑 于 2021-12-28 15:54 编辑利用自定义npc排版模拟一个装备Tips
可以实现类似二级 三级...界面
[@DiyTips]
<Layout|ax=0.5|ay=0.5|percentx=50|percenty=50|percentwidth=100|percentheight=100|link=@eExit>
<Img|children={titlebg,title,tipsbg,closetips,sbtn1,ecell_0,tipsframe}|ax=0.5|ay=1|percentx=50|percenty=0|loadDelay=0|bg=1|reset=1|img=7/e/bg.png>
<Img|id=titlebg|x=74.0|y=16.0|img=7/e/titlebg.png>
<RText|id=title|x=187.0|y=11.0|height=26|size=18|text=<装 备/FCOLOR=243>>
<Img|id=tipsbg|x=6.0|y=67.0|width=400|height=398|img=7/e/tipsbg.png>
<Layout|id=closetips|ax=0.5|ay=0.5|percentx=50|percenty=50|percentwidth=100|percentheight=100|link=@eCloseTips>
<Button|id=sbtn1|x=397.0|y=41.0|pimg=7/e/sp.png|mimg=7/e/sp1.png|size=18|nimg=7/e/sp1.png|link=@DiyTips>
<Layout|id=ecell_0|children={eItem}|x=300|y=255|width=40|height=40>
<ItemShow|id=eItem|ax=0.5|ay=0.5|percentx=50|percenty=50|itemid=98|showtips=1|link=@eViewTips&4>
#IF
Equal $STR(N$eViewTips) 4
#SAY
<Layout|id=tipsframe|children=<tipsblend,tipsb,ebtn>|x=315|y=270|width=180|height=230>
<Img|id=tipsblend|children={tips}|x=8|y=8|width=164|height=214|img=7/e/blend.png>
<ListView|id=tips|children={tipsd0,e,tipsd1,tipsd2,tipsd3,tipsd4,tipsd5,tipsd6,effbg,effbg1,tipsd7,tipsd8,tipsd9,tipsd10,tipsd11,tipsd12}|x=5|y=2|width=164|height=214|margin=5|bounce=0>
<RText|id=tipsd0|height=26|size=18|text=<金手镯/FCOLOR=255>>
<Layout|id=e|children={epicbg,edisc1,edisc2}|width=40|height=50>
<Img|id=epicbg|children={epic}|width=40|height=40|img=7/e/eb2.png>
<Img|id=epic|ax=0.5|ay=0.5|percentx=50|percenty=50|img=item/00098.png>
<RText|id=edisc1|x=45|y=5|height=15|size=14|text=<重量1/FCOLOR=255>>
<RText|id=edisc2|x=45|y=25|height=15|size=14|text=<持久力 7/7/FCOLOR=255>>
<RText|id=tipsd3|height=15|size=14|text=魔防 2 - 5 <(+2)/FCOLOR=250>>
<RText|id=tipsd4|height=15|size=14|text=攻击 0 - 1>
<RText|id=tipsd5|height=15|size=14|text=魔法 0 - 1 <(+1)/FCOLOR=250>>
<RText|id=tipsd6|height=15|size=14|text=<需要等级:23/FCOLOR=250>>
<Layout|id=effbg|children={efftitlebg,efftitletext,eff1,eff1_1}|width=40|height=100>
<Img|id=efftitlebg|x=-11|width=40|height=107|img=7/e/tb1.png>
<RText|id=efftitletext|x=3|y=54|height=15|size=14|text=稻\草\人>
<Effect|id=eff1|x=-30|y=-30|effecttype=2|effectid=23|dir=3|scale=0.75|act=2|speed=1>
<Effect|id=eff1_1|x=-30|y=-30|effecttype=0|effectid=7114|dir=0|scale=0.75|act=2|speed=1>
<Layout|id=effbg1|children={efftitlebg1,eff2,eff2_1}|width=40|height=130>
<Img|id=efftitlebg1|x=-15|width=180|img=7/e/line.png>
<Effect|id=eff2|x=-30|y=-25|effecttype=2|effectid=72|dir=5|scale=0.75|act=7|speed=1>
<Effect|id=eff2_1|x=-25|y=-30|effecttype=0|effectid=7303|dir=0|scale=0.75|act=2|speed=1>
<Img|id=tipsb|img=7/e/tipsb.png>
<Button|id=ebtn|x=125.0|y=10|pimg=7/e/btn1.png|mimg=7/e/btn1.png|nimg=7/e/btn1.png|text=取下|size=14|link=@eTakeb&4>
[@eExit]
#IF
Large $STR(N$eViewTips) 0
#ACT
mov N$eViewTips 0
Goto @DiyTips
Break
#ELSEACT
Break
Close
[@eViewTips]
#IF
Equal $STR(N$eViewTips) $ScriptParam(1)
#ACT
Break
#ELSEACT
mov N$eViewTips $ScriptParam(1)
Goto @DiyTips
Break
[@eCloseTips]
#IF
Large $STR(N$eViewTips) 0
#ACT
mov N$eViewTips 0
Goto @DiyTips
Break
[@eTakeb]
#IF
True
#ACT
mov N$eViewTips 0
Goto @DiyTips
Break
黑哥威武,996加油:victory: zaixianjiangli xunlu 膜拜 支持楼主,特来学习 太强了 ffffffffffffffff 11111111111111 撒丁岛的血 撒飒飒飒飒 dsfdsafasfasdfasdfasfd
页:
[1]
2