Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 |
class KFProfilePage extends UT2K4GUIPage; var automated KFTab_Profile ProfilePanel; var automated KFProfileAndAchievements_Footer t_Footer; var editconst noexport float SavedPitch; function InitComponent(GUIController MyController, GUIComponent MyOwner) { local rotator PlayerRot; Super.InitComponent(MyController, MyOwner); // Set camera's pitch to zero when menu initialised (otherwise spinny weap goes kooky) PlayerRot = PlayerOwner().Rotation; SavedPitch = PlayerRot.Pitch; PlayerRot.Pitch = 0; PlayerRot.Roll = 0; PlayerOwner().SetRotation(PlayerRot); t_Footer.OnSaveButtonClicked = SaveButtonClicked; ProfilePanel.InitComponent(MyController, self); ProfilePanel.Opened(self); ProfilePanel.ShowPanel(true); } function InternalOnClose(optional Bool bCanceled) { local rotator NewRot; // Reset player NewRot = PlayerOwner().Rotation; NewRot.Pitch = SavedPitch; PlayerOwner().SetRotation(NewRot); Super.OnClose(bCanceled); } function SaveButtonClicked() { ProfilePanel.SaveSettings(); Controller.CloseMenu(False); } defaultproperties { Begin Object Class=KFTab_Profile Name=Panel WinTop=0.010000 WinLeft=0.010000 WinWidth=0.980000 WinHeight=0.960000 End Object ProfilePanel=KFTab_Profile'KFGui.KFProfilePage.Panel' Begin Object Class=KFProfileAndAchievements_Footer Name=Footer RenderWeight=0.300000 TabOrder=4 OnPreDraw=Footer.InternalOnPreDraw End Object t_Footer=KFProfileAndAchievements_Footer'KFGui.KFProfilePage.Footer' bRenderWorld=True bAllowedAsLast=True BackgroundColor=(B=0,G=20,R=0,A=20) InactiveFadeColor=(G=0,R=0,A=64) BackgroundRStyle=MSTY_Alpha OnClose=KFProfilePage.InternalOnClose WinTop=0.000000 WinHeight=1.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |