Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion material_maker/darken.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ extends ColorRect
func _ready():
var current_theme : Theme = mm_globals.main_window.theme
color = current_theme.get_stylebox("panel", "Panel").bg_color
color.a = 0.80
modulate.a = 0.0
var tween = get_tree().create_tween()
tween.tween_property(self, "modulate:a", 0.8, 0.5).set_trans(Tween.TRANS_CUBIC)
_on_resized()

func _on_resized():
Expand Down
2 changes: 1 addition & 1 deletion material_maker/darken.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://cmeh4ewlvp7vx"]

[ext_resource type="Script" path="res://material_maker/darken.gd" id="1"]
[ext_resource type="Script" uid="uid://du7vv67kc65qb" path="res://material_maker/darken.gd" id="1"]

[node name="Darken" type="ColorRect"]
anchor_right = 1.0
Expand Down
6 changes: 5 additions & 1 deletion material_maker/main_window.gd
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ func bug_report() -> void:

func about() -> void:
var about_box = preload("res://material_maker/windows/about/about.tscn").instantiate()
add_child(about_box)
add_dialog(about_box)
about_box.hide()
about_box.popup_centered()

Expand Down Expand Up @@ -1431,6 +1431,10 @@ func add_dialog(dialog : Window):
if mm_globals.get_config("dialog_dim_background"):
add_child(background)
dialog.tree_exited.connect(background.queue_free)
dialog.tree_exited.connect(func():
var tween := get_tree().create_tween()
tween.tween_property(background, "modulate:a", 0.0, 0.3).set_trans(Tween.TRANS_CUBIC)
tween.tween_callback(background.queue_free))
add_child(dialog)

# Accept dialog
Expand Down
Loading