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_SetNormalPanelLink_Action =
62 lItem = Menu_GetItem( "Normal::Panel" );
63 String_EntitySet( lItem, link, self.target );
65 Raise_Update( lItem );
66 Menu_UpdateRunFlags();
67 Menu_JumpToWindow( lItem._link, false, false );
70 void() Nex_Action_SetNormalPanelLink =
72 String_EntityZone( self, target );
74 self.destroy = Nex_Action_SetNormalPanelLink_Destroy;
75 self.action = Nex_Action_SetNormalPanelLink_Action;
78 // sets the link field of Normal::Panel on reinit
79 void() Nex_Action_SetLinkOnReinit_Destroy =
81 String_EntityFree( self, target );
84 void() Nex_Action_SetLinkOnReinitk_Reinit =
86 String_EntitySet( Menu_GetItem( "Normal::Panel" ), link, self.target );
89 void() Nex_Action_SetLinkOnReinit =
91 String_EntityZone( self, target );
93 self.destroy = Nex_Action_SetLinkOnReinit_Destroy;
94 self.reinit = Nex_Action_SetLinkOnReinitk_Reinit;