I've been working on a simple dialogue system with a very basic Ren'py like window. My issue right now is that my text from my label is going outside of the margin. Am I using the wrong node, or am I not using it right?
I've been working on a simple dialogue system with a very basic Ren'py like window. My issue right now is that my text from my label is going outside of the margin. Am I using the wrong node, or am I not using it right?
Actinometer I'm not an expert on margin or container nodes, but I do know this:
Label
on the scene treeautowrap_mode
property, a bit below the text box.Label
correct, it should look good.Songful I've tried the other options but I get funky results from it. Is this some kind of bug or a configuration issue?
I notice my margin container gets enlarged by the child label node.
I am using 4.1.1 of Godot
.
the enlargement, i believe, is intended function.
what effect are you looking for from the label inside the margin?
my next response is gonna take a while. blame american public transit and my hunger for jelly beans.
in the meantime, maybe someone smarter than me might show up.
Songful Trying to use label for dialogue text. Nothing fancy or complex. Something similar to what you're seeing here from Ren'py. But without the Renpy buttons such as rollback, skip text, history, etc.
In the first thread image, you can see the text leaving the margin on the right which is not what I wanted.
Actinometer you're lucky. i missed the bus
if that's all you need, then it seems like a matter of messing with the Label's layout until it looks right.
as i said, I'm not familiar with margin or container nodes, i just use the anchors and call it good.
i'm about to miss the next bus, so look around the internet for some guides on how control node layouts work. i'm sure you're get the hang of it with enough experimentation, or as i said before, wait for someone smarter than me to show up.
There is a clip_contents flag under the control/rect section that should stop overspilling. But it actually doesn't look like this is what you want. Seems you have a layout problem.
This can be tricky business. Here are a few points to consider (based on the screenshots you showed):
Gamone I've changed both labels to rich text labels and that seemed to do the trick. The root node and 2 other nodes are MarginContainers. It's just that the root node does not show icon for it.
© 2022 - 2024 — McMap. All rights reserved.