Jump to content

Scripting in the GUi


ThaD4N13L

Recommended Posts

Posted

So I was wondering how to do something like this I will explain below

You click on a button whitch is made and how do you make it if u have a Memo how to set the Text of a thing from a XmL file

Posted

It depends on how your XML file is designed.

This is an example:

-- file.xml:

<content> 
Hello world 
</content> 

-- client.lua:

local xml = xmlLoadFile( "file.xml" ) 
local content = xmlNodeGetValue( xml ) 
guiSetText(myGUIMemo, tostring(content)) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...