I removed the default properties and other functions since I dont think that has anything to do with it. I used to get a type mismatch for the underlined code, then I restarted the code from scratch and now I get:
F:\UT2004\DragonRiderRPG\Classes\RPGAdmin_Menu.uc( 11) : Error, Cast from 'GUITabPanel' to 'RPGAdmin_PlayerList' will always fail
I'm not good with GUI code, though I've come a long way, its still bugged out every time I make or edit any dialog/gui elements. I finally went through the trouble to just use the premade Admin console as a template and I get problems I cant fix, I should have just made it from scratch and spent more hours.
Help much appreciated!
-DragonRider
F:\UT2004\DragonRiderRPG\Classes\RPGAdmin_Menu.uc( 11) : Error, Cast from 'GUITabPanel' to 'RPGAdmin_PlayerList' will always fail
I'm not good with GUI code, though I've come a long way, its still bugged out every time I make or edit any dialog/gui elements. I finally went through the trouble to just use the premade Admin console as a template and I get problems I cant fix, I should have just made it from scratch and spent more hours.
Help much appreciated!
-DragonRider
Code:
class RPGAdmin_Menu extends UT2K3GUIPage; var GUITabControl TabC; var RPGAdmin_PlayerList PlayerList; function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.InitComponent(MyController, MyOwner); TabC = GUITabControl(Controls[5]); PlayerList = RPGAdmin_PlayerList(TabC.AddTab("Reset","DragonRiderRPG.RPGAdmin_TabReset",,"Reset RPG Player",true)); PlayerList = RPGAdmin_PlayerList(TabC.AddTab("Levelup","DragonRiderRPG.RPGAdmin_TabLevel",,"Levelup a RPG Player",false)); if (PlayerList!=None) PlayerList.ReloadList(); }
Comment