Module GUIIcons
This module provides functions to create and manage icons within GUI panels.
Usage:
local Icons = NGUI.Icons
Functions
Icons:Create (icon) | Returns a panel with an icon displayed. |
Icons:GetPath (icon) | Constructs the full path to an icon file. |
Functions
- Icons:Create (icon)
-
Returns a panel with an icon displayed.
Parameters:
- icon string The filename of the icon to display.
Returns:
-
panel The panel with the icon painted on it.
- Icons:GetPath (icon)
-
Constructs the full path to an icon file.
This function assumes all icons are stored in the ‘materials/icons/’ directory.
Parameters:
- icon string The filename of the icon.
Returns:
-
string The full path to the icon.