Panel/SetCookieName

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Completed: Filled in description, args.)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=SetCookieName
+
|Description=Sets the panel's cookie name. Calls {{HookFunction|PANEL|LoadCookies}} if defined.
|Parent=Panel
+
|Description=Sets the name the panel object will use to store cookies. This can be retrieved using {{ClassFunction|Panel|GetCookieName}}. If the object has a ''LoadCookies()'' method, this will be called.
+
 
|Realm=Client
 
|Realm=Client
 
|IsClass=Yes
 
|IsClass=Yes
 +
|Name=SetCookieName
 +
|Parent=Panel
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=string
 
|type=string
|name=panelCookieName
+
|name=name
|desc=The name that will be appended to the beginning of all cookies written by the panel object. The format used is as follows: <code>panelCookieName.individualCookieName</code>
+
|desc=The panel's cookie name. Used as prefix for {{ClassFunction|Panel|SetCookie}}
 
}}
 
}}

Latest revision as of 16:08, 4 May 2016

 Panel:SetCookieName( )

Description

Sets the panel's cookie name. Calls PANEL:LoadCookies if defined.

Arguments

string name

The panel's cookie name. Used as prefix for Panel:SetCookie
Personal tools
Navigation