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

Public Member Functions

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

Public Attributes

int MaxLength = -1
 Maximum length of the value if the value is a string. Only has an effect is larger than 0. More...
 
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 ( )

Definition at line 40 of file Editable.cs.

◆ Editable() [2/3]

Editable.Editable ( int  minValue,
int  maxValue 
)

Definition at line 44 of file Editable.cs.

◆ Editable() [3/3]

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

Definition at line 50 of file Editable.cs.

Member Data Documentation

◆ DecimalCount

int Editable.DecimalCount = 1

Definition at line 12 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 33 of file Editable.cs.

◆ ForceShowPlusMinusButtons

bool Editable.ForceShowPlusMinusButtons

Definition at line 16 of file Editable.cs.

◆ MaxLength

int Editable.MaxLength = -1

Maximum length of the value if the value is a string. Only has an effect is larger than 0.

Definition at line 11 of file Editable.cs.

◆ MinValueFloat

float Editable.MinValueFloat = float.MinValue

Definition at line 15 of file Editable.cs.

◆ MinValueInt

int Editable.MinValueInt = int.MinValue

Definition at line 14 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 38 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 23 of file Editable.cs.

◆ ValueStep

float Editable.ValueStep

Definition at line 17 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 28 of file Editable.cs.