function centerWindow ( center_window )
local screenW, screenH = guiGetScreenSize ( )
local windowW, windowH = guiGetSize ( center_window, false )
local x, y = ( screenW-windowW )/2, ( screenH-windowH )/2
guiSetPosition ( center_window, x, y, false )
end
HInv_Window = guiCreateWindow ( 354, 252, 362, 272, "Haushaltsinventar", false )
guiWindowSetSizable ( HInv_Window, false )
HInv_LBL_Welcome = guiCreateLabel ( 34, 25, 305, 35, "Hallo. Das ist dein Haushaltsinventar.\nVon hier aus kannst du M?bel in dein Haus platzieren.", false, HInv_Window )
guiSetFont ( HInv_LBL_Welcome, "default-bold-small" )
HInv_Grid = guiCreateGridList ( 38, 69, 290, 157, false, HInv_Window )
guiGridListSetSelectionMode ( HInv_Grid, 2 )
guiSetVisible ( HInv_Window, true )
hinvName = guiGridListAddColumn ( HInv_Grid, "Name", 2 )
HInv_BTN_Platzieren = guiCreateButton ( 90, 231, 186, 22, "Platzieren", false, HInv_Window )
centerWindow ( HInv_Window )
addEventHandler ( "onClientGUIClick", HInv_BTN_Platzieren,
function ( )
guiSetVisible ( HInv_Window, false )
textITT ( )
end, false )
function textITT ( )
outputChatBox ( "TEXT" )
end