#include <DialogueComponent.hpp>
|
| void | init () override |
| void | destroy () override |
| void | update (ae::q20_12_t) override |
| | Core update loop that renders & advances through dialogue.
|
| ae::ComponentTypeID | getType () const override |
| void | configureDialogue (const DialogueConfig &config) |
| | Configure the dialogue system.
|
| void | start (Dialogue *firstLine) |
| | Start the currently loaded dialogue.
|
| void | end () |
| | End the dialogue display.
|
Definition at line 16 of file DialogueComponent.hpp.
◆ advanceTo()
| void DialogueComponent::advanceTo |
( |
Dialogue * | next | ) |
|
|
private |
◆ configureDialogue()
| void DialogueComponent::configureDialogue |
( |
const DialogueConfig & | config | ) |
|
Configure the dialogue system.
Required to call before calling start().
- Parameters
-
| config | The struct containing the dialogue configuration to apply. |
Definition at line 176 of file DialogueComponent.cpp.
◆ destroy()
| void DialogueComponent::destroy |
( |
| ) |
|
|
override |
◆ end()
| void DialogueComponent::end |
( |
| ) |
|
◆ getType()
| ae::ComponentTypeID DialogueComponent::getType |
( |
| ) |
const |
|
inlineoverride |
◆ init()
| void DialogueComponent::init |
( |
| ) |
|
|
override |
◆ renderAnimFrame()
| void DialogueComponent::renderAnimFrame |
( |
| ) |
|
|
private |
◆ renderOptions()
| void DialogueComponent::renderOptions |
( |
| ) |
|
|
private |
◆ skipOrContinueText()
| bool DialogueComponent::skipOrContinueText |
( |
| ) |
|
|
private |
Handle input while the line is still being displayed.
Finishes revealing the current page, or advances to the next page if the current one is full.
- Returns
- true if input was consumed to finish revealing the current page or advance to the next page; false if the line is fully displayed.
Definition at line 277 of file DialogueComponent.cpp.
◆ start()
| void DialogueComponent::start |
( |
Dialogue * | firstLine | ) |
|
◆ submitToManager()
| void DialogueComponent::submitToManager |
( |
| ) |
|
|
inlineoverrideprotected |
◆ update()
| void DialogueComponent::update |
( |
ae::q20_12_t | | ) |
|
|
override |
Core update loop that renders & advances through dialogue.
- Parameters
-
| dt | Fixed-point delta time passed from the aegis engine loop (currently unused). |
swap the background exactly once per dialogue line, on the first frame, and only if the image has actually changed
Definition at line 23 of file DialogueComponent.cpp.
◆ closing
| bool DialogueComponent::closing = false |
|
private |
◆ current
| Dialogue* DialogueComponent::current = nullptr |
|
private |
◆ doRenderOptions
| bool DialogueComponent::doRenderOptions = false |
|
private |
◆ opening
| bool DialogueComponent::opening = false |
|
private |
◆ optionCount
| int DialogueComponent::optionCount = 0 |
|
private |
◆ prevKeys
| u32 DialogueComponent::prevKeys = 0 |
|
private |
◆ renderBust
| bool DialogueComponent::renderBust = true |
|
private |
◆ screen
◆ selectedOption
| int DialogueComponent::selectedOption = 0 |
|
private |
◆ text
◆ textAlt
◆ TYPE_ID
The documentation for this class was generated from the following files: