Jump to content

Teams en gridlist


Plate

Recommended Posts

local teams = getElementsByType("team") 
for id, team in ipairs(getElementsByType("team")) do 
            local row = guiGridListAddRow ( teamsList ) 
            guiGridListSetItemText ( teamsList, row, 1, getTeamName ( team ), false, false ) 
            guiGridListSetItemColor ( teamsList, row, 1, getTeamColor ( team ) ) 
    end 

no me anda ):

Link to comment
        teamList = guiCreateGridList(518,47,265,259,false,apanel) 
        column = guiGridListAddColumn(teamList,"Teams",0.2) 
for id, team in ipairs(getElementsByType("team")) do 
            local row = guiGridListAddRow ( teamsList ) 
            guiGridListSetItemText ( teamsList, row, column, getTeamName ( team ), false, false ) 
            guiGridListSetItemColor ( teamsList, row, column, getTeamColor ( team ) ) 
    end 

Link to comment
teamList = guiCreateGridList(518,47,265,259,false,apanel) 
column = guiGridListAddColumn(teamList,"Teams",0.2) 
for id, team in ipairs(getElementsByType("team")) do 
    local row = guiGridListAddRow ( teamList ) 
    guiGridListSetItemText ( teamList, row, column, getTeamName ( team ), false, false ) 
    guiGridListSetItemColor ( teamList, row, column, getTeamColor ( team ) ) 
end 

Habias puesto: "teamsList" no "teamList" en add row y set item text/color.

Link to comment
  • Recently Browsing   0 members

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