1 // Property of Alientrap/AK
4 // uses .target to determine the target window
6 void() Nex_Action_MakeOnlyVisible_Destroy =
8 String_EntityFree( self, target );
11 void() Nex_Action_MakeOnlyVisible_Action =
13 Nex_MakeOnlyVisible( Menu_GetItem( self.target ) );
16 void() Nex_Action_MakeOnlyVisible =
18 String_EntityZone( self, target );
20 self.destroy = Nex_Action_MakeOnlyVisible_Destroy;
21 self.action = Nex_Action_MakeOnlyVisible_Action;
24 // makes the first child as only item in the window visible
25 void() Nex_Action_MakeFirstVisible =
27 Nex_MakeOnlyVisible( self._child );
30 // like MakeOnlyVisible, but also jumps to the window
31 void() Nex_Action_JumpToPage_Destroy =
33 String_EntityFree( self, target );
36 void() Nex_Action_JumpToPage_Action =
39 lItem = Menu_GetItem( self.target );
40 Nex_MakeOnlyVisible( lItem );
41 Menu_JumpToWindow( lItem, false, false );
44 void() Nex_Action_JumpToPage =
46 String_EntityZone( self, target );
48 self.action = Nex_Action_JumpToPage_Action;
49 self.destroy = Nex_Action_JumpToPage_Destroy;
52 // sets the link field of Normal::Panel
53 void() Nex_Action_SetNormalPanelLink_Destroy =
55 String_EntityFree( self, target );
58 void() Nex_Action_JumpToPlayerSetup;
59 void() Nex_Action_SetNormalPanelLink_Action =
63 if(self.target == "CreateGame" && cvar_string("_cl_name") == "Player")
65 Nex_Action_JumpToPlayerSetup();
69 lItem = Menu_GetItem( "Normal::Panel" );
70 String_EntitySet( lItem, link, self.target );
72 Raise_Update( lItem );
73 Menu_UpdateRunFlags();
74 Menu_JumpToWindow( lItem._link, false, false );
77 void() Nex_Action_SetNormalPanelLink =
79 String_EntityZone( self, target );
81 self.destroy = Nex_Action_SetNormalPanelLink_Destroy;
82 self.action = Nex_Action_SetNormalPanelLink_Action;
85 // sets the link field of Normal::Panel on reinit
86 void() Nex_Action_SetLinkOnReinit_Destroy =
88 String_EntityFree( self, target );
91 void() Nex_Action_SetLinkOnReinitk_Reinit =
93 String_EntitySet( Menu_GetItem( "Normal::Panel" ), link, self.target );
96 void() Nex_Action_SetLinkOnReinit =
98 String_EntityZone( self, target );
100 self.destroy = Nex_Action_SetLinkOnReinit_Destroy;
101 self.reinit = Nex_Action_SetLinkOnReinitk_Reinit;