Page 1 of 1
					
				Checkboxes and RadioButtons are no longer firing click event
				Posted: Wed Dec 13, 2017 10:49 pm
				by Pirion
				Checkboxes and RadioButtons are no longer firing click events when using the 3ra scenario.

 
			
					
				Re: Checkboxes and RadioButtons are no longer firing click event
				Posted: Wed Dec 13, 2017 10:53 pm
				by Pirion
				Steps: 
Become admin (if gui doesn't appear, run /c create_admin_gui(game.player.name))
Open Character, and try to control run speed.. 
All events fire except these.
Uses 
Event.register(defines.events.on_gui_click, gui_click) in admin.lua
runs line 68: starting here
Code: Select all
local function gui_click(event)
    if not event.element then return end
	local i = event.player_index
	local p = game.players[i]
	local e = event.element.name
	p.print("Player: " .. i .. " - " .. p.name .. "; Element:" .. e) --<<<NOT SEEING THIS PRINTED
 
			
					
				Re: Checkboxes and RadioButtons are no longer firing click event
				Posted: Wed Dec 13, 2017 11:01 pm
				by Rseding91
				Thanks for the report. I believe this is intended. You should be using the 
http://lua-api.factorio.com/latest/even ... te_changed event for those GUI elements.
 
			
					
				Re: Checkboxes and RadioButtons are no longer firing click event
				Posted: Thu Dec 14, 2017 2:27 am
				by Pirion
				I checked the lua-api and saw the following:
 
If that is the case, can we update the docs to include this change?
Thanks!
 
			
					
				Re: Checkboxes and RadioButtons are no longer firing click event
				Posted: Thu Dec 14, 2017 4:17 am
				by Rseding91
				Sure, I've updated the docs for the next version of 0.16.