# IDialogueUIControl

## SetDialogueController(DialogueController dialogueController)

```
Called by the dialogue controller in the scene, 
which passes a reference to the dialogue controller to your dialogue ui script.
```

## OnDialogueStart()

```
Called the first time a dialogue starts
```

## ShowNextDialogueText(DialogueEventData dialogueEventData)

```
Called every time a new dialogue text is requested
```

## ShowChoices(DialogueEventData dialogueEventData)

```
Called when choices are requested. To build the UI choices list.
```

## UpdateTimer(float \_remainingTime, float \_totalTime)

```
 Constantly called by DialogueController to update the timer UI.
```

## OnDialogueExit()

```
Called when dialogue is finished, by the OnExitDialogue node.
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://giantgrey.gitbook.io/databrain/add-ons/dialogue/api/idialogueuicontrol.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
