Add EventManager and event handling system; implement event triggering and popup display
This commit is contained in:
26
Scenes/UI/event_popup.tscn
Normal file
26
Scenes/UI/event_popup.tscn
Normal file
@@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://gdejd44km3co"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h1x5eqt0lc5m" path="res://Scripts/UI/EventPopup.cs" id="1_lkb7n"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2o5rufqn8dpf" path="res://Scenes/UI/event_option_button.tscn" id="2_gk0qx"]
|
||||
|
||||
[node name="EventPopup" type="PanelContainer" node_paths=PackedStringArray("_titleLabel", "_descriptionLabel", "_optionsContainer")]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
script = ExtResource("1_lkb7n")
|
||||
_titleLabel = NodePath("VBoxContainer/Title")
|
||||
_descriptionLabel = NodePath("VBoxContainer/Description")
|
||||
_optionsContainer = NodePath("VBoxContainer/OptionButtons")
|
||||
_optionButtonScene = ExtResource("2_gk0qx")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Title" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "TITLE"
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="OptionButtons" type="VBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
Reference in New Issue
Block a user