Updates the visuals on the garden screen to improve readability of completed lessons.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -160,9 +160,9 @@ func _fill_minigame_choice(container: HFlowContainer, background: TextureRect, e
|
||||
button.queue_free()
|
||||
|
||||
if status == UserProgression.Status.Completed:
|
||||
background.modulate = Color(1.0, 1.0, 1.0, 0.01)
|
||||
background.modulate = garden_parent.get_child(current_garden).color
|
||||
else:
|
||||
background.modulate = Color(0.0, 0.0, 0.0, 0.75)
|
||||
background.modulate = Color(0.0, 0.0, 0.0, 0.0)
|
||||
|
||||
var exercise_scenes: Array[PackedScene]
|
||||
var exercise_icons: Array[Texture]
|
||||
@@ -248,6 +248,7 @@ func _on_garden_lesson_button_pressed(button: TextureButton, lesson_ind: int, ga
|
||||
button_global_position = button.global_position
|
||||
current_button = button
|
||||
current_button.visible = false
|
||||
|
||||
current_button_global_position = button_global_position
|
||||
current_lesson_number = lesson_ind
|
||||
current_garden = garden_ind
|
||||
@@ -256,13 +257,14 @@ func _on_garden_lesson_button_pressed(button: TextureButton, lesson_ind: int, ga
|
||||
|
||||
minigame_selection.visible = true
|
||||
back_button.disabled = true
|
||||
for other_button: TextureButton in garden_parent.get_child(current_garden).lesson_button_controls:
|
||||
other_button.disabled = true
|
||||
|
||||
#for other_button: TextureButton in garden_parent.get_child(current_garden).lesson_button_controls:
|
||||
# other_button.disabled = true
|
||||
|
||||
minigame_background.size = 300.0 * Vector2.ONE
|
||||
minigame_background.global_position = current_button_global_position
|
||||
minigame_background.visible = true
|
||||
minigame_background_center.modulate = garden_parent.get_child(garden_ind).color
|
||||
#minigame_background_center.modulate = garden_parent.get_child(garden_ind).color
|
||||
|
||||
var tween: = create_tween().set_parallel(true).set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_BACK)
|
||||
tween.tween_property(minigame_background, "scale", (1800.0 / 300.0) * Vector2.ONE, tween_duration)
|
||||
|
||||
@@ -172,6 +172,7 @@ stretch_mode = 5
|
||||
|
||||
[node name="MinigameBackgroundCenter" type="TextureRect" parent="CanvasLayer/MinigameBackground"]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(0.109804, 0.14902, 0.384314, 1)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -196,7 +197,7 @@ pivot_offset = Vector2(1280, 900)
|
||||
|
||||
[node name="MinigameBackground1" type="TextureRect" parent="CanvasLayer/MinigameSelection"]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(0, 0, 0, 0.501961)
|
||||
modulate = Color(0, 0, 0, 0)
|
||||
layout_mode = 0
|
||||
offset_right = 2560.0
|
||||
offset_bottom = 1800.0
|
||||
@@ -204,7 +205,7 @@ texture = ExtResource("23_p1d10")
|
||||
|
||||
[node name="MinigameBackground2" type="TextureRect" parent="CanvasLayer/MinigameSelection"]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(0, 0, 0, 0.501961)
|
||||
modulate = Color(0, 0, 0, 0)
|
||||
layout_mode = 0
|
||||
offset_right = 2560.0
|
||||
offset_bottom = 1800.0
|
||||
@@ -212,7 +213,7 @@ texture = ExtResource("24_30f83")
|
||||
|
||||
[node name="MinigameBackground3" type="TextureRect" parent="CanvasLayer/MinigameSelection"]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(0, 0, 0, 0.501961)
|
||||
modulate = Color(0, 0, 0, 0)
|
||||
layout_mode = 0
|
||||
offset_right = 2560.0
|
||||
offset_bottom = 1800.0
|
||||
@@ -246,32 +247,30 @@ theme_override_font_sizes/font_size = 92
|
||||
[node name="MinigameContainer1" type="HFlowContainer" parent="CanvasLayer/MinigameSelection"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
offset_left = 633.0
|
||||
offset_top = 284.0
|
||||
offset_right = 1149.0
|
||||
offset_bottom = 800.0
|
||||
offset_left = 640.0
|
||||
offset_top = 576.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 832.0
|
||||
size_flags_horizontal = 3
|
||||
alignment = 1
|
||||
reverse_fill = true
|
||||
|
||||
[node name="MinigameContainer2" type="HFlowContainer" parent="CanvasLayer/MinigameSelection"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
offset_left = 1411.0
|
||||
offset_top = 284.0
|
||||
offset_right = 1927.0
|
||||
offset_bottom = 800.0
|
||||
offset_left = 1408.0
|
||||
offset_top = 576.0
|
||||
offset_right = 1920.0
|
||||
offset_bottom = 832.0
|
||||
size_flags_horizontal = 3
|
||||
alignment = 1
|
||||
reverse_fill = true
|
||||
|
||||
[node name="MinigameContainer3" type="HFlowContainer" parent="CanvasLayer/MinigameSelection"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
offset_left = 762.0
|
||||
offset_top = 1229.0
|
||||
offset_right = 1798.0
|
||||
offset_bottom = 1745.0
|
||||
offset_left = 1024.0
|
||||
offset_top = 1216.0
|
||||
offset_right = 1536.0
|
||||
offset_bottom = 1472.0
|
||||
size_flags_horizontal = 3
|
||||
alignment = 1
|
||||
|
||||
|
||||
@@ -786,7 +786,6 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_12st1")
|
||||
current_button_pressed = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
|
||||
Reference in New Issue
Block a user