FlyingSpoon Posted April 6, 2015 Share Posted April 6, 2015 function animClicks() local row, col = guiGridListGetSelectedItem ( catMenu ) if (row == 0) and (col == 1) then guiGridListSetItemText ( animCat, 1, 1, "thrw_barl_thrw", false, false) else if (row == 0) and (col == 2) then guiGridListSetItemText ( animCat, 1, 2, "tsd", false, false) end end end addEventHandler("onClientGUIDoubleClick", root, animClicks) The text stays as, 'thrw_barl_thrw' and doesn't change! Link to comment
Et-win Posted April 6, 2015 Share Posted April 6, 2015 guiGridListSetItemText ( animCat, 1, 2, "tsd", false, false) guiGridListSetItemText ( animCat, 1, 1, "tsd", false, false) Link to comment
FlyingSpoon Posted April 6, 2015 Author Share Posted April 6, 2015 I dont understand what you did Link to comment
TAPL Posted April 6, 2015 Share Posted April 6, 2015 I don't understand what you're trying to achieve with this code, you didn't even attach it to gui element. Link to comment
Et-win Posted April 6, 2015 Share Posted April 6, 2015 Just set column ID from 2 to 1 x: Link to comment
FlyingSpoon Posted April 6, 2015 Author Share Posted April 6, 2015 Do you want my full code? Link to comment
Et-win Posted April 7, 2015 Share Posted April 7, 2015 Do you want my full code? And explain what you want 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