Added Elem Button

This commit is contained in:
Cooldude2606
2017-12-15 17:58:22 +00:00
parent a1b7944b5e
commit 40762fc845
2 changed files with 33 additions and 2 deletions

View File

@@ -83,4 +83,8 @@ input_test = Gui.inputs.add_button('test-inputs','Try RMB','alt,ctrl,shift and m
function(player,mouse,keys) return mouse == defines.mouse_button_type.right and keys.shift end,
function(player,element) player_return('Right: Shift',nil,player) end
}
}):on_event('error',function(err) game.print('this is error handliling') end)
}):on_event('error',function(err) game.print('this is error handliling') end)
elem_test = Gui.inputs.add_elem_button('test-elem','item','Testing Elems',function(player,element,elem)
player_return(elem.type..' '..elem.value,nil,player)
end)