Game Development Community

MarkF or GG staff :)

by Justin DuJardin · in Torque Game Engine · 05/15/2002 (10:18 pm) · 6 replies

Ok, I figure I have the best chance of getting this answered if i direct it at the staff. First off, my dilema. I've re-written all my Gui Classes to be skinnable, just as Justin Mette did his, my problem now is, to change the skin while in-game. Is there any way to force all the gui controls to re-awaken and reconstruct their bitmap arrays according to their GuiProfiles? If there currently isn't, any idea how one would go about accomplishing this?

Thanks in advance,
Justin 'av0n' DuJardin

#1
05/15/2002 (10:32 pm)
Actually, the GG staff is probably the last place to ask for coding help.

They seem to have more than enough to do already. :)
#2
05/15/2002 (11:29 pm)
I just meant that they have the most knowledge of how the engine works and I know my luck, it will probably not be easy to accomplish, so I figured they would be the ones that knew tha answer, if anyone :)
#3
05/16/2002 (12:09 am)
You might want to look at the code for the guichunkedbitmap control.

I believe it has code to set the bitmap during execution time.

Another thing to look for is the setProfile commands.
#4
05/16/2002 (12:35 am)
Hey labrat thanks man you're right it does! Ok, but it seems that it only applies it to one control, so what I need now is a way to enumerate all the contrlols on-screen, any ideas?
#5
05/16/2002 (1:20 am)
Not offhand.

You could probably iterate throught the canvas group calling an update on each object you find.

canvas.listobjects();
#6
05/16/2002 (9:27 am)
I think iterating through the canvas group and telling the controls to reload their skins would be the simplest way.

--Rick