Adventure Creator
1.81.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
|
Public Member Functions | |
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 | CanTranslate (int index) |
Checks if a given text index can and should be translated. 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... | |
An interface for any component that has translatable strings.
bool AC.ITranslatable.CanTranslate | ( | int | index | ) |
Checks if a given text index can and should be translated.
index | The index of the translatable text |
Implemented in AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.GVar, AC.HotspotPrefix, AC.MenuLabel, AC.MenuSlider, AC.MenuButton, AC.ActionSpeech, AC.MenuToggle, AC.Objective, AC.Document, AC.MenuInput, AC.ActionMenuState, AC.ObjectiveStateLabel, AC.ObjectiveState, AC.LocalVariables, AC.MenuDrag, AC.PopUpLabelData, AC.Container, AC.InvVar, AC.ActionDialogOptionRename, AC.Variables, AC.CursorIcon, AC.ScriptedActionListExample, AC.ActionCharRename, AC.ActionRename, AC.SaveLabels, and AC.CustomTranslatableExample.
int AC.ITranslatable.GetNumTranslatables | ( | ) |
Gets the maximum number of possible translatable texts.
Implemented in AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.HotspotPrefix, AC.GVar, AC.MenuLabel, AC.MenuSlider, AC.MenuButton, AC.MenuToggle, AC.Objective, AC.ActionSpeech, AC.Document, AC.MenuInput, AC.ActionMenuState, AC.ObjectiveStateLabel, AC.ObjectiveState, AC.LocalVariables, AC.MenuDrag, AC.PopUpLabelData, AC.Container, AC.ActionDialogOptionRename, AC.Variables, AC.CursorIcon, AC.ScriptedActionListExample, AC.ActionCharRename, AC.ActionRename, AC.SaveLabels, and AC.CustomTranslatableExample.
string AC.ITranslatable.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 |
Implemented in AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.GVar, AC.HotspotPrefix, AC.MenuLabel, AC.MenuSlider, AC.MenuButton, AC.MenuToggle, AC.Objective, AC.ActionSpeech, AC.Document, AC.MenuInput, AC.ActionMenuState, AC.ObjectiveStateLabel, AC.ObjectiveState, AC.LocalVariables, AC.MenuDrag, AC.PopUpLabelData, AC.Container, AC.ActionDialogOptionRename, AC.Variables, AC.CursorIcon, AC.ScriptedActionListExample, AC.ActionCharRename, AC.SaveLabels, AC.ActionRename, and AC.CustomTranslatableExample.
string AC.ITranslatable.GetTranslatableString | ( | int | index | ) |
Gets the text to be translated, given its index.
index | The index of the translatable text |
Implemented in AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.HotspotPrefix, AC.MenuLabel, AC.GVar, AC.MenuSlider, AC.MenuButton, AC.MenuToggle, AC.Objective, AC.ActionSpeech, AC.MenuInput, AC.ActionMenuState, AC.Document, AC.ObjectiveStateLabel, AC.ObjectiveState, AC.LocalVariables, AC.MenuDrag, AC.PopUpLabelData, AC.InvVar, AC.Container, AC.ActionDialogOptionRename, AC.Variables, AC.CursorIcon, AC.ScriptedActionListExample, AC.ActionCharRename, AC.ActionRename, AC.CustomTranslatableExample, and AC.SaveLabels.
int AC.ITranslatable.GetTranslationID | ( | int | index | ) |
Gets the translation ID of a given text index.
index | The index of the translatable text |
Implemented in AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.HotspotPrefix, AC.MenuLabel, AC.GVar, AC.MenuSlider, AC.MenuButton, AC.MenuToggle, AC.Objective, AC.ActionSpeech, AC.MenuInput, AC.Document, AC.ActionMenuState, AC.ObjectiveStateLabel, AC.ObjectiveState, AC.LocalVariables, AC.MenuDrag, AC.PopUpLabelData, AC.InvVar, AC.Container, AC.ActionDialogOptionRename, AC.Variables, AC.CursorIcon, AC.ScriptedActionListExample, AC.ActionCharRename, AC.ActionRename, AC.CustomTranslatableExample, and AC.SaveLabels.
AC_TextType AC.ITranslatable.GetTranslationType | ( | int | index | ) |
Gets the translation type of a given text index.
index | The index of the translatable text |
Implemented in AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.MenuLabel, AC.HotspotPrefix, AC.MenuSlider, AC.GVar, AC.MenuButton, AC.ActionSpeech, AC.MenuToggle, AC.Objective, AC.MenuInput, AC.ActionMenuState, AC.Document, AC.ObjectiveStateLabel, AC.LocalVariables, AC.MenuDrag, AC.ObjectiveState, AC.PopUpLabelData, AC.InvVar, AC.ActionDialogOptionRename, AC.Container, AC.Variables, AC.ScriptedActionListExample, AC.ActionCharRename, AC.CursorIcon, AC.SaveLabels, AC.ActionRename, and AC.CustomTranslatableExample.
bool AC.ITranslatable.HasExistingTranslation | ( | int | index | ) |
Checks if a given text index has already been assigned a unique translation ID.
index | The index of the translatable text |
Implemented in AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.HotspotPrefix, AC.GVar, AC.MenuLabel, AC.MenuSlider, AC.MenuButton, AC.MenuToggle, AC.Objective, AC.ActionSpeech, AC.Document, AC.MenuInput, AC.ActionMenuState, AC.ObjectiveStateLabel, AC.ObjectiveState, AC.LocalVariables, AC.MenuDrag, AC.PopUpLabelData, AC.Container, AC.InvVar, AC.ActionDialogOptionRename, AC.Variables, AC.CursorIcon, AC.ScriptedActionListExample, AC.ActionCharRename, AC.ActionRename, AC.SaveLabels, and AC.CustomTranslatableExample.
bool AC.ITranslatable.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 |
Implemented in AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.GVar, AC.HotspotPrefix, AC.MenuLabel, AC.MenuSlider, AC.MenuButton, AC.ActionSpeech, AC.MenuToggle, AC.Objective, AC.Document, AC.MenuInput, AC.ActionMenuState, AC.ObjectiveStateLabel, AC.ObjectiveState, AC.LocalVariables, AC.MenuDrag, AC.PopUpLabelData, AC.Container, AC.ActionDialogOptionRename, AC.Variables, AC.CursorIcon, AC.ScriptedActionListExample, AC.ActionCharRename, AC.SaveLabels, AC.ActionRename, and AC.CustomTranslatableExample.
void AC.ITranslatable.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 |
Implemented in AC.SaveLabels, AC.CustomTranslatableExample, AC.Char, AC.Hotspot, AC.MenuSavesList, AC.InvItem, AC.ActionVarSet, AC.MenuCycle, AC.Conversation, AC.MenuJournal, AC.GVar, AC.HotspotPrefix, AC.MenuLabel, AC.MenuSlider, AC.MenuButton, AC.MenuToggle, AC.Objective, AC.ActionSpeech, AC.Document, AC.MenuInput, AC.ActionMenuState, AC.ObjectiveStateLabel, AC.ObjectiveState, AC.LocalVariables, AC.MenuDrag, AC.PopUpLabelData, AC.Container, AC.InvVar, AC.ActionDialogOptionRename, AC.Variables, AC.CursorIcon, AC.ScriptedActionListExample, AC.ActionCharRename, and AC.ActionRename.