[gd_scene load_steps=5 format=2]

[ext_resource path="res://ui/windows/SpellDragAndDropSpellBook.gd" type="Script" id=1]
[ext_resource path="res://ui/windows/SpellContainer.gd" type="Script" id=2]
[ext_resource path="res://ui/theme/ui_theme.tres" type="Theme" id=3]
[ext_resource path="res://ui/spellbook/SpellEntryPopup.gd" type="Script" id=5]

[node name="SpellContainer" type="Control"]
margin_left = 290.0
margin_top = 306.0
margin_right = 576.0
margin_bottom = 370.0
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource( 3 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
icon_path = NodePath("PanelContainer/HBoxContainer/Button/CenterContainer/SpellIcon")
name_label_path = NodePath("PanelContainer/HBoxContainer/SpellName")
known_label_path = NodePath("SpellEntryPopup/VBoxContainer/PanelContainer")
learn_button_path = NodePath("SpellEntryPopup/VBoxContainer/LearnButton")
spell_button_path = NodePath("PanelContainer/HBoxContainer/Button")
popup_path = NodePath("SpellEntryPopup")
not_known_color = Color( 0.596078, 0.596078, 0.596078, 1 )
unlearnable_color = Color( 0.772549, 0.192157, 0.192157, 1 )

[node name="PanelContainer" type="PanelContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer"]
margin_left = 4.0
margin_top = 4.0
margin_right = 282.0
margin_bottom = 60.0

[node name="Button" type="Button" parent="PanelContainer/HBoxContainer"]
margin_right = 55.0
margin_bottom = 56.0
rect_min_size = Vector2( 55, 55 )
script = ExtResource( 1 )

[node name="CenterContainer" type="MarginContainer" parent="PanelContainer/HBoxContainer/Button"]
margin_left = 4.0
margin_top = 4.0
margin_right = 51.0
margin_bottom = 51.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}

[node name="SpellIcon" type="TextureRect" parent="PanelContainer/HBoxContainer/Button/CenterContainer"]
margin_right = 47.0
margin_bottom = 47.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
expand = true

[node name="SpellName" type="Label" parent="PanelContainer/HBoxContainer"]
margin_left = 59.0
margin_top = 20.0
margin_right = 278.0
margin_bottom = 35.0
size_flags_horizontal = 3
text = "......"

[node name="SpellEntryPopup" type="PopupPanel" parent="."]
margin_left = 64.0
margin_top = 4.0
margin_right = 360.0
margin_bottom = 207.0
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
label_path = NodePath("VBoxContainer/HBoxContainer/Label")
desc_label_path = NodePath("VBoxContainer/RichTextLabel")

[node name="VBoxContainer" type="VBoxContainer" parent="SpellEntryPopup"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 4.0
margin_right = -4.0
margin_bottom = -4.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="HBoxContainer" type="HBoxContainer" parent="SpellEntryPopup/VBoxContainer"]
margin_right = 288.0
margin_bottom = 26.0

[node name="Label" type="Label" parent="SpellEntryPopup/VBoxContainer/HBoxContainer"]
margin_top = 5.0
margin_right = 254.0
margin_bottom = 20.0
size_flags_horizontal = 3

[node name="Button" type="Button" parent="SpellEntryPopup/VBoxContainer/HBoxContainer"]
margin_left = 258.0
margin_right = 288.0
margin_bottom = 26.269
rect_min_size = Vector2( 30, 0 )
text = "X"

[node name="HSeparator2" type="HSeparator" parent="SpellEntryPopup/VBoxContainer"]
margin_top = 34.0
margin_right = 288.0
margin_bottom = 38.0

[node name="PanelContainer" type="PanelContainer" parent="SpellEntryPopup/VBoxContainer"]
visible = false
margin_top = 46.0
margin_right = 288.0
margin_bottom = 66.0
rect_min_size = Vector2( 0, 20 )

[node name="KnownLabel" type="Label" parent="SpellEntryPopup/VBoxContainer/PanelContainer"]
margin_top = 2.0
margin_right = 288.0
margin_bottom = 17.0
text = "Known"
align = 1
valign = 1

[node name="LearnButton" type="Button" parent="SpellEntryPopup/VBoxContainer"]
visible = false
margin_top = 46.0
margin_right = 288.0
margin_bottom = 72.269
text = "Learn"

[node name="RichTextLabel" type="RichTextLabel" parent="SpellEntryPopup/VBoxContainer"]
margin_top = 46.0
margin_right = 288.0
margin_bottom = 195.0
size_flags_horizontal = 3
size_flags_vertical = 3
[connection signal="pressed" from="PanelContainer/HBoxContainer/Button" to="." method="spell_button_pressed"]
[connection signal="pressed" from="SpellEntryPopup/VBoxContainer/HBoxContainer/Button" to="SpellEntryPopup" method="hide"]
[connection signal="pressed" from="SpellEntryPopup/VBoxContainer/LearnButton" to="." method="learn_spell"]
