Jump to content

XML problem


Mefisto_PL

Recommended Posts

Hello everyone ! I have a question. How to get item name ( for gridlist ) from xml file and text ( gui - edit ) when I click on item. Help me please, I search it everywhere, but I don't understand it :/. For example:

<items> 
<item name="Page1" text="Test"/> 
<item name="Page2" text="Test1"/> 
</items> 

Link to comment

Idk it is working and what I must do now.. :D

  
pages = { 
["Page"] = true, 
} 
  
function asdf ( ) 
for page, text in pairs ( pages ) do 
local row = guiGridListAddRow ( gridlist ) 
        guiGridListSetItemText ( gridList, row, 1, page, false, false ) 
    end 
end 
) 

///EDIT

But I want to create this with xml file :C

Link to comment

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...