Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 8,844 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 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 | 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