Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Expansions.Missions.Editor.MEGUIScoreRangeItem Class Reference
Inheritance diagram for Expansions.Missions.Editor.MEGUIScoreRangeItem:
Expansions.Missions.Editor.MEGUIScoreRangeTimeItem

Public Member Functions

MEGUIScoreRangeItem Create (ScoreRange scoreRange, MEGUI_ScoreRangeList attrib, Transform parent, System.Action< MEGUIScoreRangeItem, ScoreRange > onDeleteItem, System.Action onUpdateValue)
 Creates a new instance of this control, and setup it More...
 
void Terminate ()
 Terminates this instance More...
 

Public Attributes

TMP_InputField maxRangeInput
 
TMP_InputField minRangeInput
 
Button removeButton
 Button used to remove this score range item More...
 
TMP_InputField scoreInput
 

Protected Member Functions

void OnInputValueChange (string value)
 
void OnRemoveButton ()
 
void OnScoreInputEndEdit (string value)
 
virtual void Setup (ScoreRange scoreRange)
 Setup this score range instance with the values of the supplied score range More...
 

Protected Attributes

MEGUI_ScoreRangeList attrib
 
bool isDirty = false
 
System.Action
< MEGUIScoreRangeItem,
ScoreRange
OnDeleteItem
 Callback triggered on the remove button click More...
 
System.Action onUpdateValue
 Callback triggered on value change More...
 
ScoreRange scoreRange
 Reference to the score range More...
 

Member Function Documentation

MEGUIScoreRangeItem Expansions.Missions.Editor.MEGUIScoreRangeItem.Create ( ScoreRange  scoreRange,
MEGUI_ScoreRangeList  attrib,
Transform  parent,
System.Action< MEGUIScoreRangeItem, ScoreRange onDeleteItem,
System.Action  onUpdateValue 
)
inline

Creates a new instance of this control, and setup it

Parameters
scoreRangeScore range instance
attribScore range list attribute
parentParent transform
onDeleteItemCallback triggered on delete item
onUpdateValueCallback triggered on value update
Returns
void Expansions.Missions.Editor.MEGUIScoreRangeItem.OnInputValueChange ( string  value)
inlineprotected
void Expansions.Missions.Editor.MEGUIScoreRangeItem.OnRemoveButton ( )
inlineprotected
void Expansions.Missions.Editor.MEGUIScoreRangeItem.OnScoreInputEndEdit ( string  value)
inlineprotected
virtual void Expansions.Missions.Editor.MEGUIScoreRangeItem.Setup ( ScoreRange  scoreRange)
inlineprotectedvirtual

Setup this score range instance with the values of the supplied score range

Parameters
scoreRangeScore range instance

Reimplemented in Expansions.Missions.Editor.MEGUIScoreRangeTimeItem.

void Expansions.Missions.Editor.MEGUIScoreRangeItem.Terminate ( )
inline

Terminates this instance

Member Data Documentation

MEGUI_ScoreRangeList Expansions.Missions.Editor.MEGUIScoreRangeItem.attrib
protected
bool Expansions.Missions.Editor.MEGUIScoreRangeItem.isDirty = false
protected
TMP_InputField Expansions.Missions.Editor.MEGUIScoreRangeItem.maxRangeInput
TMP_InputField Expansions.Missions.Editor.MEGUIScoreRangeItem.minRangeInput
System.Action<MEGUIScoreRangeItem, ScoreRange> Expansions.Missions.Editor.MEGUIScoreRangeItem.OnDeleteItem
protected

Callback triggered on the remove button click

System.Action Expansions.Missions.Editor.MEGUIScoreRangeItem.onUpdateValue
protected

Callback triggered on value change

Button Expansions.Missions.Editor.MEGUIScoreRangeItem.removeButton

Button used to remove this score range item

TMP_InputField Expansions.Missions.Editor.MEGUIScoreRangeItem.scoreInput
ScoreRange Expansions.Missions.Editor.MEGUIScoreRangeItem.scoreRange
protected

Reference to the score range


The documentation for this class was generated from the following file: