From 95fd50d16616346d8ce1448dc9a702c2d95a72e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Ritzl?= Date: Tue, 21 Sep 2021 19:26:31 +0200 Subject: [PATCH] Removed unused state argument in the update functions of the example The update function does not return any state as second argument --- example/components.gui_script | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/components.gui_script b/example/components.gui_script index 5f4071c..26abce1 100644 --- a/example/components.gui_script +++ b/example/components.gui_script @@ -7,7 +7,7 @@ local COLOR_BLACK = vmath.vector4(0,0,0,1) local COLOR_RED = vmath.vector4(1,0,0,1) -local function update_radiobutton(radiobutton, state) +local function update_radiobutton(radiobutton) if radiobutton.selected_now then gui.set_color(radiobutton.node, COLOR_RED) utils.shake(radiobutton.node, vmath.vector3(1)) @@ -17,7 +17,7 @@ local function update_radiobutton(radiobutton, state) end end -local function update_checkbox(checkbox, state) +local function update_checkbox(checkbox) if checkbox.checked_now then gui.set_color(checkbox.node, COLOR_RED) utils.shake(checkbox.node, vmath.vector3(1)) @@ -27,7 +27,7 @@ local function update_checkbox(checkbox, state) end end -local function update_button(button, state) +local function update_button(button) if button.over_now then gui.set_color(button.node, COLOR_LIGHTGREY) elseif button.out_now then @@ -37,7 +37,7 @@ local function update_button(button, state) end end -local function update_input(input, state) +local function update_input(input) if input.pressed_now then gui.set_color(input.node, COLOR_RED) elseif input.released_now then