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 persuasion creation step (cw.characterStageOne) with faction and gender choices and the custom choices from the GetPersuasionChoices hook.
OnNext()client
Validates the custom choices, faction and gender and stores them in the creation info.
Draws nothing.
Sizes the step to fit its form, 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:2155

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 persuasion creation step (cw.characterStageOne) with faction and gender choices and the custom choices from the GetPersuasionChoices hook.

Only factions the player is whitelisted for and that have not reached their maximum are offered. With a single faction, that faction is used and only the gender is asked. Custom choices are combo boxes or, when their type is 'textentry', text entries.

Validates the custom choices, faction and gender and stores them in the creation info.

Custom choice values are stored in the creation info's plugin table by choice name; choices with isNumber must be numbers within their min and max. Shows the matching error when a check fails.

Returns

  • Boolean true when the faction and gender are valid, false to stay on the step

Draws nothing.

Parameters

  • w
  • h

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

Parameters

  • w
  • h

Runs the step's fade animation.

Defined in