Remove mutable in signature and pop todo

(cherry picked from commit 15b15b9085)
This commit is contained in:
Gouvernathor 2023-11-17 03:52:56 +01:00 committed by LoafyLemon
parent 1e96385c47
commit 0d8c4df1fd

View File

@ -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)