XetaQuake Posted February 4, 2008 Share Posted February 4, 2008 hi, it is possibly that a GUI window shows the content from a file? Link to comment
mabako Posted February 4, 2008 Share Posted February 4, 2008 sure it is possible, just look at this script for example: viewtopic.php?f=91&t=21071 Link to comment
XetaQuake Posted February 4, 2008 Author Share Posted February 4, 2008 hmm but this open and save scripts, but i want to have that a text.xml file shows on a GUI window Link to comment
XetaQuake Posted February 4, 2008 Author Share Posted February 4, 2008 i have tried it with http://development.mtasa.com/index.php?title=FileOpen but hmmm, no i think it is currently a level to big for me ;( can somebody help me with a little code or so? Link to comment
Guest Posted February 5, 2008 Share Posted February 5, 2008 Using XML: The XML file "info.xml": <root> <info>stuff here</info> </root> A window with a memo that contains the data from the XML above: xmlInfo = xmlLoadFile("info.xml") xmlInfoNode = xmlFindSubNode(xmlInfo, "info", 0) xmlInfoData = xmlNodeGetValue(xmlInfoNode) myWindow = guiCreateWindow(200, 200, 480, 640, "My Window", false) infoMemo = guiCreateMemo(0, 0, 1, 1, xmlInfoData, true, myWindow) This is all client-side. Link to comment
XetaQuake Posted February 5, 2008 Author Share Posted February 5, 2008 i thank you, that is waht i looking for! it works perfect! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now