Summary

Methods

Shows the step and fades it in, playing the click sound.
Fades the step out and hides it, playing the rollover sound.
Init()client
Builds the class creation step (cw.characterStageThree) with a cwClassesItem for each class of the chosen faction that is shown on the character screen.
OnNext()client
Checks that a valid class was picked, showing an error otherwise.
Draws nothing.
Sizes the step to fit its class list, up to 60% of the screen height.
Think()client
Runs the step's fade animation.

Methods

Shows the step and fades it in, playing the click sound.

When the step 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 step is fully visible

PANEL:FadeOut(speed, Callback)

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

Fades the step out and hides it, playing the rollover sound.

When the step is already transparent 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 step is hidden

Builds the class creation step (cw.characterStageThree) with a cwClassesItem for each class of the chosen faction that is shown on the character screen.

Clicking a class stores its index as the creation info's class.

Checks that a valid class was picked, showing an error otherwise.

Returns

  • Boolean false to stay on the step when no valid class is selected

Draws nothing.

Parameters

  • w
  • h

Sizes the step to fit its class list, up to 60% of the screen height.

Parameters

  • w
  • h

Runs the step's fade animation.

Defined in