mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Frame number labels change color when selected
This commit is contained in:
parent
a8119ea392
commit
6220ad82bc
|
@ -49,6 +49,7 @@ func _ready() -> void:
|
||||||
frame_button.get_node("FrameButton").frame = frame
|
frame_button.get_node("FrameButton").frame = frame
|
||||||
frame_button.get_node("FrameButton").pressed = true
|
frame_button.get_node("FrameButton").pressed = true
|
||||||
frame_button.get_node("FrameID").text = str(frame + 1)
|
frame_button.get_node("FrameID").text = str(frame + 1)
|
||||||
|
frame_button.get_node("FrameID").add_color_override("font_color", Color("#3c5d75"))
|
||||||
Global.frame_container.add_child(frame_button)
|
Global.frame_container.add_child(frame_button)
|
||||||
|
|
||||||
frame_texture_rect = Global.find_node_by_name(frame_button, "FrameTexture")
|
frame_texture_rect = Global.find_node_by_name(frame_button, "FrameTexture")
|
||||||
|
|
|
@ -395,8 +395,10 @@ func frame_changed(value : int) -> void:
|
||||||
#Make all frame buttons unpressed
|
#Make all frame buttons unpressed
|
||||||
for c in canvases:
|
for c in canvases:
|
||||||
c.frame_button.get_node("FrameButton").pressed = false
|
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
|
#Make only the current frame button pressed
|
||||||
canvas.frame_button.get_node("FrameButton").pressed = true
|
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:
|
func create_brush_button(brush_img : Image, brush_type := BRUSH_TYPES.CUSTOM, hint_tooltip := "") -> void:
|
||||||
|
|
Loading…
Reference in a new issue