Class ItemDescriptionUI
Allows the visualization of an item itemModificator.
Namespace: AutoBattleFramework.BattleUI
Assembly: cs.temp.dll.dll
Syntax
public class ItemDescriptionUI : MonoBehaviour
Fields
item
GameItem reference.
Declaration
public GameObject item
Field Value
| Type | Description |
|---|---|
| GameObject |
itemDescription
Item description text reference.
Declaration
public TMPro.TextMeshProUGUI itemDescription
Field Value
| Type | Description |
|---|---|
| TMPro.TextMeshProUGUI |
itemImage
Item image reference.
Declaration
public Image itemImage
Field Value
| Type | Description |
|---|---|
| Image |
itemName
Item name text reference.
Declaration
public TMPro.TextMeshProUGUI itemName
Field Value
| Type | Description |
|---|---|
| TMPro.TextMeshProUGUI |
MoveToItemPosition
Set to true if you want the panel to be displayed on the selected item.
Declaration
public bool MoveToItemPosition
Field Value
| Type | Description |
|---|---|
| Boolean |
Methods
SetUI(GameObject, StatsModificator, Sprite, String, String)
Set the itms stats, image and texts in the UI:
Declaration
public void SetUI(GameObject item, StatsModificator statsModificator, Sprite sprite, string name, string description)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | item | GameItem to show. |
| StatsModificator | statsModificator | Item modificator. |
| Sprite | sprite | Item image. |
| String | name | Name of the item. |
| String | description |
ShowUI(Boolean)
If true, show the stats of the item.
Declaration
public void ShowUI(bool show)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | show | Show the stats of the characters. |
ShowUI(Boolean, Vector3)
If true, show the stats of the item.
Declaration
public void ShowUI(bool show, Vector3 fixedPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | show | Show the stats of the characters. |
| Vector3 | fixedPosition | The panel is moved to this position. |