forked from SilverStudioGames/WTS
Color Picker
* Added history * Added reset button * Added icon * Added dev functions
This commit is contained in:
parent
d98c4e2bb9
commit
d5aefe24c4
BIN
game/interface/wardrobe/icons/brush.webp
(Stored with Git LFS)
Normal file
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
@ -559,23 +559,13 @@ screen wardrobe_menuitem(xx, yy):
|
|||||||
xanchor 1.0
|
xanchor 1.0
|
||||||
pos (552, 61)
|
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:
|
button:
|
||||||
focus_mask None
|
|
||||||
xysize (32, 32)
|
xysize (32, 32)
|
||||||
background "#d3d3d3"
|
tooltip "Dye clothing"
|
||||||
tooltip "Reset all colours"
|
action Return(["setcolor", 0])
|
||||||
action Return(["resetcolor"])
|
add "interface/wardrobe/icons/brush.webp":
|
||||||
text "R" align (0.5, 0.5)
|
xysize (32, 32)
|
||||||
add icon_frame
|
|
||||||
|
|
||||||
# Subcategory icons
|
# Subcategory icons
|
||||||
hbox:
|
hbox:
|
||||||
|
Loading…
Reference in New Issue
Block a user