General proofreading (#1262)

* General proofreading for grammar and spelling
* General formatting
* Addition of appropriate literals where appropriate, i.e. `&"foo"` for `StringName` cases and `^"foo/bar"` for `NodePath` cases
This commit is contained in:
A Thousand Ships
2025-10-11 10:39:59 +02:00
committed by GitHub
parent a01005f397
commit 0343cedd48
180 changed files with 721 additions and 692 deletions

View File

@@ -8,7 +8,7 @@ It includes:
- Adding physical objects to new windows.
- Showcase of all Dialog Windows.
- Showcase of all Popup Windows.
- Adding elements to a Popup Menu.
- Adding elements to a PopupMenu.
- Adding an icon to the system tray.
Language: GDScript

View File

@@ -1,7 +1,9 @@
extends Node
@export var sprite: Sprite2D
func generate_polygon():
# Make a bitmap out of a sprite.
var bitmap := BitMap.new()

View File

@@ -75,7 +75,7 @@ func _on_draggable_window_close_pressed() -> void:
func _on_bg_draggable_window_toggled(toggled_on: bool) -> void:
draggable_window.get_node("BG").visible = toggled_on
draggable_window.get_node(^"BG").visible = toggled_on
func _on_passthrough_polygon_item_selected(index: int) -> void:
@@ -83,7 +83,7 @@ func _on_passthrough_polygon_item_selected(index: int) -> void:
0:
draggable_window.mouse_passthrough_polygon = []
1:
draggable_window.get_node("PassthroughGenerator").generate_polygon()
draggable_window.get_node(^"PassthroughGenerator").generate_polygon()
2:
draggable_window.mouse_passthrough_polygon = [
Vector2(16, 0), Vector2(16, 128),
@@ -119,6 +119,7 @@ func _on_file_dialog_options_item_selected(index: int) -> void:
4:
file_dialog.file_mode = FileDialog.FILE_MODE_SAVE_FILE
func _on_native_dialog_toggled(toggled_on: bool) -> void:
file_dialog.use_native_dialog = toggled_on

View File

@@ -5,9 +5,9 @@
[ext_resource type="Script" uid="uid://b4ngyw7e2c75u" path="res://scenes/disable_other.gd" id="2_psh0l"]
[ext_resource type="Script" uid="uid://evvrji8vwf5l" path="res://scenes/text_field.gd" id="3_bgndp"]
[ext_resource type="PackedScene" uid="uid://ek1fmwy87san" path="res://scenes/draggable_window/draggable_window.tscn" id="4_diw6b"]
[ext_resource type="PackedScene" uid="uid://dx84v67isxyjv" path="res://scenes/file_dialogue/file_dialog.tscn" id="5_f4o8g"]
[ext_resource type="PackedScene" uid="uid://cudrukovmha7p" path="res://scenes/accept_dialogue/accept_dialog.tscn" id="6_st8be"]
[ext_resource type="PackedScene" uid="uid://1nswovajdv3n" path="res://scenes/confimation_dialogue/confirmation_dialog.tscn" id="7_wii4q"]
[ext_resource type="PackedScene" uid="uid://dx84v67isxyjv" path="res://scenes/file_dialog/file_dialog.tscn" id="5_f4o8g"]
[ext_resource type="PackedScene" uid="uid://cudrukovmha7p" path="res://scenes/accept_dialog/accept_dialog.tscn" id="6_st8be"]
[ext_resource type="PackedScene" uid="uid://1nswovajdv3n" path="res://scenes/confirmation_dialog/confirmation_dialog.tscn" id="7_wii4q"]
[ext_resource type="PackedScene" uid="uid://p7lgllpnc8h8" path="res://scenes/popup/popup.tscn" id="8_vohc5"]
[ext_resource type="PackedScene" uid="uid://j7j6fe7plvmt" path="res://scenes/popup_menu/popup_menu.tscn" id="9_b1y32"]
[ext_resource type="PackedScene" uid="uid://dj15to28g17lb" path="res://scenes/popup_panel/popup_panel.tscn" id="10_rn47v"]
@@ -57,7 +57,7 @@ text = "Show window"
[node name="WindowTitleEdit" type="LineEdit" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
placeholder_text = "Window's Title"
placeholder_text = "Window Title"
[node name="TransientWindow" type="CheckButton" parent="HBoxContainer/VBoxContainer" node_paths=PackedStringArray("others")]
layout_mode = 2
@@ -69,13 +69,11 @@ others = [NodePath("../ExclusiveWindow")]
layout_mode = 2
tooltip_text = "Needs transient enabled to work."
disabled = true
text = "Exclusive
"
text = "Exclusive"
[node name="UnresizableWindow" type="CheckButton" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Unresizable
"
text = "Unresizable"
[node name="BorderlessWindow" type="CheckButton" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
@@ -88,8 +86,7 @@ text = "Always on Top"
[node name="TransparentWindow" type="CheckButton" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
tooltip_text = "Needs embed_subwindows disabled to work."
text = "Transparent
"
text = "Transparent"
[node name="HSeparator2" type="HSeparator" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
@@ -105,7 +102,7 @@ layout_mode = 2
[node name="DraggableWindowButton" type="Button" parent="HBoxContainer/VBoxContainer/HBoxContainerDW"]
layout_mode = 2
size_flags_horizontal = 3
text = "Draggable window"
text = "Draggable Window"
[node name="Close" type="Button" parent="HBoxContainer/VBoxContainer/HBoxContainerDW"]
layout_mode = 2
@@ -114,10 +111,9 @@ text = "X"
[node name="DraggableWindowExplanation" type="RichTextLabel" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/normal_font_size = 12
text = "This window uses Area2D to detect if user clicked inside of it.
Since it's Area2D, you can change it's CollisionShape2D.
But since Area2D is a Physics Object, \"Physics Object Picking\" inside of Window's properties hard to be enabled.
"
text = "This window uses an Area2D to detect if the user clicked inside of it.
Since it's an Area2D, you can change its CollisionShape2D.
But since Area2D is a Physics Object, the \"Physics Object Picking\" property has to be enabled in Window."
fit_content = true
[node name="BGDraggableWindow" type="CheckButton" parent="HBoxContainer/VBoxContainer"]
@@ -170,8 +166,7 @@ popup/item_4/id = 4
[node name="NativeDialog" type="CheckButton" parent="HBoxContainer/VBoxContainer2"]
layout_mode = 2
text = "Use Native
Dialog"
text = "Use Native Dialog"
[node name="FileDialogOutput" type="TextEdit" parent="HBoxContainer/VBoxContainer2"]
custom_minimum_size = Vector2(200, 150)
@@ -209,7 +204,7 @@ text = "Enter"
[node name="AcceptOutput" type="TextEdit" parent="HBoxContainer/VBoxContainer2"]
custom_minimum_size = Vector2(200, 70)
layout_mode = 2
placeholder_text = "Dialogue result will show up here."
placeholder_text = "Dialog result will show up here."
editable = false
wrap_mode = 1
@@ -223,7 +218,7 @@ horizontal_alignment = 1
[node name="ConfirmationButton" type="Button" parent="HBoxContainer/VBoxContainer2"]
layout_mode = 2
text = "Show Dialogue"
text = "Show Dialog"
[node name="ConfirmationOutput" type="TextEdit" parent="HBoxContainer/VBoxContainer2"]
custom_minimum_size = Vector2(200, 35)
@@ -250,7 +245,7 @@ layout_mode = 2
theme_override_font_sizes/normal_font_size = 12
theme_override_font_sizes/mono_font_size = 12
bbcode_enabled = true
text = "Popup hiding on mouse exit is handled by via [code]mouse_exited[/code] signal"
text = "Popup hiding on mouse exit is handled by via the [code]mouse_exited[/code] signal."
fit_content = true
[node name="HSeparator" type="HSeparator" parent="HBoxContainer/VBoxContainer3"]

View File

@@ -7,5 +7,5 @@ func _ready() -> void:
func _on_close_requested() -> void:
print("%s %s was hidden." % [str(self.get_class()), name])
print("%s %s was hidden." % [str(get_class()), name])
hide()