Class TraitUI
Handles the UI that controls the representation of the ActivatedOption, including the colors and the description of the trait.
Namespace: AutoBattleFramework.BattleUI
Assembly: cs.temp.dll.dll
Syntax
public class TraitUI : MonoBehaviour
Fields
DescriptionUI
Declaration
public TraitDescriptionUI DescriptionUI
Field Value
Type | Description |
---|---|
TraitDescriptionUI |
TraitImage
Image where the TraitImage will be displayed.
Declaration
public Image TraitImage
Field Value
Type | Description |
---|---|
Image |
TraitImageBackground
Declaration
public Image TraitImageBackground
Field Value
Type | Description |
---|---|
Image |
TraitName
Declaration
public TMPro.TextMeshProUGUI TraitName
Field Value
Type | Description |
---|---|
TMPro.TextMeshProUGUI |
TraitNumber
Text where the TraitNumber will be displayed.
Declaration
public TMPro.TextMeshProUGUI TraitNumber
Field Value
Type | Description |
---|---|
TMPro.TextMeshProUGUI |
TraitNumbers
List of Images where each NumberOfTraits of TraitOptions will be displayed.
Declaration
public List<Image> TraitNumbers
Field Value
Type | Description |
---|---|
List<Image> |
Methods
GetTrait()
Returns the displayed trait.
Declaration
public Trait GetTrait()
Returns
Type | Description |
---|---|
Trait | D�splayed trait. |
OnPointerClick(PointerEventData)
If clicked inside, show the DescriptionUI.
Declaration
public void OnPointerClick(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
PointerEventData | eventData |
SetTrait(Trait, TraitListUI)
Set the trait UI, including texts, descriptions and colors.
Declaration
public void SetTrait(Trait trait, TraitListUI traitListUI)
Parameters
Type | Name | Description |
---|---|---|
Trait | trait | |
TraitListUI | traitListUI |
ShowDescriptionUI(Boolean)
Displays or hide the TraitDescriptionUI of the trait.
Declaration
public void ShowDescriptionUI(bool show)
Parameters
Type | Name | Description |
---|---|---|
Boolean | show | Show or hide the description panel. |