class_name CircusTheme extends RefCounted ## Palette e StyleBox comuni agli overlay circensi. const FONT := preload("res://shared/assets/fonts/NotoSerifDisplay-CondensedExtraBold.ttf") const WOOD_TEXTURE := preload("res://shared/assets/textures/wood_board_rounded.png") const INK := Color("#482615") const BRASS := Color("#d5a83f") const BRASS_LIGHT := Color("#f6d77a") static func flat_style(color: Color, border: Color, width: int, radius: int) -> StyleBoxFlat: var style := StyleBoxFlat.new() style.bg_color = color style.border_color = border style.set_border_width_all(width) style.set_corner_radius_all(radius) return style static func wood_style() -> StyleBoxTexture: var style := StyleBoxTexture.new() style.texture = WOOD_TEXTURE style.texture_margin_left = 35.0 style.texture_margin_right = 35.0 style.texture_margin_top = 35.0 style.texture_margin_bottom = 35.0 return style static func button_style(color: Color, border: Color, width: int, radius: int = 14) -> StyleBoxFlat: var style := flat_style(color, border, width, radius) style.shadow_color = Color(0.14, 0.05, 0.02, 0.48) style.shadow_size = 6 style.shadow_offset = Vector2(0, 4) return style