Posted by member 503 on 2003-07-03 13:18:57 link
I don't think you've thought through this completely. Right now, Label keeps track of the source text (the LabelText line from the step.rc) and the output text (what is displayed on screen). At update, it reparses the source text to generate a new output text. Under that design, something like [randomline] is part of the source text and the contents of the file are the output text.
In order to be able to put Label commands in a file and have them interpreted, you're going to have to extend this design. For example, you might wind up with two source texts (let's say: static source text and dynamic source text). The static source text is parsed one time; the result of that is the dynamic source text, which is then reparsed at each update in order to generate the output text.
In order to be able to put Label commands in a file and have them interpreted, you're going to have to extend this design. For example, you might wind up with two source texts (let's say: static source text and dynamic source text). The static source text is parsed one time; the result of that is the dynamic source text, which is then reparsed at each update in order to generate the output text.