Author Topic: Request: Centerprint to topprint/rightprint  (Read 517 times)

I'm sure this has been requested/suggested numerous times, but I need it to display more stats for my City RPG, and centerprint blocks the view.  I edited Boom's HUD prints with what i think is the function that made centerprint into rightprint, but i havent tested it.  If so, then I'll edit HUD prints and default centerprint to make them right justified.
« Last Edit: July 28, 2012, 07:49:48 PM by Gen. Hothauser »

"rightprint" is just centerprint that's surrounded by "<font align:right>" or something

"rightprint" is just centerprint that's surrounded by "<font align:right>" or something
<align:right>, but yeah.

As for top print, not practical.

<align:right>, but yeah.

As for top print, not practical.

Completely practical, if it can be done, with limitation of chat size.

and is this what would make centerprint rightprint, only with something replacing "VCEprints"?

Code: [Select]
function GameConnection::VCEPrints(%this)
{
%this.centerPrint("<just:right>" @ $VCEPrints::CenterPrint,-1,"");
%this.bottomPrint($VCEPrints::BottomPrint,-1,"");
}
« Last Edit: July 28, 2012, 09:42:09 PM by Gen. Hothauser »

he meant it's not practical to be done.

he meant it's not practical to be done.

I don't get why not.

Wait

Oh, <align:right> (tried it, didn't work, tried <just:right>, worked) in the print box, i got you

I assume that this will cause a long one-lined centerprint to be only right justified, and not columnized?
« Last Edit: July 28, 2012, 09:48:09 PM by Gen. Hothauser »

found this

Quote
<font:fontName:fontSize> - sets the font and fontsize as indicated. Example: <font:Arial Bold:20> 
<tag:???> - not sure what this does 
<color:rrggbb> - sets text color in hex format. Example: <color:ff0000> will display red text 
<bitmap:filePath> - displays a bitmap image indicated by the file path. Example: <bitmap:demo/client/ui/seperator> 
<spush> - saves the current text formatting so that temporary changes to formatting can be made. Used with spop. 
<spop> - restores the previously saved text formatting. Used with spush. See the file "3. Gui Editor.hlf" included with the TGE demo for an example of usage. 
<sbreak> - not sure what this does 
<just:left> - left justify 
<just:right> - right justify 
<just:center> - center justify 
<a:ExternalURL>LinkTitle</a> - inserts a hyperlink into the text which will open the user's browser. 
The external URL does not need the "http://" format. Example: <a:www.garagegames.com>Garage Games Website</a> 
<lmargin: ##> - sets the left margin 
<lmargin%: ##> - sets the left margin (not sure what the % does) 
<rmargin: ##> - sets the right margin 
<rmargin%: ##> - sets the right margin (not sure what the % does) 
<clip:> - makes the line a list
<div:> - not sure what this does 
<tab:##(,##,etc)> - sets the tab stops (multiple tabs are separated by commas)



I made this with what i learned today, mainly the yellow centerprint on the right, but i did use <just:center> for the bottomprint.