Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 27ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 8
Render Body 0
Render Sidebar 12