Author Topic: Positioning print.  (Read 538 times)

I'm trying to create a small text ui for a modification I'm making, but I can't seem to get the positioning just right.

What I want is the data to be in the top right hand corner, or in the middle off to the right hand side.

I've tried these two things:
Quote
centerprint(%this,"","\c6<just:right>Stuffs: \c3$" @ MyMod.getData(%this.bl_id).valueStuffs);
And
Quote
messageclient(%this,"","\c6<just:right>Stuffs: \c3$" @ MyMod.getData(%this.bl_id).valueStuffs);

I'd also like to know how I go about placing text on a new line, while still being in <just:right>

Thanks for your help.

Try this:
Code: [Select]
%this.centerPrint("<just:right>\c6Stuffs: \c3$" @ MyMod.getData(%this.bl_id).valueStuffs,2);
You will have to keep calling the command to update the display, though.

<br> adds a new line, and should keep the text in <just:right>. If not, just use <br><just:right>.

Thanks, I managed to figure it out.
But is there a way to slightly shift it over?

Like, it's on the right hand side.. but it still has a good 3cm before it touches the edge. Is there a way to move it there?
« Last Edit: January 03, 2009, 08:29:28 AM by Rynst »