Garry's Mod Wiki

DColorPalette:SetButtonSize

DColorPalette:SetButtonSize

DColorPalette:SetButtonSize( number size )

Description

Sets the size of each palette button.

This is best kept to such a number, where this equation would return a whole number:
WidthOfColorPalette / ButtonSize= WholeNumber

If not, there will be ugly whitespace on the right side of the panel.

Arguments

1 number size
Sets the new size

Special Pages


Wikis

?

Render Time: 65ms

DB GetPage 49
Generate Html 1
SaveChanges (1) 6
Render Body 0
Render Sidebar 6