View Single Post
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 04-26-2017 , 13:01   Re: FAQ: Sourcemod Newbies Guide
Reply With Quote #85

Quote:
Originally Posted by BoosterGold View Post
Hi Nomis,

Is there a limit to the length of the string I can use? This is what happens:



This is the string I'm using:

PHP Code:
"<font color='#4583e8'>Automatic <font color='#e8df45'>bunny-hopping <font color='#4583e8'>is enabled. Hold <font color='#e8df45'>jump <font color='#4583e8'>and remember to <font color='#e8df45'>airstrafe!" 


https://forums.alliedmods.net/showthread.php?t=256058

Quote:
Originally Posted by KissLick View Post
So... I did some testing and HTML seems to be partialy working in PrintHintText() and UserMessage KeyHintText.

Some points I made:
  1. PrintHintText and KeyHintText seems to be working exactly the same way...
  2. CSS is not working...
  3. Only a few HTML tags are working (<font>, <b>, <i>, <u> and <br>)
  4. You can create new line with both <br> or \n
  5. HUD has only three lines (with default font size)
  6. Font
    1. Color could be set only via HEX RGB code and not names... I use this color mixer
    2. Default font size seems to be 20, but I am not sure about that...
    3. Smaller font means more lines
    4. Any custom font I tried to use with <font> gave me the same result
  7. And of course, you can combine tags...
[code
]And some images:
!1 !2 !3 !4 !5 !6 !7 !8 !9
Quote:
Originally Posted by Mitchell View Post
hint text can only display up to a certain amount of size. possibly 512, i don't remember though.

edit: oh BoosterGolds request is a bit old... sry
__________________
coding & free software

Last edited by shanapu; 04-26-2017 at 13:03.
shanapu is offline