Quote:
|
Originally Posted by ChibiChibiLuc
Who doesn't know how to make columns?
(Lawl.  )
|
What you'd expect from the Homoerotic God of GraalScript z-z Yen!
Well anyway I figured it out so I'll share my knowledge with the rest of Graal.
In the GuiTextListCtrl, there is an option called 'columns'
NPC Code:
columns - string - of format "0 16", offset of the tabulators
Tabulators, hmm, let's see, that's "\t" in console text, right? Right! So let's do this:
NPC Code:
...Gui Script Here...
columns = "0 16 32 48";
...Other script stuff...
(GuiTextListCtrl.name).addText(str1 @ "\t\t" @ str2);
So yeah, that would mean that str2 would appear 32 pixels to the right of the left edge, and str1 would appear at the left edge. Those numbers, "0 16 32 48", are where, in pixels, the tabulators stop. So the first \t you add stops at a 16 pixel indent, then the second one stops at 32, then the third 48.
Note, if you add a fourth indent without specifying where the indent ends, it just won't show the text. So, if I do
NPC Code:
(GuiTextListCtrl.name).addText(str1 @ "\t\t\t\t" @ str2);
With the column setup I set before, then str2 would not show inside the GuiTextListCtrl.
I wonder if I've confused anyone o-o