Changing TEXT* at runtime?

Posted By: PlaystationThree

Changing TEXT* at runtime? - 01/08/09 05:33

Title says all, is there any way to change what a TEXT struct displays at runtime?
Posted By: delinkx

Re: Changing TEXT* at runtime? - 01/08/09 06:32

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.
Posted By: PrenceOfDarkness

Re: Changing TEXT* at runtime? - 01/08/09 06:32

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");
Posted By: PlaystationThree

Re: Changing TEXT* at runtime? - 01/08/09 07:42

Thank you very much PrenceOfDarkness...Great help.
Posted By: MMike

Re: Changing TEXT* at runtime? - 01/09/09 03:51

this is basic... should read manual lazy lazy...
© 2024 lite-C Forums