From 0d8c4df1fd9ab4e9274591da981b21bb8ee87d89 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Fri, 17 Nov 2023 03:52:56 +0100 Subject: [PATCH] Remove mutable in signature and pop todo (cherry picked from commit 15b15b90858039461cf9290f652f4cb5fc387d1c) --- game/scripts/interface/color_picker.rpy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/game/scripts/interface/color_picker.rpy b/game/scripts/interface/color_picker.rpy index 4ff9cad0..8d60eda7 100644 --- a/game/scripts/interface/color_picker.rpy +++ b/game/scripts/interface/color_picker.rpy @@ -234,11 +234,9 @@ define hue_gradient_image = HueSlider() init -1 python: - def color_picker(color=[0,0,0,0], alpha=True, title="Pick a colour", pos_xy=(240, 130), color_default=None): - # TODO: Remove external dependencies and utilise built-in Color class instead. - + def color_picker(color=(0,0,0,0), alpha=True, title="Pick a colour", pos_xy=(240, 130), color_default=None): global picking_color - picking_color = color # Color object (list) to be updated live + picking_color = list(color) # Color object (list) to be updated live start_color = list(color) # Keep a copy renpy.show_screen("color_picker", tuple(color), alpha, title, pos_xy, color_default)