mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 22:54:44 -04:00
Frame number labels change color when selected
This commit is contained in:
parent
a8119ea392
commit
6220ad82bc
2 changed files with 3 additions and 0 deletions
|
@ -395,8 +395,10 @@ func frame_changed(value : int) -> void:
|
|||
#Make all frame buttons unpressed
|
||||
for c in canvases:
|
||||
c.frame_button.get_node("FrameButton").pressed = false
|
||||
c.frame_button.get_node("FrameID").add_color_override("font_color", Color.white)
|
||||
#Make only the current frame button pressed
|
||||
canvas.frame_button.get_node("FrameButton").pressed = true
|
||||
canvas.frame_button.get_node("FrameID").add_color_override("font_color", Color("#3c5d75"))
|
||||
|
||||
|
||||
func create_brush_button(brush_img : Image, brush_type := BRUSH_TYPES.CUSTOM, hint_tooltip := "") -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue