Garry's Mod Wiki

Revision Difference

Panel:MoveToAfter#550835

<function name="MoveToAfter" parent="Panel" type="classfunc"> <description>Moves this panel object in front of the specified sibling (child of the same parent) in the render order, and shuffles up the Z-positions of siblings now behind.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <arg name="siblingPanel" type="Panel">The panel to move this one in front of. Must be a child of the same parent panel.</arg> </args> <rets> <ret name="" type="boolean">`false` if the passed panel is not a sibling, otherwise `nil`.</ret> </rets> </function>