Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Sat Apr 17, 2004 5:37 am   

Status line justification
 
Is there any way to justify a status bar entry to the right or left of the bar? I'd like to justify one of my entries to the right of the bar, but i can't seem to find any command to do that...
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Sat Apr 17, 2004 5:24 pm   
 
quote:
Originally posted by Aarlot

Is there any way to justify a status bar entry to the right or left of the bar? I'd like to justify one of my entries to the right of the bar, but i can't seem to find any command to do that...



I use the %format function to define my status line this could help you, you would have to tweak the values to get them to fit correctly
on your screen but mine works like this.

#ST {%format("&-30s &25s", @var1, @var2)}


Pretty much it means the first var is left aligned , and the next 30 columns are reserved for my first var, the next 25 columns are reserved for my second var and justified right within those 25 columns
(NOT RIGHT ALIGNED ON THE STATUS BAR) but you can tweak the format code for your display with %format to get it to look like you want.

But without having a builtin way to anchor items to the right or the left of the status line itself (which i dont think there is) or a way of getting the number of visible chars the status line can display at a giving time i think something like this is the best you can do.

Cheers, Jesse
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net