Client LuaCsForBarotrauma
Editable Class Reference
Inheritance diagram for Editable:
ConditionallyEditable InGameEditable

Public Member Functions

 Editable (int maxLength=20)
 
 Editable (int minValue, int maxValue)
 
 Editable (float minValue, float maxValue, int decimals=1)
 

Public Attributes

int MaxLength
 
int DecimalCount = 1
 
int MinValueInt = int.MinValue
 
float MinValueFloat = float.MinValue
 
bool ForceShowPlusMinusButtons
 
float ValueStep
 
bool TransferToSwappedItem
 Should the value customized in the editor be applied to the new item swapped in place of this item. Used e.g. for transferring the auto operate properties from one turret to another installed on place of it. More...
 
string[] VectorComponentLabels
 Labels of the components of a vector property (defaults to x,y,z,w) More...
 
string FallBackTextTag
 If a translation can't be found for the property name, this tag is used instead More...
 
bool ReadOnly
 Currently implemented only for int and bool fields. TODO: implement the remaining types (SerializableEntityEditor) More...
 

Detailed Description

Definition at line 6 of file Editable.cs.

Constructor & Destructor Documentation

◆ Editable() [1/3]

Editable.Editable ( int  maxLength = 20)

Definition at line 37 of file Editable.cs.

◆ Editable() [2/3]

Editable.Editable ( int  minValue,
int  maxValue 
)

Definition at line 42 of file Editable.cs.

◆ Editable() [3/3]

Editable.Editable ( float  minValue,
float  maxValue,
int  decimals = 1 
)

Definition at line 48 of file Editable.cs.

Member Data Documentation

◆ DecimalCount

int Editable.DecimalCount = 1

Definition at line 9 of file Editable.cs.

◆ FallBackTextTag

string Editable.FallBackTextTag

If a translation can't be found for the property name, this tag is used instead

Definition at line 30 of file Editable.cs.

◆ ForceShowPlusMinusButtons

bool Editable.ForceShowPlusMinusButtons

Definition at line 13 of file Editable.cs.

◆ MaxLength

int Editable.MaxLength

Definition at line 8 of file Editable.cs.

◆ MinValueFloat

float Editable.MinValueFloat = float.MinValue

Definition at line 12 of file Editable.cs.

◆ MinValueInt

int Editable.MinValueInt = int.MinValue

Definition at line 11 of file Editable.cs.

◆ ReadOnly

bool Editable.ReadOnly

Currently implemented only for int and bool fields. TODO: implement the remaining types (SerializableEntityEditor)

Definition at line 35 of file Editable.cs.

◆ TransferToSwappedItem

bool Editable.TransferToSwappedItem

Should the value customized in the editor be applied to the new item swapped in place of this item. Used e.g. for transferring the auto operate properties from one turret to another installed on place of it.

Definition at line 20 of file Editable.cs.

◆ ValueStep

float Editable.ValueStep

Definition at line 14 of file Editable.cs.

◆ VectorComponentLabels

string [] Editable.VectorComponentLabels

Labels of the components of a vector property (defaults to x,y,z,w)

Definition at line 25 of file Editable.cs.