Revision Difference
DColorPalette:SaveColor#513402
<function name="SaveColor" parent="DColorPalette" type="panelfunc">⤶
<ispanel>yes</ispanel>⤶
<description>⤶
Saves the color of given button across sessions.⤶
⤶
The color is saved as a panel cookie, see <page>Panel:SetCookie</page> and <page>Panel:SetCookieName</page>.⤶
⤶
It is expected that the amount of colors per palette (<page>Panel:SetCookieName</page>) is the same every time.⤶
</description>⤶
<realm>Client</realm>⤶
<args>⤶
<arg name="btn" type="Panel">The button to save the color of. Used to get the ID of the button.</arg>⤶
<arg name="clr" type="table">The color to save to this button's index</arg>⤶
</args>⤶
</function>⤶
⤶