File dialogueArea.hpp¶
-
struct DialogueArea : public UIElement¶
- #include <dialogueArea.hpp>
Public Functions
-
DialogueArea()¶
-
virtual void init()¶
Initialize the properties and callbacks.
-
virtual void update()¶
Update routine.
-
virtual void draw(Rectangle rect)¶
Draw routine using a rect.
-
void setDialogue(const DialogueBin &dialogue)¶
-
void putChar(Vector2 charMeasure, const char *c, Rectangle rect)¶
-
void chooseSection(int i, Rectangle rect)¶
-
void advanceToNextLine()¶
Public Members
-
std::string text = ""¶
-
DialogueBin dialogue¶
-
DialogueLine *line = nullptr¶
-
DialogueTextSection *section = nullptr¶
-
int frameCounter = 0¶
-
Vector2 textPos¶
-
int charIndex = 0¶
-
int lineIndex = 0¶
-
int sectionIndex = 0¶
-
bool appliedTag = false¶
-
bool finishedTyping = false¶
-
bool firstCharTyped = false¶
-
float maxLineHeight = 0.0f¶
-
bool delay = false¶
-
float delayDuration = 0.0f¶
-
float padding = 0.0f¶
-
bool dialogueFinished = false¶
-
DialogueArea()¶