Ders Sahibi


BARİSERDOGAN

Oluşturma Tarihi: 23.09.2019

Bu ders size yardımcı oldumu?

Evet (0) (0) Hayır

GuiGridListAddColumn

  • Söz Dizimi
int guiGridListAddColumn ( element gridList, string title, float width )

 

  • Client Kod
local sx, sy = guiGetScreenSize( )
w, h = 650, 425
local x, y = ( sx-w )/2, ( sy-h )/2



addEventHandler ("onClientResourceStart",resourceRoot,function()
panel = guiCreateWindow( x, y, w, h, "Panel Başlık", false )
guiSetAlpha(panel, 0.75)

------------------------
----- Panel İçerik -----
------------------------

oyunculist = guiCreateGridList(0.50, 0.40, 0.35, 0.50, true, panel)
guiGridListAddColumn(oyunculist, "Oyuncular", 0.50)
guiGridListAddColumn(oyunculist, "ek-1", 0.50) -- ek colum 1.
guiGridListAddColumn(oyunculist, "ek-2", 0.50) -- ek colum 2.

for _, player in ipairs(getElementsByType("player")) do
	guiGridListAddRow(oyunculist, getPlayerName(player))
end

end)
------------------------
----- Panel İçerik -----
------------------------


------------------------
---- Panel Aç/Kapat ----
------------------------

function panelackapat()
	guiSetVisible(panel, not guiGetVisible(panel))
	showCursor(guiGetVisible(panel))
end
bindKey("F2", "down", panelackapat)

------------------------
---- Panel Aç/Kapat ----
------------------------

 

  • Mta XML
<meta>
  <info author="BarisErdogan" type="script" version="1.0.0" />
  
  <script src="client.lua" type="client" />
    
</meta>

 

Not* Ek Columlar Eklendi. 17. VE 18. Satırdaki Kodlar İle.