Garry's Mod Wiki

Revision Difference

Panel:MoveToAfter#560808

<function name="MoveToAfter" parent="Panel" type="classfunc"> <file line="544-L565">lua/includes/extensions/client/panel.lua</file>⤶ <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 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>