Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, NeoDumont), 761 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: 2D question: colored text [Re: frank58] #316068
03/21/10 08:36
03/21/10 08:36
Joined: Oct 2009
Posts: 110
Porto-Portugal
Elektron Offline
Member
Elektron  Offline
Member

Joined: Oct 2009
Posts: 110
Porto-Portugal
I was searching too and i found laugh
Code:
set(info_pan,LIGHT); // modulate all panel bitmaps with the given color
vec_set(info_pan.blue,vector(0,0,255)); // red color



Change "info_pan" to name of your panel.

I am not sure if is the right way, but it works.
I know is boring but sometimes is better to make a search on 3DGS Manual.
Lesson of day laugh

I hope it helps

Last edited by Elektron; 03/21/10 08:51.

Carlos Ribeiro aka Elektron
Check my blog: http://indiegamedeveloper71.wordpress.com/
Re: 2D question: colored text [Re: Elektron] #316086
03/21/10 11:37
03/21/10 11:37
Joined: Mar 2010
Posts: 7
italy
F
frank58 Offline OP
Newbie
frank58  Offline OP
Newbie
F

Joined: Mar 2010
Posts: 7
italy
I know those instructions (set,vecset), they color all Panel elements, but in case of text Panels are OK.
Thanks for help

Re: 2D question: colored text [Re: frank58] #316346
03/23/10 14:36
03/23/10 14:36
Joined: Mar 2010
Posts: 7
italy
F
frank58 Offline OP
Newbie
frank58  Offline OP
Newbie
F

Joined: Mar 2010
Posts: 7
italy
This is the complete code for components panel color:

//Colored Panel Text
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////

PANEL* first_pan =
{
digits (85, 620, "TEXT1","Arial#125b",1, 0 );
digits (650, 620, "TEXT2","Arial#125b",1, 0 );
flags = SHOW | OUTLINE;
}

/////////////////////////////////////////////////////////////////////

function main()
{
video_screen = 1;//full screen=1, default =2 windows mode
screen_size.x = 1024;
screen_size.y = 768;
set(first_pan,LIGHT); // modulate all panel bitmaps with the given color
vec_set(first_pan.blue,vector(0,255,0));//all panel components green color
//vec_set(first_pan.blue,vector(0,0,255));//all panel components red color
//vec_set(first_pan.blue,vector(255,0,0)); //all panel components blue color
}

Page 2 of 2 1 2

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

Gamestudio download | chip programmers | 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