Game Development Community

GUI's not refreshing?

by DALO · in Torque Game Engine Advanced · 02/20/2007 (10:52 am) · 2 replies

Hello,
Just wondering if anyone has experienced gui's not refreshing? I have made custom health/weapon huds that just calls a series of png's. It works beautifully in TGE, but TGEA won't refresh the gui's. I've noticed that if I go into F10 or F11 then back out my screen refreshes and my huds look correct. It won't refresh/load properly otherwise. Any suggestions?
Thx

.....it seems like TGEA was built on TGE's platform back when it was TGE 1.0 or something and only some parts have been updated. I've noticed there are a lot of differences.............

#1
02/20/2007 (2:39 pm)
Try having a look in the code where it calls "invalidateRegion" or similar. There is basically a dirty rectangle scheme, but maybe there's something not quite right there. Personally I just invalidate the whole screen and render it all every frame, but we do full screen background animations anyway.
#2
02/21/2007 (12:47 pm)
Found it, for those of you who may come across this I have found that porting TGE to TGEA has a lot of different procedures and methods. In TGE you can just simply change the path of a png for a guiBitmapCtrl and it would update, well in TGEA you have to set the bitmap -> ctrlName.setBitmap("path to png");