Raised This Month: $32 Target: $400
 8% 

[INC] ColorVariables


Post New Thread Reply   
 
Thread Tools Display Modes
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 07-06-2017 , 11:00   Re: [INC] ColorVariables
Reply With Quote #21

Any way to make a colored PrintHintText?
__________________
condolent is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 07-06-2017 , 18:18   Re: [INC] ColorVariables
Reply With Quote #22

Just do <font color='#XXXXXX'> before all the coloured things, where XXXXXX is the RGB hex code. Can also do other stuff like italics bolding and underline.
hmmmmm is offline
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 07-06-2017 , 19:27   Re: [INC] ColorVariables
Reply With Quote #23

Quote:
Originally Posted by hmmmmm View Post
Just do <font color='#XXXXXX'> before all the coloured things, where XXXXXX is the RGB hex code. Can also do other stuff like italics bolding and underline.
Do you know if it's possible to have different colors in one hint-message? I managed to get the first sentence colored but the next one isn't even printing. This is the code:
PHP Code:
<font color='#41a0f4'>Contesters left:</font> <font color='#803ca1'>{1}</font
__________________
condolent is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 07-07-2017 , 02:23   Re: [INC] ColorVariables
Reply With Quote #24

I think you should make a new thread rather than using this one, but multiple colours works fine for me.
e.g.
PHP Code:
FormatEx(C_Buffersizeof(C_Buffer), "\t<font size='20'><font color='#FFFFFF'>WHATEVER<font color='%s'>HELLO</font></font><b>\n"C_Hex);
FormatEx(C_Buffersizeof(C_Buffer), "%sTime: <font color='%s'>%s</font>"C_BufferC_TimeColourC_Time);
PrintHintText(clientC_Buffer); 
hmmmmm is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 07-19-2017 , 10:02   Re: [INC] ColorVariables
Reply With Quote #25

I have problem

Issue on GitHub
https://github.com/KissLick/ColorVariables/issues/4

IDK how to fix that.

P.S. I have ColorVariables with new syntax (https://github.com/KissLick/ColorVariables/pull/3)
__________________
MAGNAT2645 is offline
Nerus
Senior Member
Join Date: Aug 2010
Location: Poland
Old 08-05-2022 , 09:38   Re: [INC] ColorVariables
Reply With Quote #26

PR: tinny fix for the new SM v1.11 https://github.com/PremyslTalich/ColorVariables/pull/7
Removing some warnings
__________________
Nerus 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 09:56.


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