feat: bugfix UI dialog text
This commit is contained in:
@@ -4,16 +4,6 @@
|
|||||||
|
|
||||||
[node name="LobbyInvitePopup" type="ConfirmationDialog"]
|
[node name="LobbyInvitePopup" type="ConfirmationDialog"]
|
||||||
title = "Lobby Invitation"
|
title = "Lobby Invitation"
|
||||||
|
size = Vector2i(320, 120)
|
||||||
ok_button_text = "Join"
|
ok_button_text = "Join"
|
||||||
script = ExtResource("1_lip")
|
script = ExtResource("1_lip")
|
||||||
|
|
||||||
[node name="VBox" type="VBoxContainer" parent="."]
|
|
||||||
layout_mode = 0
|
|
||||||
offset_right = 280.0
|
|
||||||
offset_bottom = 80.0
|
|
||||||
|
|
||||||
[node name="MessageLabel" type="Label" parent="VBox"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
layout_mode = 2
|
|
||||||
text = "Someone invited you to their lobby!"
|
|
||||||
autowrap_mode = 3
|
|
||||||
|
|||||||
@@ -3,12 +3,10 @@ extends ConfirmationDialog
|
|||||||
signal accepted
|
signal accepted
|
||||||
signal declined
|
signal declined
|
||||||
|
|
||||||
@onready var _message_label: Label = %MessageLabel
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
confirmed.connect(func(): emit_signal("accepted"))
|
confirmed.connect(func(): emit_signal("accepted"))
|
||||||
canceled.connect(func(): emit_signal("declined"))
|
canceled.connect(func(): emit_signal("declined"))
|
||||||
get_cancel_button().text = "Decline"
|
get_cancel_button().text = "Decline"
|
||||||
|
|
||||||
func setup(from_name: String) -> void:
|
func setup(from_name: String) -> void:
|
||||||
_message_label.text = "%s invited you to join their lobby!\n\nJoin now?" % from_name
|
dialog_text = "%s invited you to join their lobby!\n\nJoin now?" % from_name
|
||||||
|
|||||||
Reference in New Issue
Block a user