Is ist possible to embed the xml-file with the GUI definitions into a compiled hollywood project?
Or do you always have to deliver it to the end user as a separate file?
Embed .xml-definitions?
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Embed .xml-definitions?
Sure, just link the file using the @FILE preprocessor command or use the [[ ]] operator to embed the XML from your script.
Re: Embed .xml-definitions?
Sometimes I feel stupid, but how to access the included file?airsoftsoftwair wrote:Sure, just link the file using the @FILE preprocessor command or use the [[ ]] operator to embed the XML from your script.
Code: Select all
(...)
@FILE 1, "muidef.xml"
(...)
mui.createGUI(FileToString(1))
(...)
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Embed .xml-definitions?
FileToString() requires a filename, not a handle. Try:
Code: Select all
mui.CreateGUI(ReadString(1, FileLength(1)))