![]() |
Adventure Creator
1.78.0
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |||
GVar | GetVariable (int _id) | ||
Gets a variable with a particular ID value More... | |||
GVar | GetVariable (int _id, VariableType _type) | ||
Gets a variable with a particular ID value and type More... | |||
GVar | GetVariable (string _name) | ||
Gets a variable with a particular name/summary>
| |||
GVar | GetVariable (string _name, VariableType _type) | ||
Gets a variable with a particular ID value and type 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... | |||
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... | |||
AC_TextType | GetTranslationType (int index) | ||
Gets the translation type of a given text index. More... | |||
bool | CanTranslate (int index) | ||
Checks if a given text index can and should be translated. More... | |||
Public Attributes | |
List< GVar > | vars = new List<GVar>() |
string | filter |
Vector2 | scrollPos |
Protected Member Functions | |
void | Start () |
This component allows variables to be stored on a GameObject.
bool AC.Variables.CanTranslate | ( | int | index | ) |
Checks if a given text index can and should be translated.
index | The index of the translatable text |
Implements AC.ITranslatable.
int AC.Variables.GetNumTranslatables | ( | ) |
Gets the maximum number of possible translatable texts.
Implements AC.ITranslatable.
string AC.Variables.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.
index | The index of the translatable text |
Implements AC.ITranslatable.
string AC.Variables.GetTranslatableString | ( | int | index | ) |
Gets the text to be translated, given its index.
index | The index of the translatable text |
Implements AC.ITranslatable.
int AC.Variables.GetTranslationID | ( | int | index | ) |
Gets the translation ID of a given text index.
index | The index of the translatable text |
Implements AC.ITranslatable.
AC_TextType AC.Variables.GetTranslationType | ( | int | index | ) |
Gets the translation type of a given text index.
index | The index of the translatable text |
Implements AC.ITranslatable.
GVar AC.Variables.GetVariable | ( | int | _id | ) |
Gets a variable with a particular ID value
_id | The ID number of the variable to get |
GVar AC.Variables.GetVariable | ( | int | _id, |
VariableType | _type | ||
) |
Gets a variable with a particular ID value and type
_id | The ID number of the variable to get |
_type | The type of variable to get |
GVar AC.Variables.GetVariable | ( | string | _name, |
VariableType | _type | ||
) |
Gets a variable with a particular ID value and type
_name | The name of the variable to get |
_type | The type of variable to get |
bool AC.Variables.HasExistingTranslation | ( | int | index | ) |
Checks if a given text index has already been assigned a unique translation ID.
index | The index of the translatable text |
Implements AC.ITranslatable.
bool AC.Variables.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.
index | The index of the translatable text |
Implements AC.ITranslatable.
void AC.Variables.SetTranslationID | ( | int | index, |
int | lineID | ||
) |
Sets the translation ID of a given text index
index | The index of the translatable text |
lineID | The new translation ID to assign the translatable text |
Implements AC.ITranslatable.