From 7d53cefd396f1c332cbebba5df96e9c88e200457 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 14 Dec 2017 18:39:57 +0000 Subject: [PATCH] Added sliderrs to inputs --- locale/ExpCore/GuiParts/inputs.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/locale/ExpCore/GuiParts/inputs.lua b/locale/ExpCore/GuiParts/inputs.lua index faeb4b52..202bb6f6 100644 --- a/locale/ExpCore/GuiParts/inputs.lua +++ b/locale/ExpCore/GuiParts/inputs.lua @@ -16,7 +16,8 @@ inputs.events = { click=defines.events.on_gui_click, elem=defines.events.on_gui_elem_changed, selection=defines.events.on_gui_selection_state_changed, - text=defines.events.on_gui_text_changed + text=defines.events.on_gui_text_changed, + slider=defines.events.on_gui_value_changed } --- Sets the input to trigger on an certain event @@ -58,7 +59,8 @@ function inputs.add(obj) type == 'checkbox' or type == 'radiobutton' or type == 'textfield' or - type == 'text-box' + type == 'text-box' or + type == 'slider' then else return end if obj.type == 'button' or obj.type == 'sprite-button' then obj.style = mod_gui.button_style end obj.draw_data = table.deepcopy(obj)