Subscenes

This commit is contained in:
2023-01-14 22:06:35 -08:00
parent 9505dd9f06
commit 2e55754c49
50 changed files with 733 additions and 751 deletions

View File

@@ -105,7 +105,7 @@ void VisualNovelTextbox::textboxOnSceneUpdate() {
),
this->border.getBorderSize() + this->labelPadding
),
1.0f
5.0f
);
this->eventNewPage.invoke();
}
@@ -167,6 +167,10 @@ void VisualNovelTextbox::setFontSize(float_t fontSize) {
this->label.updateMesh();
}
float_t VisualNovelTextbox::getFontSize() {
return this->label.getFontSize();
}
void VisualNovelTextbox::setLabelPadding(glm::vec2 padding) {
this->labelPadding = padding;
this->updatePositions();

View File

@@ -98,6 +98,13 @@ namespace Dawn {
*/
void setFontSize(float_t fontSize);
/**
* Returns the current font size.
*
* @return Font size.
*/
float_t getFontSize();
/**
* Sets the padding of the label. This will increase the spacing between
* the text and the border.