cw.characterStageTwo panelclient
Panel defined in core/derma/cl_character.lua
Summary
Methods
cw.characterStageTwo): name entries, physical description and model selection, depending on the chosen faction.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 description creation step (cw.characterStageTwo): name entries, physical description and
model selection, depending on the chosen faction.
The name entries are left out when the faction has a GetName function, and use a single full name
entry when it sets useFullName. A model list is shown when the faction has no GetModel function and
more than one model for the chosen gender; with a single model, that model is used. The physical
description entry is shown when the CharPhysDesc command exists.
Validates the name, model and physical description and stores them in the creation info.
Forenames and surnames must be 2 to 16 characters long, contain a vowel and no punctuation, spaces or
digits. The physical description must be at least minimum_physdesc characters long. Shows the matching
error when a check fails.
Returns
- Boolean
falseto stay on the step when a check fails
Draws nothing.
Parameters
- w
- h
Sizes the step to fit its forms, up to 60% of the screen height, with a 256 pixel tall model list.
Parameters
- w
- h
Runs the step's fade animation.