Module GUIPanels
Panels is GUI module for panels
Usage:
local Panels = NGUI.Panels
Functions
Panels:DockScroll () | Create a scrollable panel |
Panels:AttachToC (pnl) | Attaches panel to the C menu |
Panels:BinderPanel (command) | Creates a panel for binding keys |
Panels:FacePanel (mdl) | Creates a panel to display a model’s face |
Panels:CharacterPanel (mdl) | Creates a panel to display a full character model |
Panels:ItemPanel (mdl) | Creates a panel to display an item model |
Functions
- Panels:DockScroll ()
-
Create a scrollable panel
Returns:
-
panel A DScrollPanel instance docked to fill its parent
- Panels:AttachToC (pnl)
-
Attaches panel to the C menu
Parameters:
- pnl Panel to attach
- Panels:BinderPanel (command)
-
Creates a panel for binding keys
Parameters:
- command The command to bind to a key
Returns:
-
panel A DBinder panel
- Panels:FacePanel (mdl)
-
Creates a panel to display a model’s face
Parameters:
- mdl Model path
Returns:
-
panel A DModelPanel configured to focus on the model’s face
- Panels:CharacterPanel (mdl)
-
Creates a panel to display a full character model
Parameters:
- mdl Model path
Returns:
-
panel A DModelPanel configured to display the character
- Panels:ItemPanel (mdl)
-
Creates a panel to display an item model
Parameters:
- mdl Model path
Returns:
-
panel A DModelPanel configured to display the item