mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Disabled spell learning for the ui aswell.
This commit is contained in:
parent
c34a194c82
commit
a729c93dac
@ -154,13 +154,14 @@ size_flags_horizontal = 3
|
|||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="Button2" type="Button" parent="PagedContent/Controls/HBoxContainer"]
|
[node name="Button2" type="Button" parent="PagedContent/Controls/HBoxContainer"]
|
||||||
margin_right = 288.0
|
margin_right = 434.0
|
||||||
margin_bottom = 26.269
|
margin_bottom = 26.269
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
text = "< Previous page"
|
text = "< Previous page"
|
||||||
|
|
||||||
[node name="SpellPoints" type="Label" parent="PagedContent/Controls/HBoxContainer"]
|
[node name="SpellPoints" type="Label" parent="PagedContent/Controls/HBoxContainer"]
|
||||||
|
visible = false
|
||||||
margin_left = 292.0
|
margin_left = 292.0
|
||||||
margin_top = 5.0
|
margin_top = 5.0
|
||||||
margin_right = 580.0
|
margin_right = 580.0
|
||||||
@ -170,7 +171,7 @@ align = 1
|
|||||||
valign = 1
|
valign = 1
|
||||||
|
|
||||||
[node name="Button" type="Button" parent="PagedContent/Controls/HBoxContainer"]
|
[node name="Button" type="Button" parent="PagedContent/Controls/HBoxContainer"]
|
||||||
margin_left = 584.0
|
margin_left = 438.0
|
||||||
margin_right = 872.0
|
margin_right = 872.0
|
||||||
margin_bottom = 26.269
|
margin_bottom = 26.269
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
@ -107,8 +107,8 @@ func spell_button_pressed() -> void:
|
|||||||
|
|
||||||
func update_spell_indicators():
|
func update_spell_indicators():
|
||||||
if _spell_known:
|
if _spell_known:
|
||||||
get_node(known_label_path).show()
|
# get_node(known_label_path).show()
|
||||||
get_node(learn_button_path).hide()
|
# get_node(learn_button_path).hide()
|
||||||
|
|
||||||
modulate = known_color
|
modulate = known_color
|
||||||
else:
|
else:
|
||||||
@ -116,15 +116,15 @@ func update_spell_indicators():
|
|||||||
if _spell.training_required_spell:
|
if _spell.training_required_spell:
|
||||||
if not _player.hasc_spell(_spell.training_required_spell):
|
if not _player.hasc_spell(_spell.training_required_spell):
|
||||||
|
|
||||||
get_node(known_label_path).hide()
|
# get_node(known_label_path).hide()
|
||||||
get_node(learn_button_path).show()
|
# get_node(learn_button_path).show()
|
||||||
|
|
||||||
modulate = unlearnable_color
|
modulate = unlearnable_color
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
get_node(known_label_path).hide()
|
# get_node(known_label_path).hide()
|
||||||
get_node(learn_button_path).show()
|
# get_node(learn_button_path).show()
|
||||||
|
|
||||||
modulate = not_known_color
|
modulate = not_known_color
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ margin_bottom = 26.0
|
|||||||
|
|
||||||
[node name="Label" type="Label" parent="SpellEntryPopup/VBoxContainer/HBoxContainer"]
|
[node name="Label" type="Label" parent="SpellEntryPopup/VBoxContainer/HBoxContainer"]
|
||||||
margin_top = 5.0
|
margin_top = 5.0
|
||||||
margin_right = 250.0
|
margin_right = 254.0
|
||||||
margin_bottom = 20.0
|
margin_bottom = 20.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
@ -115,32 +115,32 @@ text = "X"
|
|||||||
[node name="HSeparator2" type="HSeparator" parent="SpellEntryPopup/VBoxContainer"]
|
[node name="HSeparator2" type="HSeparator" parent="SpellEntryPopup/VBoxContainer"]
|
||||||
margin_top = 34.0
|
margin_top = 34.0
|
||||||
margin_right = 288.0
|
margin_right = 288.0
|
||||||
margin_bottom = 42.0
|
margin_bottom = 38.0
|
||||||
|
|
||||||
[node name="PanelContainer" type="PanelContainer" parent="SpellEntryPopup/VBoxContainer"]
|
[node name="PanelContainer" type="PanelContainer" parent="SpellEntryPopup/VBoxContainer"]
|
||||||
visible = false
|
visible = false
|
||||||
margin_top = 50.0
|
margin_top = 46.0
|
||||||
margin_right = 296.0
|
margin_right = 288.0
|
||||||
margin_bottom = 80.0
|
margin_bottom = 66.0
|
||||||
rect_min_size = Vector2( 0, 20 )
|
rect_min_size = Vector2( 0, 20 )
|
||||||
|
|
||||||
[node name="KnownLabel" type="Label" parent="SpellEntryPopup/VBoxContainer/PanelContainer"]
|
[node name="KnownLabel" type="Label" parent="SpellEntryPopup/VBoxContainer/PanelContainer"]
|
||||||
margin_left = 4.0
|
margin_top = 2.0
|
||||||
margin_top = 7.0
|
margin_right = 288.0
|
||||||
margin_right = 292.0
|
margin_bottom = 17.0
|
||||||
margin_bottom = 22.0
|
|
||||||
text = "Known"
|
text = "Known"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
|
|
||||||
[node name="LearnButton" type="Button" parent="SpellEntryPopup/VBoxContainer"]
|
[node name="LearnButton" type="Button" parent="SpellEntryPopup/VBoxContainer"]
|
||||||
margin_top = 50.0
|
visible = false
|
||||||
|
margin_top = 46.0
|
||||||
margin_right = 288.0
|
margin_right = 288.0
|
||||||
margin_bottom = 76.269
|
margin_bottom = 72.269
|
||||||
text = "Learn"
|
text = "Learn"
|
||||||
|
|
||||||
[node name="RichTextLabel" type="RichTextLabel" parent="SpellEntryPopup/VBoxContainer"]
|
[node name="RichTextLabel" type="RichTextLabel" parent="SpellEntryPopup/VBoxContainer"]
|
||||||
margin_top = 84.0
|
margin_top = 46.0
|
||||||
margin_right = 288.0
|
margin_right = 288.0
|
||||||
margin_bottom = 195.0
|
margin_bottom = 195.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
Loading…
Reference in New Issue
Block a user