Barotrauma Client Doc
Barotrauma.CharacterEditor.CharacterEditorScreen Class Reference
Inheritance diagram for Barotrauma.CharacterEditor.CharacterEditorScreen:
Barotrauma.EditorScreen Barotrauma.Screen

Public Member Functions

override void Select ()
 
override void AddToGUIUpdateList ()
 By default, creates a new frame for the screen and adds all elements to the gui update list. More...
 
override void Update (double deltaTime)
 
CursorState GetMouseCursorState ()
 
override void Draw (double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch)
 
Character SpawnCharacter (Identifier speciesName, RagdollParams ragdoll=null)
 
bool CreateCharacter (Identifier name, string mainFolder, bool isHumanoid, ContentPackage contentPackage, XElement ragdoll, XElement config=null, IEnumerable< AnimationParams > animations=null)
 
void PrepareCharacterCopy ()
 
- Public Member Functions inherited from Barotrauma.EditorScreen
override sealed void Deselect ()
 
void CreateBackgroundColorPicker ()
 
- Public Member Functions inherited from Barotrauma.Screen
void ColorFade (Color from, Color to, float duration)
 
virtual void OnFileDropped (string filePath, string extension)
 
virtual void Release ()
 

Static Public Member Functions

static LocalizedString GetCharacterEditorTranslation (string tag)
 
- Static Public Member Functions inherited from Barotrauma.Screen
static void SelectNull ()
 

Protected Member Functions

override void DeselectEditorSpecific ()
 

Properties

static CharacterEditorScreen Instance [get]
 
override Camera Cam [get]
 
Character SpawnedCharacter [get]
 
- Properties inherited from Barotrauma.EditorScreen
override bool IsEditor [get]
 
- Properties inherited from Barotrauma.Screen
static Screen Selected [get]
 
virtual Camera Cam [get]
 
virtual bool IsEditor [get]
 
GUIFrame Frame [get]
 

Additional Inherited Members

- Static Public Attributes inherited from Barotrauma.EditorScreen
static Color BackgroundColor = GameSettings.CurrentConfig.SubEditorBackground
 

Detailed Description

Definition at line 19 of file CharacterEditorScreen.cs.

Member Function Documentation

◆ AddToGUIUpdateList()

override void Barotrauma.CharacterEditor.CharacterEditorScreen.AddToGUIUpdateList ( )
virtual

By default, creates a new frame for the screen and adds all elements to the gui update list.

Reimplemented from Barotrauma.Screen.

Definition at line 278 of file CharacterEditorScreen.cs.

◆ CreateCharacter()

bool Barotrauma.CharacterEditor.CharacterEditorScreen.CreateCharacter ( Identifier  name,
string  mainFolder,
bool  isHumanoid,
ContentPackage  contentPackage,
XElement  ragdoll,
XElement  config = null,
IEnumerable< AnimationParams animations = null 
)

Definition at line 1667 of file CharacterEditorScreen.cs.

◆ DeselectEditorSpecific()

override void Barotrauma.CharacterEditor.CharacterEditorScreen.DeselectEditorSpecific ( )
protectedvirtual

Reimplemented from Barotrauma.EditorScreen.

Definition at line 236 of file CharacterEditorScreen.cs.

◆ Draw()

override void Barotrauma.CharacterEditor.CharacterEditorScreen.Draw ( double  deltaTime,
GraphicsDevice  graphics,
SpriteBatch  spriteBatch 
)
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 770 of file CharacterEditorScreen.cs.

◆ GetCharacterEditorTranslation()

static LocalizedString Barotrauma.CharacterEditor.CharacterEditorScreen.GetCharacterEditorTranslation ( string  tag)
static

Definition at line 272 of file CharacterEditorScreen.cs.

◆ GetMouseCursorState()

CursorState Barotrauma.CharacterEditor.CharacterEditorScreen.GetMouseCursorState ( )

Definition at line 751 of file CharacterEditorScreen.cs.

◆ PrepareCharacterCopy()

void Barotrauma.CharacterEditor.CharacterEditorScreen.PrepareCharacterCopy ( )

Definition at line 3228 of file CharacterEditorScreen.cs.

◆ Select()

override void Barotrauma.CharacterEditor.CharacterEditorScreen.Select ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 114 of file CharacterEditorScreen.cs.

◆ SpawnCharacter()

Character Barotrauma.CharacterEditor.CharacterEditorScreen.SpawnCharacter ( Identifier  speciesName,
RagdollParams  ragdoll = null 
)

Definition at line 1522 of file CharacterEditorScreen.cs.

◆ Update()

override void Barotrauma.CharacterEditor.CharacterEditorScreen.Update ( double  deltaTime)
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 364 of file CharacterEditorScreen.cs.

Property Documentation

◆ Cam

override Camera Barotrauma.CharacterEditor.CharacterEditorScreen.Cam
get

Definition at line 24 of file CharacterEditorScreen.cs.

◆ Instance

CharacterEditorScreen Barotrauma.CharacterEditor.CharacterEditorScreen.Instance
staticget

Definition at line 21 of file CharacterEditorScreen.cs.

◆ SpawnedCharacter

Character Barotrauma.CharacterEditor.CharacterEditorScreen.SpawnedCharacter
get

Definition at line 39 of file CharacterEditorScreen.cs.