2009-01-26, 12:36
It would be very handy to have a "reveal" or "cloak" animation. This would work exactly as it sounds...you have a control that starts out fully or partially hidden, essentially invisible, and then reveal all or part of it to make it visible.
I don't know if this would be a nightmare to code internally, but from the skinner's perspective, the easiest way to approach it I can think of would be to essentially have a texture that you could use as your cloak. It would essentially be a regular image texture, a transparent png or whatever, but the texture itself would be invisible to the end user, and where ever it was on the screen, it would hide that portion of specified controls below it. You could animated this invisible control to make stuff magically "reveal" themselves (or visa versa)
It is sometimes possible to achieve similar results with zoom, but the problem is that it stretches or squishes things and that's usually not an acceptable solution with anything but perfectly square or rectangular textures.
Were it to be implemented in the manner i suggested, I'm not sure if it would be better as a new animation or a new control...I'm thinking a new control might be better because you could then possibly associate the cloak with multiple textures on the screen rather than just one at a time.
Here's an idea of how it might look as a separate control...
Thoughts?
EDIT: skunkm0nkee's post gave me the idea of expanding this...by adding a tag like <invert>true</invert>, you could allow the cloak to work in reverse, hiding everything NOT under the texture.
I don't know if this would be a nightmare to code internally, but from the skinner's perspective, the easiest way to approach it I can think of would be to essentially have a texture that you could use as your cloak. It would essentially be a regular image texture, a transparent png or whatever, but the texture itself would be invisible to the end user, and where ever it was on the screen, it would hide that portion of specified controls below it. You could animated this invisible control to make stuff magically "reveal" themselves (or visa versa)
It is sometimes possible to achieve similar results with zoom, but the problem is that it stretches or squishes things and that's usually not an acceptable solution with anything but perfectly square or rectangular textures.
Were it to be implemented in the manner i suggested, I'm not sure if it would be better as a new animation or a new control...I'm thinking a new control might be better because you could then possibly associate the cloak with multiple textures on the screen rather than just one at a time.
Here's an idea of how it might look as a separate control...
Code:
<control type="cloak">
<posx>200</posx>
<posy>300</posy>
<width>150</width>
<height>40</height>
<texture>shape1.png</texture>
<controls>4,5,12,50</controls>
<animation effect="slide" delay="400" start="0,0" end="320,100" center="200,300">WindowOpen<animation>
</control>
Thoughts?
EDIT: skunkm0nkee's post gave me the idea of expanding this...by adding a tag like <invert>true</invert>, you could allow the cloak to work in reverse, hiding everything NOT under the texture.