Color Picker

* Added history
* Added reset button
* Added icon
* Added dev functions
This commit is contained in:
LoafyLemon 2022-07-15 22:48:34 +01:00
parent d98c4e2bb9
commit d5aefe24c4
3 changed files with 48 additions and 28 deletions

BIN
game/interface/wardrobe/icons/brush.webp (Stored with Git LFS) Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -559,23 +559,13 @@ screen wardrobe_menuitem(xx, yy):
xanchor 1.0
pos (552, 61)
for i in xrange(current_item.layers):
# Colour picker
button:
focus_mask None
xysize (32, 32)
background Fixed(icon_transparent, Color(tuple(current_item.color[i])))
tooltip "Change colour ("+str(i+1)+")"
action Return(["setcolor", i])
add icon_frame
# Reset Button
button:
focus_mask None
tooltip "Dye clothing"
action Return(["setcolor", 0])
add "interface/wardrobe/icons/brush.webp":
xysize (32, 32)
background "#d3d3d3"
tooltip "Reset all colours"
action Return(["resetcolor"])
text "R" align (0.5, 0.5)
add icon_frame
# Subcategory icons
hbox: