cw.characterStageOne panelclient
Panel defined in core/derma/cl_character.lua
Summary
Methods
cw.characterStageOne) with faction and gender choices and the custom choices from the GetPersuasionChoices hook.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
nilCalled once the step is fully visible
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
nilCalled 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
truewhen the faction and gender are valid,falseto 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.