"Brush color from" doesn't appear when Pencil isn't selected

Also renamed some nodes and made changes to the links found at the About Dialog.
This commit is contained in:
OverloadedOrama 2019-12-03 17:59:50 +02:00
parent 70bd1dde43
commit 74ca33ed35
3 changed files with 36 additions and 33 deletions

View file

@ -6,11 +6,11 @@ func _ready() -> void:
$AboutUI/Pixelorama.text = "Pixelorama %s\n" % current_version
func _on_Website_pressed() -> void:
OS.shell_open("https://www.orama-interactive.com/")
OS.shell_open("https://www.orama-interactive.com/pixelorama")
func _on_GitHub_pressed() -> void:
OS.shell_open("https://github.com/OverloadedOrama/Pixelorama")
func _on_Donate_pressed() -> void:
OS.shell_open("https://www.paypal.com/paypalme2/OverloadedOrama")
OS.shell_open("https://paypal.me/OverloadedOrama")
OS.shell_open("https://ko-fi.com/overloadedorama")

View file

@ -9,7 +9,8 @@ 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 Global.current_left_tool == "Pencil":
Global.left_color_interpolation_container.visible = true
if hint_tooltip == "":
Global.left_brush_type_label.text = "Custom brush"
else:
@ -24,7 +25,8 @@ 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 Global.current_right_tool == "Pencil":
Global.right_color_interpolation_container.visible = true
if hint_tooltip == "":
Global.right_brush_type_label.text = "Custom brush"
else: