feat: animate P1 tent hover with curtain and garland lights
This commit is contained in:
@@ -36,6 +36,7 @@ func _build() -> void:
|
||||
|
||||
back_button = _make_back_button()
|
||||
add_child(back_button)
|
||||
MenuUI.set_normalized_rect(back_button, MenuUI.BACK_BUTTON_CENTER, MenuUI.BACK_BUTTON_SIZE)
|
||||
|
||||
score_label = _make_label("", Vector2(112 * x_scale, 520), Vector2(220 * x_scale, 45), 25, ink)
|
||||
score_label.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
@@ -77,17 +78,6 @@ func _make_back_button() -> TextureButton:
|
||||
button.ignore_texture_size = true
|
||||
button.stretch_mode = TextureButton.STRETCH_KEEP_ASPECT_CENTERED
|
||||
button.tooltip_text = "Torna al menu Juggle"
|
||||
# Margine sicuro relativo, uguale al bordo utile dei controlli nei menu.
|
||||
# Ancore coincidenti: gli offset definiscono soltanto la dimensione del tasto.
|
||||
button.set_anchors_preset(Control.PRESET_TOP_LEFT)
|
||||
button.anchor_left = 0.03
|
||||
button.anchor_top = 0.06
|
||||
button.anchor_right = 0.03
|
||||
button.anchor_bottom = 0.06
|
||||
button.offset_left = 0.0
|
||||
button.offset_top = 0.0
|
||||
button.offset_right = 76.0
|
||||
button.offset_bottom = 64.0
|
||||
button.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND
|
||||
button.mouse_entered.connect(func(): button.modulate = Color(1.10, 1.10, 1.10, 1.0))
|
||||
button.mouse_exited.connect(func(): button.modulate = Color.WHITE)
|
||||
|
||||
@@ -40,7 +40,7 @@ func _build() -> void:
|
||||
artwork.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
add_child(artwork)
|
||||
|
||||
var back := MenuUI.add_hotspot(self, Vector2(0.09, 0.14), Vector2(0.10, 0.14))
|
||||
var back := MenuUI.add_hotspot(self, MenuUI.BACK_BUTTON_CENTER, MenuUI.BACK_BUTTON_SIZE)
|
||||
back.tooltip_text = "Torna alla palestra"
|
||||
back.pressed.connect(func(): return_requested.emit())
|
||||
back.z_index = 20
|
||||
|
||||
Reference in New Issue
Block a user