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
4 registered members (AndrewAMD, TipmyPip, NewbieZorro, Grant), 14,196 guests, and 5 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
Page 3 of 3 1 2 3
Re: Colourful TEXT [Re: djfeeler] #430824
10/02/13 18:57
10/02/13 18:57
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Well thanks for the contribution!
There are some bugs, for example this function:
Code:
var cltext_valid_cltag(STRING *text, var pos)



I recoded it so it wont crash:
Code:
var cltext_valid_cltag(STRING *text, var pos)
{
	if (pos > (str_len(text)-10)) return 5;
	
	var res = 0;
	if(str_getchr(text, pos+1) != '[') res++;
	if(str_getchr(text, pos+2) != 'c') res++;
	if(str_getchr(text, pos+3) != 'l') res++;
	if(str_getchr(text, pos+10) != ']') res++;
	
	return res;
}



I tried to make a function to add new text and it worked just fine, but Ive got a problem. I wanted to use this for my chat but "\n" dont move other text elements down and I didnt know how to fix that..
Any ideas?

Re: Colourful TEXT [Re: Ch40zzC0d3r] #431238
10/11/13 16:20
10/11/13 16:20
Joined: Nov 2011
Posts: 274
de
lemming Offline OP
Member
lemming  Offline OP
Member

Joined: Nov 2011
Posts: 274
de
Thank you for bugreporting and fixing!

I didn't implemented a manual CR+LF, though it is planned as well as replacing TEXT with MasterQs function. But currently I have a lot of problems finishing my PC so it might take some time.

Re: Colourful TEXT [Re: lemming] #451697
05/17/15 15:47
05/17/15 15:47
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands


Where to get this or the t(r?)ust-project? Would be nice to use color (/hex) codes to color individual strings.

Re: Colourful TEXT [Re: Reconnoiter] #451698
05/17/15 15:58
05/17/15 15:58
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hey Reconnoiter, TUST is here:

https://github.com/MasterQ32/TUST

Re: Colourful TEXT [Re: PadMalcom] #451700
05/17/15 18:18
05/17/15 18:18
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
wow I did not knew that project was so big, thanks alot PadMalcom for the link.

Page 3 of 3 1 2 3

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