Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Can you change background color of text?

Author
Message
Rickynzx
12
Years of Service
User Offline
Joined: 19th Dec 2011
Location: Troon, Scotland
Posted: 9th Jan 2012 02:52
Hi guys,

Is there any way to change the background color of text?

Rickynzx
Funnell7
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 9th Jan 2012 08:45
You mean the 'Print' Colour, right? Try SetPrintColor(0, 0, 0)...
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Jan 2012 10:38
I think he does mean the colour behind the text, and no there isn't currently. Maybe add it as an enhancement request on the bug board?

Preben
AGK Studio Developer
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 9th Jan 2012 11:13
Just put a sprite behind the text

best regards Preben Eriksen,
Rickynzx
12
Years of Service
User Offline
Joined: 19th Dec 2011
Location: Troon, Scotland
Posted: 9th Jan 2012 11:15
Yeah, its the background colour behind text.

Ill try suggesting an enhancement, not sure if its something many people want though, as i have not seen it mentionec in the forum before.

Rickynzx
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Jan 2012 23:42 Edited at: 9th Jan 2012 23:43
I use getTextHeight() and getTextWidth() to work out the size of box I need to put behind my text. I add on 10% and set the depth one less than the text. My box is a sprite with no image, and using transparency gets a nice effect.

What I've described is my displayMessage() routine, I just pass the text and have a standard function to do all of the above.

Rickynzx
12
Years of Service
User Offline
Joined: 19th Dec 2011
Location: Troon, Scotland
Posted: 10th Jan 2012 12:08
Thanks, was thinking along those lines, about using a sprite behind the text.

Rickynzx

Login to post a reply

Server time is: 2024-04-26 01:45:10
Your offset time is: 2024-04-26 01:45:10