Pokemon Unity
A pokemon clone made using Unity
|
The BattleDialogBox manages the dialog boxes in the battle scene More...
Public Member Functions | |
void | SetDialog (string dialog) |
Set the dialog box text More... | |
IEnumerator | TypeDialog (string dialog) |
Smoothly animate the dialog on the dialog box More... | |
void | SetDialogTextActive (bool enabled) |
Show/hide the dialog text More... | |
void | SetActionSelectorActive (bool enabled) |
Show/hide the action selector More... | |
void | SetMoveSelectorActive (bool enabled) |
Show/hide the move selector and details More... | |
void | SetChoiceBoxActive (bool enabled) |
Show/hide the choice box More... | |
void | SetMoveNames (List< Move > moves) |
Update the move selection UI with the move names More... | |
void | UpdateActionSelection (int selectedAction) |
Update the action selection UI with the selected action More... | |
void | UpdateMoveSelection (int selectedMove, Move move) |
Update the move selection UI with the selected move More... | |
void | UpdateChoiceBox (bool yesSelected) |
Update the choice box More... | |
The BattleDialogBox manages the dialog boxes in the battle scene
Definition at line 9 of file BattleDialogBox.cs.
void BattleDialogBox.SetActionSelectorActive | ( | bool | enabled | ) |
Show/hide the action selector
enabled | Whether to show or hide the action selector |
Definition at line 82 of file BattleDialogBox.cs.
void BattleDialogBox.SetChoiceBoxActive | ( | bool | enabled | ) |
Show/hide the choice box
enabled | Whether to show or hide the choice box |
Definition at line 101 of file BattleDialogBox.cs.
void BattleDialogBox.SetDialog | ( | string | dialog | ) |
Set the dialog box text
dialog | The text to set |
Definition at line 43 of file BattleDialogBox.cs.
void BattleDialogBox.SetDialogTextActive | ( | bool | enabled | ) |
Show/hide the dialog text
enabled | Whether to show or hide the dialog text |
Definition at line 73 of file BattleDialogBox.cs.
void BattleDialogBox.SetMoveNames | ( | List< Move > | moves | ) |
Update the move selection UI with the move names
moves | The list of moves to set on the UI |
Definition at line 110 of file BattleDialogBox.cs.
void BattleDialogBox.SetMoveSelectorActive | ( | bool | enabled | ) |
Show/hide the move selector and details
enabled | Whether to show or hide the move selector amd details |
Definition at line 91 of file BattleDialogBox.cs.
IEnumerator BattleDialogBox.TypeDialog | ( | string | dialog | ) |
Smoothly animate the dialog on the dialog box
dialog | The text to animate |
Definition at line 52 of file BattleDialogBox.cs.
void BattleDialogBox.UpdateActionSelection | ( | int | selectedAction | ) |
Update the action selection UI with the selected action
selectedAction | The selected action |
Definition at line 129 of file BattleDialogBox.cs.
void BattleDialogBox.UpdateChoiceBox | ( | bool | yesSelected | ) |
Update the choice box
selectedChoice | Whether or not the "yes" options is selected |
Definition at line 170 of file BattleDialogBox.cs.
void BattleDialogBox.UpdateMoveSelection | ( | int | selectedMove, |
Move | move | ||
) |
Update the move selection UI with the selected move
selectedMove | The index of the selected move |
move | The selected move |
Definition at line 145 of file BattleDialogBox.cs.