diff --git a/game/ui/windows/SpellBookWindow.tscn b/game/ui/windows/SpellBookWindow.tscn index cb6a4a3e..c9bc7355 100644 --- a/game/ui/windows/SpellBookWindow.tscn +++ b/game/ui/windows/SpellBookWindow.tscn @@ -154,13 +154,14 @@ size_flags_horizontal = 3 size_flags_vertical = 3 [node name="Button2" type="Button" parent="PagedContent/Controls/HBoxContainer"] -margin_right = 288.0 +margin_right = 434.0 margin_bottom = 26.269 size_flags_horizontal = 3 size_flags_vertical = 3 text = "< Previous page" [node name="SpellPoints" type="Label" parent="PagedContent/Controls/HBoxContainer"] +visible = false margin_left = 292.0 margin_top = 5.0 margin_right = 580.0 @@ -170,7 +171,7 @@ align = 1 valign = 1 [node name="Button" type="Button" parent="PagedContent/Controls/HBoxContainer"] -margin_left = 584.0 +margin_left = 438.0 margin_right = 872.0 margin_bottom = 26.269 size_flags_horizontal = 3 diff --git a/game/ui/windows/SpellContainer.gd b/game/ui/windows/SpellContainer.gd index 382cd64a..c4a23dac 100644 --- a/game/ui/windows/SpellContainer.gd +++ b/game/ui/windows/SpellContainer.gd @@ -107,8 +107,8 @@ func spell_button_pressed() -> void: func update_spell_indicators(): if _spell_known: - get_node(known_label_path).show() - get_node(learn_button_path).hide() +# get_node(known_label_path).show() +# get_node(learn_button_path).hide() modulate = known_color else: @@ -116,15 +116,15 @@ func update_spell_indicators(): if _spell.training_required_spell: if not _player.hasc_spell(_spell.training_required_spell): - get_node(known_label_path).hide() - get_node(learn_button_path).show() +# get_node(known_label_path).hide() +# get_node(learn_button_path).show() modulate = unlearnable_color return - get_node(known_label_path).hide() - get_node(learn_button_path).show() +# get_node(known_label_path).hide() +# get_node(learn_button_path).show() modulate = not_known_color diff --git a/game/ui/windows/SpellContainer.tscn b/game/ui/windows/SpellContainer.tscn index ed333ac3..1a8516d6 100644 --- a/game/ui/windows/SpellContainer.tscn +++ b/game/ui/windows/SpellContainer.tscn @@ -101,7 +101,7 @@ margin_bottom = 26.0 [node name="Label" type="Label" parent="SpellEntryPopup/VBoxContainer/HBoxContainer"] margin_top = 5.0 -margin_right = 250.0 +margin_right = 254.0 margin_bottom = 20.0 size_flags_horizontal = 3 @@ -115,32 +115,32 @@ text = "X" [node name="HSeparator2" type="HSeparator" parent="SpellEntryPopup/VBoxContainer"] margin_top = 34.0 margin_right = 288.0 -margin_bottom = 42.0 +margin_bottom = 38.0 [node name="PanelContainer" type="PanelContainer" parent="SpellEntryPopup/VBoxContainer"] visible = false -margin_top = 50.0 -margin_right = 296.0 -margin_bottom = 80.0 +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_left = 4.0 -margin_top = 7.0 -margin_right = 292.0 -margin_bottom = 22.0 +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"] -margin_top = 50.0 +visible = false +margin_top = 46.0 margin_right = 288.0 -margin_bottom = 76.269 +margin_bottom = 72.269 text = "Learn" [node name="RichTextLabel" type="RichTextLabel" parent="SpellEntryPopup/VBoxContainer"] -margin_top = 84.0 +margin_top = 46.0 margin_right = 288.0 margin_bottom = 195.0 size_flags_horizontal = 3