![]() |
|
|
#1 |
|
[ut2003]creating a GuiTabPanel for GameRules
Ok I've created a new gametype and linked to it a gameRules tab Panel in the Instant Action menu(via the int file)
Now the problem is that if I subclass it from GuiTabPanel none of my defaultProperties Subobjects work. On the other hand,if I subclass it from tab_InstantActionGameRules,they do appear but I can't remove the default subobjects. So anybody have a suggestion? what do I have to do to have my subobjects appear in a guiTabPanel? |
|
|
|
|
|
|
#2 |
|
Ok I just found out it was because of the variables winHeight and winTop that I didn't setup in defaultproperties.
I think they must be at 0 by default or something like that.
|
|
|
|
|
|
|
#3 |
|
after many tries I found out that you can't subclass a gamRules Tab Panel from GuiTabPanel because the play() function won't be called.
You ave to subclass it from Tab_InstantActionBaseRules and erase the default controls that you don't want to have (for example setting their dimensions to 0). If anybody has a better way to do it please tell me. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|