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.

Dark GDK / Text being hidden by background image

Author
Message
zobdos
16
Years of Service
User Offline
Joined: 8th Sep 2008
Location:
Posted: 8th Sep 2008 22:24
Hello. I am new to Dark GDK but not c++, this is my first post.

I have been playing around with the dbText, dbCenterText, and dbPrint functions, but I've ran into a little trouble.

They work as expected, but when I use a background image, the text gets covered by that image.

How can I bring the text to the foreground so that it can be seen?

My code looks something like this:
...

...

I appreciate any help I get.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 9th Sep 2008 01:59
Not sure of this but try

void dbDrawSpritesFirst ( void )

This is meant to work with 3D objects but I think someone once said it works to keep text on top.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
zobdos
16
Years of Service
User Offline
Joined: 8th Sep 2008
Location:
Posted: 9th Sep 2008 18:34
That worked like a charm.

Thanks for the tip.
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 25th Nov 2008 03:49
this one ought to be stickied or something. i completely avoided the GDK's text functions until i found this.

~you can call me lantz~

Login to post a reply

Server time is: 2024-11-25 07:23:42
Your offset time is: 2024-11-25 07:23:42