33 lines
1.1 KiB
GDScript
33 lines
1.1 KiB
GDScript
extends PanelContainer
|
|
|
|
var caption := "PASYWNE"
|
|
|
|
func _ready() -> void:
|
|
mouse_filter = Control.MOUSE_FILTER_IGNORE
|
|
var frame := StyleBoxFlat.new()
|
|
frame.bg_color = Color(0.025, 0.041, 0.063, 0.30)
|
|
frame.border_color = Color(0.28, 0.48, 0.55, 0.45)
|
|
frame.set_border_width_all(1)
|
|
frame.set_corner_radius_all(6)
|
|
frame.set_content_margin_all(10)
|
|
add_theme_stylebox_override("panel", frame)
|
|
var contents := VBoxContainer.new()
|
|
contents.name = "Contents"
|
|
contents.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
|
contents.add_theme_constant_override("separation", 8)
|
|
add_child(contents)
|
|
var title := Label.new()
|
|
title.text = caption
|
|
title.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
|
title.add_theme_font_override("font", ThemeDB.fallback_font)
|
|
title.add_theme_font_size_override("font_size", 11)
|
|
title.add_theme_color_override("font_color", Color("91dbea"))
|
|
contents.add_child(title)
|
|
var icons := GridContainer.new()
|
|
icons.name = "Icons"
|
|
icons.columns = 5
|
|
icons.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
|
icons.add_theme_constant_override("h_separation", 6)
|
|
icons.add_theme_constant_override("v_separation", 6)
|
|
contents.add_child(icons)
|