Garry's Mod Wiki

Panel:CenterHorizontal

  Panel:CenterHorizontal( number fraction = 0.5 )

Description

Centers the panel horizontally with specified fraction.

See Panel:CenterVertical for vertical only centering, and Panel:Center for a function that does both axes.

Arguments

1 number fraction = 0.5
The center fraction.