Garry's Mod Wiki

Revision Difference

Panel:GWEN_SetHorizontalAlign#550781

<function name="GWEN_SetHorizontalAlign" parent="Panel" type="classfunc"> <description><internal></internal> Used by <page>Panel:ApplyGWEN</page> to apply the `HorizontalAlign` property to a panel object. This calls <page>Panel:SetContentAlignment</page>.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <arg name="hAlign" type="string">The alignment, as a string, to pass to <page>Panel:SetContentAlignment</page>. Accepts: * `Right`: Align mid-right. * `Left`: Align mid-left. * `Center`: Align mid-center.</arg> </args> </function>