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
2 registered members (vicknick, AndrewAMD), 1,292 guests, and 3 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
Changing TEXT* at runtime? #245031
01/08/09 05:33
01/08/09 05:33
Joined: Jul 2008
Posts: 54
Taipei, Taiwan
PlaystationThree Offline OP
Junior Member
PlaystationThree  Offline OP
Junior Member

Joined: Jul 2008
Posts: 54
Taipei, Taiwan
Title says all, is there any way to change what a TEXT struct displays at runtime?

Last edited by PlaystationThree; 01/08/09 05:37.

Bet you don't know where Taiwan is lol.

"The Lord is my light and my salvation..." Psm 27:1
Re: Changing TEXT* at runtime? [Re: PlaystationThree] #245034
01/08/09 06:32
01/08/09 06:32
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
yes u can. its a struct of "variables". u can modify all within them on run time. just access the members u want to make changes and modify them as n when u want on run time.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Changing TEXT* at runtime? [Re: PlaystationThree] #245035
01/08/09 06:32
01/08/09 06:32
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline
Serious User
PrenceOfDarkness  Offline
Serious User

Joined: Aug 2004
Posts: 1,305
New York
I'm not sure how you could change the size of the pstring array but you can change the string very easily. Check this out:

TEXT* blah =
{blah..blah.
string("whats up");
}

//elsewhere
...
str_cpy((blah.pstring)[0],"New string");


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Re: Changing TEXT* at runtime? [Re: PrenceOfDarkness] #245044
01/08/09 07:42
01/08/09 07:42
Joined: Jul 2008
Posts: 54
Taipei, Taiwan
PlaystationThree Offline OP
Junior Member
PlaystationThree  Offline OP
Junior Member

Joined: Jul 2008
Posts: 54
Taipei, Taiwan
Thank you very much PrenceOfDarkness...Great help.


Bet you don't know where Taiwan is lol.

"The Lord is my light and my salvation..." Psm 27:1
Re: Changing TEXT* at runtime? [Re: PlaystationThree] #245256
01/09/09 03:51
01/09/09 03:51
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
this is basic... should read manual lazy lazy...


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