Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 2
Generate Html 6
SaveChanges (1) 9
Render Body 0
Render Sidebar 11