Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Change digit font color #300383
12/01/09 21:52
12/01/09 21:52
Joined: Aug 2009
Posts: 19
D
Dominator Offline OP
Newbie
Dominator  Offline OP
Newbie
D

Joined: Aug 2009
Posts: 19
I am making a panel with a digit in it.
I was just wondering how to make the text color black.

Re: Change digit font color [Re: Dominator] #300387
12/01/09 22:25
12/01/09 22:25
Joined: Nov 2009
Posts: 43
Turkiye
M
Machera Offline
Newbie
Machera  Offline
Newbie
M

Joined: Nov 2009
Posts: 43
Turkiye
ok, here's an example,;

Code:
PANEL* my_panel =
{

   digits (50, 100,2, "Arial#24bi", 1, my_text);
   red = 0;
   green = 0;// black rgb is 0,0,0.
   blue = 0;
   flags = VISIBLE;
}



Re: Change digit font color [Re: Machera] #300462
12/02/09 16:36
12/02/09 16:36
Joined: Aug 2009
Posts: 19
D
Dominator Offline OP
Newbie
Dominator  Offline OP
Newbie
D

Joined: Aug 2009
Posts: 19
When I tried what you suggested it worked.
Thanks for the help.

Re: Change digit font color [Re: Machera] #300472
12/02/09 17:14
12/02/09 17:14
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
AFAIK it's better to create a FONT* first and use it in the digits that to define the font within the digits definition. I even heard that it wouldn't work like this (but that could have changed), but even if it does it's not to be recommended at least if you want to use the same font at many digints or TEXT*s.

Code:
FONT* my_font = "Arial#24bi";
PANEL* my_panel =
{

   digits (50, 100,2, my_font, 1, my_text);
   red = 0;
   green = 0;// black rgb is 0,0,0.
   blue = 0;
   flags = VISIBLE;
}



And this way you just have to edit the font definition if you want to change many digits that use the same font.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1