|
| CursorIcon () |
|
| CursorIcon (CursorIcon cursorIcon) |
|
| CursorIcon (int[] idArray) |
| A Constructor that generates a unique id number. More...
|
|
void | UpdateLabel (int languageNumber) |
|
string | GetLabel (int languageNumber) |
| Gets the icon's display name. More...
|
|
string | GetButtonName () |
| Gets the name of the expected input button that is used to quick-select the cursor (only applies if SettingsManager's interactionMethod is ChooseInteractionThenHotspot). More...
|
|
void | Copy (CursorIcon _cursorIcon, bool includeTranslation) |
| Copies the values from another CursorIcon. More...
|
|
string | GetTranslatableString (int index) |
| Gets the text to be translated, given its index. More...
|
|
int | GetTranslationID (int index) |
| Gets the translation ID of a given text index. More...
|
|
AC_TextType | GetTranslationType (int index) |
| Gets the translation type of a given text index. More...
|
|
void | UpdateTranslatableString (int index, string updatedText) |
|
int | GetNumTranslatables () |
| Gets the maximum number of possible translatable texts. More...
|
|
bool | HasExistingTranslation (int index) |
| Checks if a given text index has already been assigned a unique translation ID. More...
|
|
void | SetTranslationID (int index, int _lineID) |
| Sets the translation ID of a given text index More...
|
|
string | GetOwner (int index) |
| Gets the name of the translatable text's owner. In the case of speech text, it is the name of the character. In the case of menu element text, it is the name of the menu element. More...
|
|
bool | OwnerIsPlayer (int index) |
| Checks if the translatable text's owner is a Player. This is necessary for speech lines, since multiple player prefabs can feasibly share the same line. More...
|
|
bool | CanTranslate (int index) |
| Checks if a given text index can and should be translated. More...
|
|
| CursorIconBase () |
|
void | Copy (CursorIconBase _icon) |
| Copies the values from another CursorIconBase. More...
|
|
void | DrawAsInteraction (Rect _rect, bool isActive) |
| Draws the graphic as part of a Menu, for when it's displayed within a MenuGraphic or MenuInteraction. More...
|
|
UnityEngine.Sprite | GetSprite () |
| Gets a Sprite based on the texture supplied. The Sprite will be generated on the fly if it does not already exist. More...
|
|
UnityEngine.Sprite | GetAnimatedSprite (int _frameIndex) |
| Gets a Sprite based on the animated texture supplied. The Sprite will be generated on the fly if it does not already exist. More...
|
|
UnityEngine.Sprite | GetAnimatedSprite (bool isActive) |
| Gets a Sprite based on the animated texture supplied, when the texture is used within a MenuElement (MenuGraphic or MenuInteraction). The Sprite will be generated on the fly if it does not already exist. More...
|
|
void | ReplaceTexture (Texture newTexture) |
| Replaces the icon's texture, and also clears internal caches. More...
|
|
void | ClearSprites () |
|
Texture2D | GetAnimatedTexture (bool canAnimate=true) |
| Gets a slice of the texture that represents the current frame, if the texture consists of animated frames. More...
|
|
string | GetName () |
| Gets a unique identifier, based on the texture and current animation frame. More...
|
|
void | ClearCache () |
| Clears the animated Texture2D and Sprite caches. More...
|
|
Texture | Draw (Vector2 centre, bool canAnimate=true) |
| Draws the texture as a cursor icon More...
|
|
Rect | GetAnimatedRect () |
| Gets a Rect that describes a slice of the animated texture that represents the current frame. More...
|
|
Rect | GetAnimatedRect (int _frameIndex) |
| Gets a Rect that describes a slice of the animated texture that represents a specific frame. More...
|
|
void | Reset () |
|
void | ShowGUI (bool includeSize, bool includeAlwaysAnimate=true, string _label="Texture:", CursorRendering cursorRendering=CursorRendering.Software, string apiPrefix="", string tooltip="") |
|
A data container for interaction cursor icons. These are stored in CursorManager.