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
2 registered members (TipmyPip, 1 invisible), 18,731 guests, and 7 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
String Format #351752
12/28/10 13:14
12/28/10 13:14
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
hey guys

I wondered if there's a way to ink a string in multiple colors. Is there any command
like "\n" for coloring strings? or do i have to take another text object for strings in different colors?

thanks in advance!
Roxas

Re: String Format [Re: Roxas] #351762
12/28/10 13:43
12/28/10 13:43
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
multiple text objects is the only way as far as I know...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: String Format [Re: EvilSOB] #351784
12/28/10 15:06
12/28/10 15:06
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Hmm alright, thank you for your quick reply. I think then it has to be more complicated.

I'm trying to make tooltipps for items in my item menu on mouseover like in torchlight or other diablo like games.

Re: String Format [Re: Roxas] #351789
12/28/10 15:28
12/28/10 15:28
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
In that case I would go for a panel instead of TEXTs.

With panels you can have multiple DIGIT elements and each one has
a separately controllable FONT property. And they CAN display strings.

And you can have multiple FONTs, each with a different color (if you use BITMAP fonts).

And by using pan_setdigits, you can change the font used by each DIGITS element
at runtime, thereby changing the color of that 'chunk' of text.

This combination will allow you to have mixed colors of strings on the panel.
Only one color per string of course, but this will probably do what you want.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: String Format [Re: EvilSOB] #351793
12/28/10 15:56
12/28/10 15:56
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
That sounds quite interesting, thank you again for your reply I'll definitely give it a try, because I noticed that handling a lot of text objects is quite laborious


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