| 07-24-2006, 10:54 PM | #1 |
So you always wanted to do 2 things... Hide all unit portraits and Print Text into the actual error message area as well as below the UI and into parts of the Unit display area!! Yes I know ALL of you have been dying to do these... First off if you use Code:
ShowInterface( false, 0) ShowInterface( true, bj_CINEMODE_INTERFACEFADE) Which will show the surrounding UI after a cinematic all will work fine but IF you set the interfacefade to 0, you will no longer have unit portraits. Key is to set the # after the true to 0 :P Find #2 was something that caused me great frustration and possibly has been for others but they didnt know why.... If you look at the folowing youll see a typical errormessage generator with one major difference.... Code:
function ErrorMessage takes player pl, string ss returns nothing local integer p = GetPlayerId( pl) local string s = GetForeignStr( p, ss) if GetLocalPlayer( ) == pl then call ClearTextMessages() endif call DisplayTimedTextToPlayer( pl, 0, 0, 5, "\n\n\n\n " + GetStr( "gold") + s + "|r" + "\n\n\n\n\n\n\n\n\n\n\n\n") call PlaySoundQuick( pl, "InterfaceError") endfunction And youll see a bunch of \n s, and a huge amount of spaces....... turns out that if u overload the display function with over the maximum lines it can print out it will push the stuff to the bottom of the page. This allows me to place the error message in a better spot and allows you to put all sorts of interesting stuff within the Unit Display area. For example you could put messages from other players that you dont like... "Hi Newb, Im hacking your computer have fun...." Im sure would freak someone out for a laugh.. Anyways, Have fun! |
| 07-24-2006, 11:02 PM | #2 |
Hehe... No. Printing the messages below interface was discovered by me actualy and the location of the text depends on resolution, so if bob has 800x600 it will print ok but for jenny who has 640x480 it will print in the wrong place. Hiding portraits was discovered by PitzerMike (i think cause its in WEU). |
| 07-24-2006, 11:35 PM | #3 | |
Quote:
As with anything stuff is discovered over and over. I havent seen anyone post on these subjects so to the first poster goes the spoils. Also I discovered the text one years ago just rediscovered it now. |
| 07-24-2006, 11:36 PM | #4 |
Did anyone discover any means to change a unit's proper name? I remember we were discussing this somewhere else, but I don't remember ever hearing a definitive "yes" or "no". |
| 07-25-2006, 08:38 AM | #5 | |
Quote:
The answer is a definitive no. |
