Hi all. I'm playing around with making my own GUI. I've been following this tutorial which was pretty helpful but now I've got a problem that I can't figure out.
I coded it all as the tutorial said and comiled. There was an error or two which I got rid of but I did end up deleting out the line:
Not sure if that is necessary or something. Anyway, basic problem is. I load up my mod and I just get a black screen and no menu.
Here's my code:
Thanks
I coded it all as the tutorial said and comiled. There was an error or two which I got rid of but I did end up deleting out the line:
Code:
OnReOpen=MyMenu.MainReopened
Here's my code:
Code:
// Interface - MainMenu // class ICMenu extends UT2K4GUIPage; var automated BackgroundImage BGI_Background; var automated GUIImage IMG_UTLogo; var automated GUIButton BTN_Quit; function InternalOnOpen() { Controller.PerformRestore(); PlayerOwner().ClientSetInitialMusic("KR-UT2004-Menu",MTRAN_Segue); } function bool CanClose(optional bool bCancelled) { return true; } function bool MyKeyEvent(out byte Key,out byte State,float delta) { return false; } function bool ButtonClick(GUIComponent Sender) { if (GUIButton(Sender) == None) return false; if (Sender == BTN_Quit) Controller.OpenMenu("GUI2K4.UT2K4QuitPage"); return true; } defaultproperties { Begin Object Class=BackgroundImage Name=ICMenuBackground Image=Texture'2K4Menus.MainMenu.mmbgnd' ImageStyle=ISTY_Scaled ImageRenderStyle=MSTY_Alpha X1=0 Y1=0 X2=1024 Y2=768 End Object BGI_Background=IronCurtainGUI.ICMenu.ICMenuBackground Begin Object Class=GUIImage Name=ImgUTLogo Image=Texture'2K4Menus.MainMenu.2K4Logo' ImageStyle=ISTY_Scaled WinTop=0.016926 WinLeft=0.180566 WinWidth=0.638868 WinHeight=0.392579 RenderWeight=0.050000 End Object IMG_UTLogo=IronCurtainGUI.ICMenu.ImgUTLogo Begin Object Class=GUIButton Name=QuitButton CaptionAlign=TXTA_Left CaptionEffectStyleName="TextButtonEffect" Caption="Quit" bUseCaptionHeight=True FontScale=FNS_Small StyleName="TextButton" Hint="Exit the game" WinTop=0.887567 WinLeft=0.424711 WinHeight=0.450000 WinWidth=0.100000 TabOrder=1 bFocusOnWatch=True OnClick=ICMenu.ButtonClick OnKeyEvent=QuitButton.InternalOnKeyEvent End Object BTN_Quit=IronCurtainGUI.ICMenu.QuitButton bDisconnectOnOpen=True bAllowedAsLast=True OnOpen=ICMenu.InternalOnOpen OnCanClose=ICMenu.CanClose OnKeyEvent=ICMenu.MyKeyEvent WinTop=0.000000 WinHeight=1.000000 }