xyz Yes you are right. Basically just trying to display a large book in a 2 page book format. So player can turn pages and read the book. Your implementation works for me, so just leaving this if someone want to make a more advanced implementation... maybe it's helpful.
What I tried:
- Entire text into the labels and using the line range settings to split in two pages. Works for small text, but when pasting an entire text book in a label it makes the engine explode.
- Using xyz's function to presplit the whole book string into an array of page strings based on some of the label parameters the text will be displayed at. It works perfectly for me, but for bigger implementations it's not viable bc it takes a lot for the function to do the spliting. Not to mention for dynamic font size, etc...
Again, your pseudocode was usful, so thanks a ton. But just having this itch that for bigger applications godot is flawed here. (Just trying to see where the current label node could be improved)