Garry's Mod Wiki

Revision Difference

DColorPalette:SetButtonSize#513401

<function name="SetButtonSize" parent="DColorPalette" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>⤶ Sets the size of each palette button.⤶ ⤶ This is best kept to such a number, where this equation would return a whole number:&amp;lt;br&amp;gt;⤶ WidthOfColorPalette/ButtonSize=WholeNumber⤶ ⤶ If not, there will be ugly whitespace on the right side of the panel.⤶ </description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="size" type="number">Sets the new size</arg>⤶ </args>⤶ </function>⤶ ⤶