Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 821 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | 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