DColorPalette/SaveColor

From Garry's Mod
Jump to: navigation, search
 DColorPalette:SaveColor( )

DescriptionPanelFunc

Saves the color of given button across sessions.

The color is saved as a panel cookie, see Panel:SetCookie and Panel:SetCookieName.

It is expected that the amount of colors per palette (Panel:SetCookieName) is the same every time.

Arguments

Panel btn

The button to save the color of. Used to get the ID of the button.

Arguments

table clr

The color to save to this button's index
Personal tools
Navigation