Raised This Month: $12 Target: $400
 3% 

[CSS] Underline text in HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 06-03-2015 , 10:32   [CSS] Underline text in HUD
Reply With Quote #1

Hello,

How can i underline my text in my HUD (PrintKeyHint) ? I have seen this on a server.

Thank you again
NeXoU is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 06-03-2015 , 11:20   Re: [CSS] Underline text in HUD
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=256058
KissLick is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 06-03-2015 , 12:33   Re: [CSS] Underline text in HUD
Reply With Quote #3

You can use special chars inside a KeyHint which just looks like an underline for example, maybe there is another way too.

The only thing you can't use is a '%' It will break the box content.

Quote:
Originally Posted by KissLick View Post
@KissLick:

HintText != KeyHintText
CS:S != CS:GO
m_bNightstalker is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 06-03-2015 , 12:40   Re: [CSS] Underline text in HUD
Reply With Quote #4

Oh... Didn't see that CSS.
KissLick is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-03-2015 , 14:12   Re: [CSS] Underline text in HUD
Reply With Quote #5

Quote:
Originally Posted by m_bNightstalker View Post
The only thing you can't use is a '%' It will break the box content.
What makes you think that?
"%%" should print the percent symbol.
Mitchell is offline
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 06-05-2015 , 05:21   Re: [CSS] Underline text in HUD
Reply With Quote #6

I tested: <u> </u> --> Don't work

Have you other idea ?

Thank you again
NeXoU is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 06-05-2015 , 17:37   Re: [CSS] Underline text in HUD
Reply With Quote #7

What about this:

&oline;

Last edited by m_bNightstalker; 06-05-2015 at 17:38.
m_bNightstalker is offline
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 06-06-2015 , 20:01   Re: [CSS] Underline text in HUD
Reply With Quote #8

Quote:
Originally Posted by m_bNightstalker View Post
What about this:

&oline;
Don't work :'(
NeXoU is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 06-07-2015 , 09:29   Re: [CSS] Underline text in HUD
Reply With Quote #9

Quote:
Originally Posted by NeXoU View Post
Don't work :'(
I've tested it and it works.
m_bNightstalker is offline
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 06-09-2015 , 05:54   Re: [CSS] Underline text in HUD
Reply With Quote #10

Hello,

Quote:
new Handle:HudMessage = StartMessageOne("KeyHintText", client);
BfWriteByte(HudMessage, 1);
BfWriteString(HudMessage, "&oline; test");
EndMessage();
For me this don't work.
Thank you again
NeXoU is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode