PIXEL.Sidebar
- Base panel:
Panel(opens in a new tab) - Source: cl_sidebar.lua (opens in a new tab)
- Description: PIXEL sidebar container panel.
Methods
The following methods are available on the PIXEL.Sidebar panel:
PANEL:SetImgurID( string )Sets the sidebar logo image using an Imgur ID.
string PANEL:GetImgurID()Gets the sidebar logo Imgur ID from its image URL.
PANEL:SetImgurScale( number )Sets the sidebar logo scale using the deprecated Imgur alias.
number PANEL:GetImgurScale()Gets the sidebar logo scale using the deprecated Imgur alias.
PANEL:SetImgurOffset( number )Sets the sidebar logo Y offset using the deprecated Imgur alias.
number PANEL:GetImgurOffset()Gets the sidebar logo Y offset using the deprecated Imgur alias.
Panel PANEL:AddItem( any, string, string, fun(item:Panel), number )Adds a selectable item to the sidebar.
PANEL:RemoveItem( any )Removes a sidebar item by identifier.
PANEL:SelectItem( any )Selects an existing sidebar item.