PANEL:LoadCookies

From Garry's Mod
Jump to: navigation, search
 PANEL:LoadCookies( )

Description

Called after Panel:SetCookieName is called on this panel to apply the just loaded cookie values for this panel.

Examples

Example

function PANEL:LoadCookies()

	local value = self:GetCookieNumber( "SavedCookieName", 0 )
	print( value )

	-- Do your stuff with the loaded value

end


Personal tools
Navigation