Garry's Mod Wiki

Revision Difference

Panel:CenterHorizontal#546102

<function name="CenterHorizontal" parent="Panel" type="classfunc"> <description>Centers the panel horizontally with specified fraction. (View source [here](https://github.com/Facepunch/garrysmod/blob/be251723824643351cb88a969818425d1ddf42b3/garrysmod/lua/includes/extensions/client/panel.lua#L158-L160))</description> <description>Centers the panel horizontally with specified fraction.</description> <realm>Client</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>