Remove mutable in signature and pop todo

This commit is contained in:
Gouvernathor 2023-11-17 03:52:56 +01:00
parent 3fef941366
commit 15b15b9085
1 changed files with 2 additions and 4 deletions

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)