Garry's Mod Wiki

DColorPalette:SaveColor

DColorPalette:SaveColor

  DColorPalette:SaveColor( Panel btn, table clr )

Description

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

1 Panel btn
The button to save the color of. Used to get the ID of the button.
2 table clr
The color to save to this button's index

Special Pages


Wikis

?

Render Time: 55ms

DB GetPage 36
Generate Html 5
SaveChanges (1) 6
Render Body 0
Render Sidebar 7