mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-08-11 09:24:43 -04:00
"Brush color from" now invisible when pixel brush is selected
This commit is contained in:
parent
a2fdf7c4a5
commit
5ffd0ecf6a
3 changed files with 49 additions and 32 deletions
|
@ -9,11 +9,13 @@ func _on_BrushButton_pressed() -> void:
|
|||
Global.current_left_brush_type = brush_type
|
||||
Global.custom_left_brush_index = custom_brush_index
|
||||
if custom_brush_index > -1: #Custom brush
|
||||
Global.left_color_interpolation_container.visible = true
|
||||
if hint_tooltip == "":
|
||||
Global.left_brush_type_label.text = "Custom brush"
|
||||
else:
|
||||
Global.left_brush_type_label.text = "Brush: %s" % hint_tooltip
|
||||
else: #Pixel brush
|
||||
Global.left_color_interpolation_container.visible = false
|
||||
Global.left_brush_type_label.text = "Brush: Pixel"
|
||||
|
||||
Global.update_left_custom_brush()
|
||||
|
@ -22,11 +24,13 @@ func _on_BrushButton_pressed() -> void:
|
|||
Global.current_right_brush_type = brush_type
|
||||
Global.custom_right_brush_index = custom_brush_index
|
||||
if custom_brush_index > -1:
|
||||
Global.right_color_interpolation_container.visible = true
|
||||
if hint_tooltip == "":
|
||||
Global.right_brush_type_label.text = "Custom brush"
|
||||
else:
|
||||
Global.right_brush_type_label.text = "Brush: %s" % hint_tooltip
|
||||
else: #Pixel brush
|
||||
Global.right_color_interpolation_container.visible = false
|
||||
Global.right_brush_type_label.text = "Brush: Pixel"
|
||||
|
||||
Global.update_right_custom_brush()
|
||||
|
|
|
@ -51,6 +51,8 @@ var left_brush_type_label : Label
|
|||
var right_brush_type_label : Label
|
||||
var left_brush_size_edit : SpinBox
|
||||
var right_brush_size_edit : SpinBox
|
||||
var left_color_interpolation_container : Container
|
||||
var right_color_interpolation_container : Container
|
||||
var left_interpolate_slider : HSlider
|
||||
var right_interpolate_slider : HSlider
|
||||
|
||||
|
@ -139,6 +141,8 @@ func _ready() -> void:
|
|||
right_brush_type_label = find_node_by_name(root, "RightBrushTypeLabel")
|
||||
left_brush_size_edit = find_node_by_name(root, "LeftBrushSizeEdit")
|
||||
right_brush_size_edit = find_node_by_name(root, "RightBrushSizeEdit")
|
||||
left_color_interpolation_container = find_node_by_name(root, "LeftColorInterpolation")
|
||||
right_color_interpolation_container = find_node_by_name(root, "RightColorInterpolation")
|
||||
left_interpolate_slider = find_node_by_name(root, "LeftInterpolateFactor")
|
||||
right_interpolate_slider = find_node_by_name(root, "RightInterpolateFactor")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue