Gamestudio Links
Zorro Links
Newest Posts
bestwinsite
by winsite3. 05/30/24 04:10
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 722 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Request: txt_setcolor #412860
12/04/12 13:13
12/04/12 13:13
Joined: Nov 2012
Posts: 62
Istanbul
T
Talemon Offline OP
Junior Member
Talemon  Offline OP
Junior Member
T

Joined: Nov 2012
Posts: 62
Istanbul
Hi, It would be wonderful if there was a txt_setcolor function that lets me colorize different strings of a TEXT entity similar to pan_setcolor.

Re: Request: txt_setcolor [Re: Talemon] #412866
12/04/12 14:23
12/04/12 14:23
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Would be more awesome if it would be like in quake engine!
"^0Exam^1ple" would be Exam (black) and ple (red) laugh

Last edited by Ch40zzC0d3r; 12/04/12 14:23.
Re: Request: txt_setcolor [Re: Ch40zzC0d3r] #412874
12/04/12 16:05
12/04/12 16:05
Joined: Sep 2007
Posts: 101
Luxembourg
K
krial057 Offline
Member
krial057  Offline
Member
K

Joined: Sep 2007
Posts: 101
Luxembourg
You can set the text color for all the texts with the red, green and blue attributes:
vec_set(txt->blue, COLOR_RED);
And you can use the draw_text function if it's only for 1 frame.
You can then also write a color code interpreter to make it work like in quake.

Last edited by krial057; 12/04/12 16:10.

Moderated by  aztec, Spirit 

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