Remove mutable in signature and pop todo
This commit is contained in:
parent
3fef941366
commit
15b15b9085
@ -234,11 +234,9 @@ define hue_gradient_image = HueSlider()
|
|||||||
|
|
||||||
init -1 python:
|
init -1 python:
|
||||||
|
|
||||||
def color_picker(color=[0,0,0,0], alpha=True, title="Pick a colour", pos_xy=(240, 130), color_default=None):
|
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.
|
|
||||||
|
|
||||||
global picking_color
|
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
|
start_color = list(color) # Keep a copy
|
||||||
|
|
||||||
renpy.show_screen("color_picker", tuple(color), alpha, title, pos_xy, color_default)
|
renpy.show_screen("color_picker", tuple(color), alpha, title, pos_xy, color_default)
|
||||||
|
Loading…
Reference in New Issue
Block a user