- UID
- 200216
- 帖子
- 991
- 精华
- 1
- 威望
- 10
- 阅读权限
- 100
- 注册时间
- 2004-7-3
|
67#
发表于 2005-9-29 01:20
| 只看该作者
wanamaka,2005-09-28, 18:37:46
有一个关于皮肤制作的问题
现在的Mania的HP条好像只能一次一个,多在里面加part的话,似乎只读第一个。而且只能从上面向下面减,不能横过来做。希望老大能添加一下有关这个的参数:) 血条多个part没有问题啊
<LifeBar PartCount="1" ID="6">
<part0 FrameCount="1" Draw_SrcBlend="true" Draw_AlphaTest="true">
<Frame0 u="238" v="max(2,2+(1-CurLife)*224+sin(time()*5)*10)" w="15" h="min(224, 224-(1-CurLife)*224-sin(time()*5)*10)"
desth="min(224, 224-(1-CurLife)*224-sin(time()*5)*10)" x="250" y="max(284,284+(1-CurLife)*224+sin(time()*5)*10)"
orgy="0" orgx="0" ImageName="pgmk2_1.png" Draw_SrcBlend="true" Draw_AlphaTest="true" />
</part0>
<part0 FrameCount="1" Draw_SrcBlend="true" Draw_AlphaTest="true">
<Frame0 u="238" v="max(2,2+(1-CurLife)*224+sin(time()*5)*10)" w="15" h="min(224, 224-(1-CurLife)*224-sin(time()*5)*10)"
desth="min(224, 224-(1-CurLife)*224-sin(time()*5)*10)" x="350" y="max(284,284+(1-CurLife)*224+sin(time()*5)*10)"
orgy="0" orgx="0" ImageName="pgmk2_1.png" Draw_SrcBlend="true" Draw_AlphaTest="true" />
</part0>
</LifeBar>
上面这样写就可以有2个血条(用的是1.1.0b2 的DJMAX SKIN,O2那个我也试过,同样可以,你要么把你血条那一段贴来看看),
参数的话,有个CurLife,取值是1.0~0.0 ,
如果把destw = CurLife*100的话就是一个横过来的血条了,满血的时候宽度是100,没血了就是0啦
记住如果要用CurLife的话要在skin.xml的第二行
<?xml version="1.0" encoding="gb2312" ?>
<Skin> <-----这里
把 <Skin> 改成<Skin Version="1">
这样就可以用CurLife这样的变量了,如果还有不清楚的就跟帖吧
再跟一个横过来血条的例子,贴图用了一个绿色的色快
<LifeBar PartCount="1" ID="6">
<part0 FrameCount="1" Draw_SrcBlend="true" Draw_AlphaTest="true">
<Frame0 u="238" v="max(2,2+(1-CurLife)*224+sin(time()*5)*10)" w="15" h="min(224, 224-(1-CurLife)*224-sin(time()*5)*10)"
desth="min(224, 224-(1-CurLife)*224-sin(time()*5)*10)" x="250" y="max(284,284+(1-CurLife)*224+sin(time()*5)*10)"
orgy="0" orgx="0" ImageName="pgmk2_1.png" Draw_SrcBlend="true" Draw_AlphaTest="true" />
</part0>
<part0 FrameCount="1" Draw_SrcBlend="true" Draw_AlphaTest="true">
<Frame0 v="153" u="max(2,2+(1-CurLife)*224+sin(time()*5)*10)" h="15" w="min(224, 224-(1-CurLife)*224-sin(time()*5)*10)"
destw="min(224, 224-(1-CurLife)*224-sin(time()*5)*10)" y="300" x="max(284,284+(1-CurLife)*224+sin(time()*5)*10)"
orgy="0" orgx="0" ImageName="panel_1.png"/>
</part0>
</LifeBar> |
|