|
override void | Declare () |
|
override MenuElement | DuplicateSelf (bool fromEditor, bool ignoreUnityUI) |
| Creates and returns a new MenuElement that has the same values as itself. More...
|
|
override void | LoadUnityUI (AC.Menu _menu, Canvas canvas, bool addEventListeners=true) |
| Initialises the linked Unity UI GameObject. More...
|
|
override RectTransform | GetRectTransform (int _slot) |
| Gets the boundary of the element, or a slot within it. More...
|
|
override void | ShowGUI (Menu menu, System.Action< ActionListAsset > showALAEditor) |
|
override bool | ReferencesObjectOrID (GameObject gameObject, int id) |
| Checks if the Element makes reference to a particular GameObject More...
|
|
override int | GetSlotIndex (GameObject gameObject) |
| Gets the slot index that reference a particular GameObject More...
|
|
void | SetNormalGraphicTexture (Texture newTexture) |
| Updates the element's texture, provided that its graphicType = AC_GraphicType.Normal More...
|
|
override void | SetSpeech (Speech _speech) |
| Assigns the element to a specific Speech line. More...
|
|
override void | ClearSpeech () |
|
override void | OnMenuTurnOn (Menu menu) |
| Called whenever the Menu this is attached to is turned on. More...
|
|
override void | PreDisplay (int _slot, int languageNumber, bool isActive) |
| Performs all calculations necessary to display the element. More...
|
|
override void | Display (GUIStyle _style, int _slot, float zoom, bool isActive) |
| Draws the element using OnGUI. More...
|
|
override void | RecalculateSize (MenuSource source) |
| Recalculates the element's size. This should be called whenever a Menu's shape is changed. More...
|
|
|
override void | AutoSize () |
|
|
AC.Char | PortraitCharacterOverride [set] |
|
A MenuElement that provides a space for animated or still images.
◆ ClearSpeech()
override void AC.MenuGraphic.ClearSpeech |
( |
| ) |
|
|
virtual |
◆ Declare()
override void AC.MenuGraphic.Declare |
( |
| ) |
|
|
virtual |
◆ Display()
override void AC.MenuGraphic.Display |
( |
GUIStyle |
_style, |
|
|
int |
_slot, |
|
|
float |
zoom, |
|
|
bool |
isActive |
|
) |
| |
|
virtual |
Draws the element using OnGUI.
- Parameters
-
_style | The GUIStyle to draw with |
_slot | The index number of the slot to display |
zoom | The zoom factor |
isActive | If True, then the element will be drawn as though highlighted |
Reimplemented from AC.MenuElement.
◆ DuplicateSelf()
override MenuElement AC.MenuGraphic.DuplicateSelf |
( |
bool |
fromEditor, |
|
|
bool |
ignoreUnityUI |
|
) |
| |
|
virtual |
Creates and returns a new MenuElement that has the same values as itself.
- Parameters
-
fromEditor | If True, the duplication was done within the Menu Manager and not as part of the gameplay initialisation. |
ignoreUnityUI | If True, variables associated with Unity UI will not be transferred |
- Returns
- A new MenuElement with the same values as itself
Reimplemented from AC.MenuElement.
◆ GetRectTransform()
override RectTransform AC.MenuGraphic.GetRectTransform |
( |
int |
_slot | ) |
|
|
virtual |
Gets the boundary of the element, or a slot within it.
- Parameters
-
_slot | The index number of the slot to get the boundary of |
- Returns
- The boundary Rect of the slot. If the element doesn't have multiple slots, the boundary of the whole element will be returned.
Reimplemented from AC.MenuElement.
◆ GetSlotIndex()
override int AC.MenuGraphic.GetSlotIndex |
( |
GameObject |
gameObject | ) |
|
|
virtual |
Gets the slot index that reference a particular GameObject
- Parameters
-
gameObject | The GameObject to check for |
- Returns
- The slot index that references the GameObject
Reimplemented from AC.MenuElement.
◆ LoadUnityUI()
override void AC.MenuGraphic.LoadUnityUI |
( |
AC.Menu |
_menu, |
|
|
Canvas |
canvas, |
|
|
bool |
addEventListeners = true |
|
) |
| |
|
virtual |
Initialises the linked Unity UI GameObject.
- Parameters
-
_menu | The element's parent Menu |
canvas | The runtime Canvas associated with the Menu |
addEventListeners | If True, then event listeners should be added to the UI's Interactive component(s) |
Reimplemented from AC.MenuElement.
◆ OnMenuTurnOn()
override void AC.MenuGraphic.OnMenuTurnOn |
( |
Menu |
menu | ) |
|
|
virtual |
Called whenever the Menu this is attached to is turned on.
- Parameters
-
menu | The Menu this is attached to |
Reimplemented from AC.MenuElement.
◆ PreDisplay()
override void AC.MenuGraphic.PreDisplay |
( |
int |
_slot, |
|
|
int |
languageNumber, |
|
|
bool |
isActive |
|
) |
| |
|
virtual |
Performs all calculations necessary to display the element.
- Parameters
-
_slot | The index number of the slot to display |
languageNumber | The index number of the language to display text in |
isActive | If True, then the element will be drawn as though highlighted |
Reimplemented from AC.MenuElement.
◆ RecalculateSize()
override void AC.MenuGraphic.RecalculateSize |
( |
MenuSource |
source | ) |
|
|
virtual |
Recalculates the element's size. This should be called whenever a Menu's shape is changed.
- Parameters
-
source | How the parent Menu is displayed (AdventureCreator, UnityUiPrefab, UnityUiInScene) |
Reimplemented from AC.MenuElement.
◆ ReferencesObjectOrID()
override bool AC.MenuGraphic.ReferencesObjectOrID |
( |
GameObject |
gameObject, |
|
|
int |
id |
|
) |
| |
|
virtual |
Checks if the Element makes reference to a particular GameObject
- Parameters
-
gameObject | The GameObject to check for |
id | The GameObject's associated ConstantID value |
- Returns
- True if the Element references the GameObject
Reimplemented from AC.MenuElement.
◆ SetNormalGraphicTexture()
void AC.MenuGraphic.SetNormalGraphicTexture |
( |
Texture |
newTexture | ) |
|
Updates the element's texture, provided that its graphicType = AC_GraphicType.Normal
- Parameters
-
newTexture | The new texture to assign the element |
◆ SetSpeech()
override void AC.MenuGraphic.SetSpeech |
( |
Speech |
_speech | ) |
|
|
virtual |
Assigns the element to a specific Speech line.
- Parameters
-
_speech | The Speech line to assign the element to |
Reimplemented from AC.MenuElement.
◆ graphic
◆ graphicType
AC_GraphicType AC.MenuGraphic.graphicType = AC_GraphicType.Normal |
The type of graphic that is shown (Normal, DialoguePortrait, DocumentTexture, ObjectiveTexture, PageTexture)
◆ linkedJournalElementName
string AC.MenuGraphic.linkedJournalElementName |
The name of the MenuJournal element to refer to, if graphicType = GraphicType.PageTexture
◆ uiImage
Image AC.MenuGraphic.uiImage |
The Unity UI Image this is linked to (Unity UI Menus only)