From bc7df6808b404f96dd8a0677a90b4dcfaf9eca47 Mon Sep 17 00:00:00 2001 From: dam Date: Fri, 17 Jun 2022 23:53:52 +0000 Subject: First iteration over the day/night themes. --- ui/modal_popup/modal_popup.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/modal_popup') diff --git a/ui/modal_popup/modal_popup.gd b/ui/modal_popup/modal_popup.gd index 95fc2c3..857f90e 100644 --- a/ui/modal_popup/modal_popup.gd +++ b/ui/modal_popup/modal_popup.gd @@ -1,4 +1,4 @@ -extends Control +extends ColorRect class_name ModalPopup signal dismissed # () @@ -42,6 +42,8 @@ func open_popup(title: String, item: Control): if visible == true: return + self.color = get_color("background", "theme") + self.color.a = 0.85 self.title.text = title control = item -- cgit v1.2.3