Jump to content

GUI


philip1994

Recommended Posts

TAPL, your method works best and is more reliable than mine, thanks a lot :).

You're welcome.

TAPL, I have a doubt about this too. I want to do a gridlist with 3 weapons, for example, X, Y, Z, would this work? Or your example is for other thing?
for i=0, guiGridListGetRowCount(MYLIST) do 
if guiGridListGetItemText(MYLIST, i, COLUMN) == "X" then 
giveWeapon --blablabla 
end 
end 

?

This example is looping through all rows in the grid list and then check if specific string is matching, by this way you can get the row id for the specific string in the grid list.

You can for example change the text of the row or just delete it or color it or even get the text from other column within the row. So this depends on what you want to do.

I assume that you have three column with multiple column selection and you wanted to get the selected item from the three column if so you will need this function:

guiGridListGetSelectedItems 

For giveWeapon you'll need to trigger to server side.

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