Panel/PositionLabel

From Garry's Mod
Jump to: navigation, search
 Panel:PositionLabel( )

Contents

Description

Sets the width and position of a DLabel and places the passed panel object directly to the right of it. Returns the y value of the bottom of the tallest object. The panel on which this method is run is not relevant; only the passed objects are affected.

Arguments

number lblWidth

The width to set the label to.

Arguments

number x

The horizontal (x) position at which to place the label.

Arguments

number y

The vertical (y) position at which to place the label.

Arguments

Panel lbl

The label to resize and position.

Arguments

Panel panelObj

The panel object to place to the right of the label.

Returns

number

The distance from the top of the parent panel to the bottom of the tallest object (the y position plus the height of the label or passed panel, depending on which is tallest).
Personal tools
Navigation