Skip to content

Commit

Permalink
Remove documentation sections from Settings pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed Jan 21, 2024
1 parent ad7f4b7 commit 122e795
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 105 deletions.
3 changes: 0 additions & 3 deletions addons/dialogic/Modules/Save/settings_save.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ extends DialogicSettingsPage
func _get_priority() -> int:
return 0

func _get_info_section() -> Control:
return $InfoSection


func _refresh():
%Autosave.button_pressed = ProjectSettings.get_setting('dialogic/save/autosave', false)
Expand Down
31 changes: 11 additions & 20 deletions addons/dialogic/Modules/Save/settings_save.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://addons/dialogic/Modules/Save/settings_save.gd" id="2"]
[ext_resource type="PackedScene" uid="uid://dbpkta2tjsqim" path="res://addons/dialogic/Editor/Common/hint_tooltip_icon.tscn" id="2_v2wt8"]

[sub_resource type="Image" id="Image_mbwql"]
[sub_resource type="Image" id="Image_oatpr"]
data = {
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 93, 93, 41, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
"format": "RGBA8",
Expand All @@ -12,8 +12,8 @@ data = {
"width": 16
}

[sub_resource type="ImageTexture" id="ImageTexture_himd7"]
image = SubResource("Image_mbwql")
[sub_resource type="ImageTexture" id="ImageTexture_dbvsu"]
image = SubResource("Image_oatpr")

[node name="Saving" type="VBoxContainer"]
offset_right = 1084.0
Expand All @@ -35,7 +35,7 @@ text = "Autosave"
[node name="HintTooltip" parent="Grid/HBoxContainer" instance=ExtResource("2_v2wt8")]
layout_mode = 2
tooltip_text = "If enabled dialogic will autosave the full state to the current slot depending on the autosave method."
texture = SubResource("ImageTexture_himd7")
texture = SubResource("ImageTexture_dbvsu")
hint_text = "If enabled dialogic will autosave the full state to the current slot depending on the autosave method."

[node name="Autosave" type="CheckBox" parent="Grid"]
Expand Down Expand Up @@ -82,7 +82,7 @@ text = "Default slot name"
[node name="HintTooltip3" parent="Grid/HBoxContainer2" instance=ExtResource("2_v2wt8")]
layout_mode = 2
tooltip_text = "The name of the default slot. "
texture = SubResource("ImageTexture_himd7")
texture = SubResource("ImageTexture_dbvsu")
hint_text = "The name of the default slot. "

[node name="DefaultSaveSlotName" type="LineEdit" parent="Grid"]
Expand All @@ -100,8 +100,8 @@ text = "Encryption Password"

[node name="HintTooltip" parent="Grid/HBoxContainer3" instance=ExtResource("2_v2wt8")]
layout_mode = 2
tooltip_text = "The encryption password used to obfuscate save files. When left empty, the save files will not be encrypted."
texture = SubResource("ImageTexture_himd7")
tooltip_text = "The encryption password used to encrypt save files. When left empty, the save files will not be encrypted."
texture = SubResource("ImageTexture_dbvsu")
hint_text = "The encryption password used to encrypt save files. When left empty, the save files will not be encrypted."

[node name="HBoxContainer4" type="HBoxContainer" parent="Grid"]
Expand All @@ -123,8 +123,10 @@ text = "Use on exports only"

[node name="HintTooltip" parent="Grid/HBoxContainer4/EncryptionOnExportsSection" instance=ExtResource("2_v2wt8")]
layout_mode = 2
tooltip_text = "The encryption password used to encrypt save files. When left empty, the save files will not be encrypted."
texture = SubResource("ImageTexture_himd7")
tooltip_text = "For easier debugging dialogic will only encrypt saves made by exported project.
Exported projects with debug mode on or saves made when running in editor
will not use encryption."
texture = SubResource("ImageTexture_dbvsu")
hint_text = "For easier debugging dialogic will only encrypt saves made by exported project.
Exported projects with debug mode on or saves made when running in editor
will not use encryption."
Expand All @@ -133,17 +135,6 @@ will not use encryption."
unique_name_in_owner = true
layout_mode = 2

[node name="InfoSection" type="VBoxContainer" parent="."]
layout_mode = 2
size_flags_horizontal = 3

[node name="Label" type="Label" parent="InfoSection"]
layout_mode = 2
text = "You can save from code by calling Dialogic.Save.save(slot_name). For more information lookup the \"Subsystem_Save\" script in the documentation (Search Help button).
You can also save the dialogic data to your own files by saving the dictionary you get from Dialogic.get_full_state() and later loading it with Dialogic.load_full_state(dict)."
autowrap_mode = 3

[connection signal="toggled" from="Grid/Autosave" to="." method="_on_autosave_toggled"]
[connection signal="item_selected" from="Grid/AutosaveModeContent/AutosaveMode" to="." method="_on_autosave_mode_item_selected"]
[connection signal="value_changed" from="Grid/AutosaveModeContent/AutosaveDelay" to="." method="_on_autosave_delay_value_changed"]
Expand Down
3 changes: 0 additions & 3 deletions addons/dialogic/Modules/Text/settings_text.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ func _get_title() -> String:
return "Text"


func _get_info_section():
return $InformationSection

func _refresh() -> void:
%DefaultSpeed.value = ProjectSettings.get_setting('dialogic/text/letter_speed', 0.01)
%Skippable.button_pressed = ProjectSettings.get_setting('dialogic/text/initial_text_reveal_skippable', true)
Expand Down
Loading

0 comments on commit 122e795

Please sign in to comment.