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 Studio Chat / drop-shadow on text

Author
Message
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Apr 2019 10:36
Here's a little drop-shadow function for anyone interested:


enjoy!
Kevin Cross
20
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 29th Apr 2019 11:40
I think an UpdateTextShadow(text as integer) is also needed if you move the text after creating the shadow.
OryUI - A WIP AGK2 UI Framework
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 29th Apr 2019 12:40
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 1st May 2019 15:48
It looks like there's something wrong with the bit that sets the max width based on the text total width. Sometimes it looks fine, other times it drops the last word of the shadow down to the next line, so I'll need to re-think. It's a shame there isn't a "GetTextMaxWidth" command.

Login to post a reply

Server time is: 2024-04-20 09:27:54
Your offset time is: 2024-04-20 09:27:54