Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...