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.

Newcomers DBPro Corner / declaring and defining colors???

Author
Message
Hood
15
Years of Service
User Offline
Joined: 6th Jun 2009
Location:
Posted: 17th Jun 2009 05:41
Can some one tell me how to declare colors like this:


white as dword

`now i want to define what white is so that throughout the game i
won't have to keep repeating rgb(x,y,z), but can just put in 'white'

i know the commands but forgot the syntax
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 17th Jun 2009 07:21
#define white 0xFFFFFF
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 17th Jun 2009 08:49 Edited at: 17th Jun 2009 08:49
you mean #constant, which can also be done like this

white = rgb(255,255,255)

but also like this

#constant white rgb(255,255,255)

or

#constant white (whatever number rgb spits out)

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 17th Jun 2009 08:50
I just make an array to store all the colors I use.



Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 17th Jun 2009 10:54
yes right #constant... my bad.
Hood
15
Years of Service
User Offline
Joined: 6th Jun 2009
Location:
Posted: 17th Jun 2009 20:21
thanks a lot.

I am making a program in which a prson can log on/off, create his own username etc...

Login to post a reply

Server time is: 2024-11-25 04:27:39
Your offset time is: 2024-11-25 04:27:39