Ping/Pong

This commit is contained in:
dingo
2026-01-16 15:53:55 -05:00
parent 0fa605bf6c
commit 583644fde6
51 changed files with 2745 additions and 220 deletions
+3 -3
View File
@@ -91,14 +91,14 @@ func _setup_inventory_slots():
func _create_slot_button() -> Button:
var btn = Button.new()
btn.custom_minimum_size = Vector2(48, 48)
btn.add_theme_stylebox_override("normal", _create_slot_style(Color(0.15, 0.15, 0.2)))
btn.add_theme_stylebox_override("hover", _create_slot_style(Color(0.25, 0.25, 0.35)))
btn.add_theme_stylebox_override("normal", _create_slot_style(Color(0.408, 0.408, 0.322, 1.0)))
btn.add_theme_stylebox_override("hover", _create_slot_style(Color(0.408, 0.408, 0.322, 0.902)))
return btn
func _create_slot_style(color: Color) -> StyleBoxFlat:
var style = StyleBoxFlat.new()
style.bg_color = color
style.border_color = Color(0.3, 0.3, 0.4)
style.border_color = Color(0.0, 0.0, 0.0, 1.0)
style.set_border_width_all(2)
style.set_corner_radius_all(4)
return style