I'm trying to make a GUI that can have a scrollbar for text.. however, anything I've looked at is used for containers/item fields. And to be quite frank, I don't fully understand.
String tab1text = localize("gui.tab1.text").replace("\\n", "\n");
fontRendererObj.drawSplitString(tab1text, guiX + 10, guiY + 20, 158, 0x00000);
That's how I'm currently rendering my text, and this is how it shows up;
Essentially what I want it to do is stop showing anything after the 12th line and allow the scroll bar to move the text up.
I'm totally inexperienced with GUIs so I have no clue what I'm doing.
Anything that points me in the right direction will help.
Thanks!