cw.characterList panelclient
Panel defined in core/derma/cl_character.lua
Summary
Methods
cw.characterList) and shows the navigation buttons.Methods
Adds a character panel to the end of the list.
Parameters
- panel Panel The
cw.characterPanelto add
Removes every character panel from the list.
Shows the character list and fades it in, playing the click sound.
When the list is already visible or animating, it is made fully visible at once.
Parameters
- speed Number Length of the fade in seconds
- Callback Function optional, defaults to
nilCalled once the list is fully visible
Fades the character list out and hides it, playing the rollover sound.
When the list is already invisible or animating, it is hidden at once.
Parameters
- speed Number Length of the fade in seconds
- Callback Function optional, defaults to
nilCalled once the list is hidden
Returns the character panels in the list.
Returns
- List<Panel> The
cw.characterPanelpanels in order
Returns whether the Next button should be disabled.
Returns
- Boolean
truewhen the last character is selected
Returns whether the Previous button should be disabled.
Returns
- Boolean
truewhen the first character is selected
Returns the selected character panel.
Returns
- Panel The selected
cw.characterPanel, ornilwhen the list is empty
Sets up the character list (cw.characterList) and shows the navigation buttons.
PANEL:ManageTargets(panel, position, alpha)
client gamemodes/catwork/gamemode/core/derma/cl_character.lua:766Moves a character panel a step closer to its target position and alpha.
Parameters
- panel Panel The character panel to move
- position Number Target x position
- alpha Number Target alpha, from 0 to 255
Selects the next character.
Selects the previous character.
Draws nothing.
Parameters
- w
- h
Fills the screen below the top bar and above the navigation buttons.
Parameters
- w
- h
Selects a character by index and restarts the slide animation.
Parameters
- index Number Index of the character panel to select
Slides the selected character to the centre and lays the others out to each side, fading them with distance.