Is this a bug? When I press in the 'space' which there's no button or GUI Elements in the windows, it's like I've pressed the button, so it does the function when I press the button 'X'. But I press in the window.
function ww( )
wNd = guiCreateWindow(210, 178, 331, 202, "Window", false)
guiWindowSetSizable(wNd, false)
guiSetVisible(wNd,false)
X = guiCreateButton(9, 127, 142, 66, "X Button", false, wNd)
addEventHandler("onClientGUIClick", X, GUIClick)
end
addEventHandler("onClientResourceStart", resourceRoot, ww)
function GUIClick ( )
outputChatBox ( "Is it a bug?", source, 128, 0, 255, true )
end
I show the GUI by hitting a marker but that isn't important, I think. It just outputs "Is it a bug?" even if I touch the window, not the button.