A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
ItemCodeDescriptionDrawer Class Reference
Inheritance diagram for ItemCodeDescriptionDrawer:
Inheritance graph
Collaboration diagram for ItemCodeDescriptionDrawer:
Collaboration graph

Public Member Functions

override float GetPropertyHeight (SerializedProperty property, GUIContent label)
 Changed the return property height to be double to cater for the additional item code description that we we draw. More...
 
override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
 Using BeginProperty / EndProperty on the parent property means that prefab ovrride logic works on the entire property More...
 

Private Member Functions

string GetItemDescription (int itemCode)
 Get the description of the item. More...
 

Detailed Description

Definition at line 6 of file ItemCodeDescriptionDrawer.cs.

Member Function Documentation

◆ GetItemDescription()

string ItemCodeDescriptionDrawer.GetItemDescription ( int  itemCode)
inlineprivate

Get the description of the item.

Parameters
itemCode
Returns

Definition at line 55 of file ItemCodeDescriptionDrawer.cs.

Here is the caller graph for this function:

◆ GetPropertyHeight()

override float ItemCodeDescriptionDrawer.GetPropertyHeight ( SerializedProperty  property,
GUIContent  label 
)
inline

Changed the return property height to be double to cater for the additional item code description that we we draw.

Parameters
property
label
Returns

Definition at line 14 of file ItemCodeDescriptionDrawer.cs.

◆ OnGUI()

override void ItemCodeDescriptionDrawer.OnGUI ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)
inline

Using BeginProperty / EndProperty on the parent property means that prefab ovrride logic works on the entire property

Parameters
position
property
label

Definition at line 25 of file ItemCodeDescriptionDrawer.cs.

Here is the call graph for this function:

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