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:
|
button:
|
||||||
focus_mask None
|
|
||||||
xysize (32, 32)
|
xysize (32, 32)
|
||||||
background Fixed(icon_transparent, Color(tuple(current_item.color[i])))
|
tooltip "Dye clothing"
|
||||||
tooltip "Change colour ("+str(i+1)+")"
|
action Return(["setcolor", 0])
|
||||||
action Return(["setcolor", i])
|
add "interface/wardrobe/icons/brush.webp":
|
||||||
add icon_frame
|
|
||||||
# Reset Button
|
|
||||||
button:
|
|
||||||
focus_mask None
|
|
||||||
xysize (32, 32)
|
xysize (32, 32)
|
||||||
background "#d3d3d3"
|
|
||||||
tooltip "Reset all colours"
|
|
||||||
action Return(["resetcolor"])
|
|
||||||
text "R" align (0.5, 0.5)
|
|
||||||
add icon_frame
|
|
||||||
|
|
||||||
# Subcategory icons
|
# Subcategory icons
|
||||||
hbox:
|
hbox:
|
||||||
|
Loading…
Reference in New Issue
Block a user