first of many ui questions =p
by ev · in General Game Discussion · 06/14/2003 (4:23 pm) · 1 replies
hey guys,
i was just wondering is there a way to make buttons and stuff on your screen without having a background image? i gutted the .movie file in example 4 all the way until it was just one button and the backround. the keyframe that handles the background image is:
keyframe Background =
{
layer = 12;
actor = bmpBackground;
position = 0,0;
}
if you delete that whole keyframe, or even just this line: actor = bmpBackground;
the movie starts acting wierd and the buttons start disappearing and stuff. if you take the backround image and just make the whole thing the transparent color, it will work. youll see everything else besides the background image, but if you get rid of that line up there, it goes bad.
its no big, im just trying to get a better understanding of how this system works. so can anyone tell me? why does that happen?
i was just wondering is there a way to make buttons and stuff on your screen without having a background image? i gutted the .movie file in example 4 all the way until it was just one button and the backround. the keyframe that handles the background image is:
keyframe Background =
{
layer = 12;
actor = bmpBackground;
position = 0,0;
}
if you delete that whole keyframe, or even just this line: actor = bmpBackground;
the movie starts acting wierd and the buttons start disappearing and stuff. if you take the backround image and just make the whole thing the transparent color, it will work. youll see everything else besides the background image, but if you get rid of that line up there, it goes bad.
its no big, im just trying to get a better understanding of how this system works. so can anyone tell me? why does that happen?
About the author
Torque Owner Chris Cole
I just checked this out and it is actually a bug in the movie parsing code. The code should accurately recalculate the size of the buttons, but it's returning a bad size.
I'll add it to my list of fixes for the next build. Great catch. An easy work around is to just add a small dummy transparent bitmap as a background so the size returns something more meaningful.