Game Development Community

TGB 1.5 Weird bug.. fade button?

by Phil Carlisle · in Torque Game Builder · 07/12/2007 (1:20 pm) · 0 replies

Creating some GUI's and I'd added guiFade... control.

Added a login gui with three buttons. When I was editing the gui when I created a new button it was black (like the profile wasnt right, but I checked all the profiles).

Then when I'd place a new button, the old one would render correctly (with the profile that was set on) and the new one would be black!

(incidentally, sounds like some bug in recognising the datablocks for a given profile datablock id??)

Anyway, then I save the gui and run it as my second screen after the splash screen.

Weirdly, the splash fades in ok, doesnt fade out (might be a timing issue I suppose), then the new gui is supposed to fade in, but instead, it displays instantly and ONE of the buttons fades in from black!!!

Now this is a bog standard button class. Profile is same as all the other buttons.

My guess would be that either a renderstate isnt being reset, or some kind of cliprect isnt being set and the fade code is fading the wrong rect. Something is definitely going funky!

I'll package up the gui's and stuff if that helps.