Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
2D question: colored text #315763
03/18/10 20:54
03/18/10 20:54
Joined: Mar 2010
Posts: 7
italy
F
frank58 Offline OP
Newbie
frank58  Offline OP
Newbie
F

Joined: Mar 2010
Posts: 7
italy
In lite C you can create text in two ways:

1) by digits in panels
2) by TEXT* declaration

But, what about colored text?

Best regards
frank58

Re: 2D question: colored text [Re: frank58] #315764
03/18/10 21:06
03/18/10 21:06
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline
Senior Member
Razoron  Offline
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Code:
yourtext.red
yourtext.green
yourtext.blue



Re: 2D question: colored text [Re: Razoron] #315765
03/18/10 21:08
03/18/10 21:08
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
same for coloring digits on panels.


3333333333
Re: 2D question: colored text [Re: Quad] #315766
03/18/10 21:26
03/18/10 21:26
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
individual digits with different colors.. would be nice.

Re: 2D question: colored text [Re: MMike] #315769
03/18/10 22:31
03/18/10 22:31
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
create multiple panels/texts with different colors.. but only a few of the string letters per panel...

at the end.. put them all overlaying each other.. and you got a compete text in different color.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: 2D question: colored text [Re: Espér] #315809
03/19/10 09:04
03/19/10 09:04
Joined: Oct 2009
Posts: 110
Porto-Portugal
Elektron Offline
Member
Elektron  Offline
Member

Joined: Oct 2009
Posts: 110
Porto-Portugal
I tried several ways and i failed to implement the code frown
Please, make a more detailed explantion or code.

Thanks in advance


Carlos Ribeiro aka Elektron
Check my blog: http://indiegamedeveloper71.wordpress.com/
Re: 2D question: colored text [Re: Elektron] #315922
03/20/10 04:16
03/20/10 04:16
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
that thing of multi panel, sucks so much.. i mean what a wast of code lines..
But i guess conitec put on betapage, coloring for digits individually!! yes.. thats it..

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

Joined: Mar 2010
Posts: 7
italy
First example of my initial question:
In the script below how do I color text digits in the panel?
Can I use different colours for the two text digits?
Thanks for the answers.

//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;
}

Last edited by frank58; 03/20/10 14:52.
Re: 2D question: colored text [Re: frank58] #315978
03/20/10 14:52
03/20/10 14:52
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: 2D question: colored text [Re: Superku] #316064
03/21/10 07:59
03/21/10 07:59
Joined: Mar 2010
Posts: 7
italy
F
frank58 Offline OP
Newbie
frank58  Offline OP
Newbie
F

Joined: Mar 2010
Posts: 7
italy
I have SED version 7.35.
Instruction pan_setcolor is not in this version.

Page 1 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