I have registered a handler for the events.on_gui_selection_state_changed which I believe should be the event I need, but when debugging (I've placed a breakpoint in the function called by the trigger) nothing happens as if the event is not triggered.
example of the handler
Code: Select all
script.on_event(defines.events.on_gui_selection_state_changed, function(event)
game.print(event.element.name)
end)
Does any good soul know how this works or which event I can try out to get what I want (is it even possible?)