Here comes the fixed volume bar.
- Add these three elements to player-elements.xml:
PHP Code:
<bitmap id="player.anim.volume" file="player/volbar-chameleon.png"/>
<bitmap id="player.map.volume" file="player/volmap-samewidth.png"/>
<bitmap id="hidden.thumb" file="player/hiddenthumb.png"/>
- In player-normal-group.xml, replace what is between <groupdef id="volume"> and </groupdef> with the following tags (note the additional Slider tag):
PHP Code:
<AnimatedLayer
id="VolumeAnim" image="player.anim.volume"
x="0" y="0" w="107" h="5" move="0" tooltip="Volume"
autoplay="0" autoreplay="0"
/>
<Slider
id="HiddenVolume"
action="VOLUME"
x="0" y="0" w="107" h="5"
thumb="hidden.thumb" downThumb="hidden.thumb"
alpha="0"
/>
<script id="justvolume" file="scripts/justvolume.maki"/>
The position and size of the Slider should be the same as the position and size of the AnimatedLayer.
- Copy the attached png's into the Player folder.
The size of volmap-samewidth.png should be the same as the size of the AnimatedLayer.
The width of volbar-chameleon.png should be the same as the length of the AnimatedLayer.
volbar-chameleon.png contains the movie frames for the volume animation. The size of each frame is the same as the size of the AnimatedLayer.
- Copy the fixed justvolume.m and the fixed justvolume.maki into the scripts folder.