Jump to content

skins.xml load in grid


kevin11

Recommended Posts

well this little text is what i want in my client sided script soo people see skins id's but my problem = that its not showing in the gridlist :S what did i do wrong

<config src="skins.xml" type="client" />

local fxml = xmlLoadFile( "skins.xml" )
local fcontent = xmlNodeGetValue( fxml )
createskin_Window = guiCreateWindow(280,194,280,250,"Skins window",false)
closeskin_but = guiCreateLabel(78,21,124,20,"Choose you're skin ID",false,createskin_Window)
cancelskin_But = guiCreateButton ( 215, 190, 56, 33, "Close",false,createskin_Window)
skinsgrid = guiCreateGridList ( 0.03, 0.18, 0.70, 0.71, true, createskin_Window )
guiGridListAddColumn( skinsgrid, "ID", 0.20 )
guiGridListAddColumn( skinsgrid, "", 0.75 )
close_But = guiCreateButton(179,112,48,25,"Close",true,createskin_Window)
guiWindowSetSizable(createskin_Window,false)
skinsgrid = guiCreateGridList( 0.03, 0.18, 0.70, 0.71, fcontent, true,skinsgrid )
guiSetVisible ( createskin_Window, false)
guiSetEnabled ( skinsgrid, false )

Link to comment
local fcontent = xmlNodeGetValue( fxml )
...
skinsgrid = guiCreateGridList( 0.03, 0.18, 0.70, 0.71, fcontent, true,skinsgrid )

First of all, you can't simply get all data of your XML like that. xmlNodeGetValue only gets the value of the node, and not the children.

Second, if you would get the data, your call to guiCreateGridList is about 90% wrong. Try reading the wiki page, and look at that example.

Finally, please post the XML file you're trying to put in. Kind of worthless for us to try and see if it would work your way if we don't know in what way it could work.

Link to comment
local fcontent = xmlNodeGetValue( fxml )
...
skinsgrid = guiCreateGridList( 0.03, 0.18, 0.70, 0.71, fcontent, true,skinsgrid )

First of all, you can't simply get all data of your XML like that. xmlNodeGetValue only gets the value of the node, and not the children.

Second, if you would get the data, your call to guiCreateGridList is about 90% wrong. Try reading the wiki page, and look at that example.

Finally, please post the XML file you're trying to put in. Kind of worthless for us to try and see if it would work your way if we don't know in what way it could work.

its the skinlist from admin resource

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