Subscenes
This commit is contained in:
@@ -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();
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user