hot fix
This commit is contained in:
parent
254e8a15e0
commit
92cd04847a
@ -1,7 +1,6 @@
|
||||
extends Control
|
||||
|
||||
@onready var video_player = $VideoStreamPlayer
|
||||
@onready var mask = $"遮罩"
|
||||
@onready var earplug_notice = $"耳机提示"
|
||||
|
||||
@onready var sfx_click = $SfxClick as Sfx
|
||||
@ -21,6 +20,7 @@ var first_launching_game := true
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
earplug_notice.hide()
|
||||
if GlobalConfigManager.config:
|
||||
var game_launched_times = GlobalConfigManager.config.game_launched_times
|
||||
GlobalConfigManager.config.game_launched_times = game_launched_times + 1
|
||||
@ -41,7 +41,6 @@ var earplug_notice_tween: Tween
|
||||
|
||||
|
||||
func _on_video_finished() -> void:
|
||||
mask.visible = true
|
||||
earplug_notice.visible = true
|
||||
earplug_notice.modulate.a = 0
|
||||
earplug_notice_tween = create_tween()
|
||||
@ -57,6 +56,7 @@ func _on_video_finished() -> void:
|
||||
|
||||
|
||||
func _on_confirm_btn_pressed() -> void:
|
||||
confirm_btn.disabled = true
|
||||
var tween = create_tween()
|
||||
tween.tween_property(earplug_notice, "modulate:a", 0.0, 1.0)
|
||||
tween.finished.connect(_on_earplug_notice_finished)
|
||||
|
@ -25,6 +25,17 @@ bus = &"game_sfx"
|
||||
script = ExtResource("5_yb8ks")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
|
||||
[node name="遮罩" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -1.0
|
||||
offset_bottom = -1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="VideoStreamPlayer" type="VideoStreamPlayer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
@ -37,16 +48,6 @@ volume_db = -8.0
|
||||
expand = true
|
||||
bus = &"game_sfx"
|
||||
|
||||
[node name="遮罩" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="耳机提示" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
|
Loading…
Reference in New Issue
Block a user