Garry's Mod Wiki

Revision Difference

Panel:CenterHorizontal#566215

<function name="CenterHorizontal" parent="Panel" type="classfunc"> <description>Centers the panel horizontally with specified fraction.</description>⤶ <description>Centers the panel horizontally with specified fraction.⤶ See <page>Panel:CenterVertical</page> for vertical only centering, and <page>Panel:Center</page> for a function that does both axes.</description>⤶ <realm>Client and Menu</realm> <file line="158-L160">lua/includes/extensions/client/panel.lua</file> <args> <arg name="fraction" type="number" default="0.5">The center fraction.</arg> </args> </function>