Derives methods, etc not listed on this page from DScrollPanel.
This is used internally - although you're able to use it you probably shouldn't. Automatically called to fill the browser with icons. Will not work if DIconBrowser:SetManual is set to true.
DIconBrowser:FilterByText( string text )
A simple unused search feature, hides all icons that do not contain given text in their file path.
Called when the selected icon was changed. Use DIconBrowser:GetSelectedIcon to get the selected icon's filepath.
This is used internally - although you're able to use it you probably shouldn't. Use DIconBrowser:OnChange instead
Scrolls the browser to the selected icon
DIconBrowser:SetManual( boolean manual )
Sets whether or not the browser should automatically fill itself with icons.
Creates a DIconBrowser which, when an icon is clicked, prints said icon's directory.
local DermaPanel = vgui.Create("DFrame") DermaPanel:SetSize(300, 200) DermaPanel:Center() DermaPanel:SetTitle("DIconBrowserExample") DermaPanel:MakePopup() local IconBrowser = DermaPanel:Add("DIconBrowser") IconBrowser:Dock(FILL) IconBrowser.OnChange = function(self) chat.AddText("You selected: " .. self:GetSelectedIcon()) end