Summary

Methods

Adds a character panel to the end of the list.
Clear()client
Removes every character panel from the list.
Shows the character list and fades it in, playing the click sound.
Fades the character list out and hides it, playing the rollover sound.
Returns the character panels in the list.
Returns whether the Next button should be disabled.
Returns whether the Previous button should be disabled.
Returns the selected character panel.
Init()client
Sets up the character list (cw.characterList) and shows the navigation buttons.
Moves a character panel a step closer to its target position and alpha.
OnNext()client
Selects the next character.
Selects the previous character.
Draws nothing.
Fills the screen below the top bar and above the navigation buttons.
Selects a character by index and restarts the slide animation.
Think()client
Slides the selected character to the centre and lays the others out to each side, fading them with distance.

Methods

Adds a character panel to the end of the list.

Parameters

Removes every character panel from the list.

PANEL:FadeIn(speed, Callback)

client gamemodes/catwork/gamemode/core/derma/cl_character.lua:719

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 nil Called once the list is fully visible

PANEL:FadeOut(speed, Callback)

client gamemodes/catwork/gamemode/core/derma/cl_character.lua:709

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 nil Called once the list is hidden

Returns the character panels in the list.

Returns

Returns whether the Next button should be disabled.

Returns

  • Boolean true when the last character is selected

Returns whether the Previous button should be disabled.

Returns

  • Boolean true when the first character is selected

Returns the selected character panel.

Returns

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:766

Moves 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.

Defined in