diff --git a/assets/games/liminal/prefabs/VNTextbox.xml b/assets/games/liminal/prefabs/VNTextbox.xml
index 73a5db92..56a34a6c 100644
--- a/assets/games/liminal/prefabs/VNTextbox.xml
+++ b/assets/games/liminal/prefabs/VNTextbox.xml
@@ -15,18 +15,18 @@
Hello World
- How are you today?
+ How are you today?
I'm doing great, thanks!
Thanks, me too!
-
-
Glad to hear it!
I'm glad to hear it too!
What a great day!
@@ -40,5 +40,5 @@
-
+
\ No newline at end of file
diff --git a/src/dawn/games/vn/components/VNTextboxScroller.cpp b/src/dawn/games/vn/components/VNTextboxScroller.cpp
index 550a9a06..f76fba9d 100644
--- a/src/dawn/games/vn/components/VNTextboxScroller.cpp
+++ b/src/dawn/games/vn/components/VNTextboxScroller.cpp
@@ -25,9 +25,10 @@ void VNTextboxScroller::onStart() {
this->label->quadCount = 0;
this->readyToClose = false;
};
+ x();
useEvent(x, this->label->eventTextChanged);
- useEffect(x, visibleLines)();
+ useEffect(x, visibleLines);
useEvent([&](float_t delta){
auto game = this->getGame();
diff --git a/src/dawn/scene/components/ui/UIBorder.cpp b/src/dawn/scene/components/ui/UIBorder.cpp
index a4df06a6..f9b0cd12 100644
--- a/src/dawn/scene/components/ui/UIBorder.cpp
+++ b/src/dawn/scene/components/ui/UIBorder.cpp
@@ -16,13 +16,11 @@ UIBorder::UIBorder(SceneItem *item) :
}
float_t UIBorder::getContentWidth() {
- if(this->texture != nullptr) return this->texture->getWidth();
- return this->width;
+ return this->width - this->borderSize._realValue.x * 2.0f;
}
float_t UIBorder::getContentHeight() {
- if(this->texture != nullptr) return this->texture->getHeight();
- return this->height;
+ return this->height - this->borderSize._realValue.y * 2.0f;
}
float_t UIBorder::getChildOffsetX() {