Table of Contents

Class UICharacterCreation

Namespace
GrindFest.UI
Assembly
GrindFest.dll
public class UICharacterCreation : UIPanel, ICloseableUI
Inheritance
object
UICharacterCreation
Implements
Inherited Members

Fields

BackButton
CharacterSelection
ClassDescription
ClassItemPrefab
ClassName
ClassSelectionPanel
CreateCharacterButton
CreatedHero
FemaleToggle
FillInNameTooltip
MaleToggle
NameInputField
NameLockIcon
SexSelectionPanel
SitAnimation

Methods

ClearPreview()

Removes the preview hero and undoes what showing it changed: the party selection (systems that follow the selected hero - the party camera, UniStorm's weather holder - must not be left pointing at a transform that is about to be destroyed) and UniStorm's PlayerTransform.

FinalizePreview(string, CharacterClass)

Turns the preview into a real hero: charges the class price, names it, plays the sit animation, adds it to the party and fires HeroCreated.

InitializeForJS()
IsUnlocked(ClassRequirement)
ShowPreviewForClass(CharacterClass)

Spawns the preview hero for a class (destroying any previous preview), tells it that it was created and selects it. Returns the spawned hero; CreatedHero also holds it.