diff --git a/MyObsidianVault/Godot_Training/2D/Tutorial Game 4 - Telling a story/M7.L4 - Designing an interface theme/notes.md b/MyObsidianVault/Godot_Training/2D/Tutorial Game 4 - Telling a story/M7.L4 - Designing an interface theme/notes.md index 15e42ca..a202844 100644 --- a/MyObsidianVault/Godot_Training/2D/Tutorial Game 4 - Telling a story/M7.L4 - Designing an interface theme/notes.md +++ b/MyObsidianVault/Godot_Training/2D/Tutorial Game 4 - Telling a story/M7.L4 - Designing an interface theme/notes.md @@ -4,4 +4,8 @@ Theme Editor Overview: https://school.gdquest.com/courses/learn_2d_gamedev_godot_4/telling_a_story/all_theme_editor_areas -Beware of not working copy/paste in theme styles. Workaround is Make unique and saving / loding in new component \ No newline at end of file +Beware of not working copy/paste in theme styles. Workaround is Make unique and saving / loding in new component + +1.) Create Theme Resource +2.) Modifiy +3.) Assign to uppermost UI Control Node \ No newline at end of file diff --git a/MyObsidianVault/Godot_Training/2D/Tutorial Game 4 - Telling a story/M7.L5 - Your first words/notes.md b/MyObsidianVault/Godot_Training/2D/Tutorial Game 4 - Telling a story/M7.L5 - Your first words/notes.md new file mode 100644 index 0000000..fd20073 --- /dev/null +++ b/MyObsidianVault/Godot_Training/2D/Tutorial Game 4 - Telling a story/M7.L5 - Your first words/notes.md @@ -0,0 +1,28 @@ +https://school.gdquest.com/courses/learn_2d_gamedev_godot_4/telling_a_story/your_first_words + +Scene Unique Nodes + +`To mark a node as unique, right-click it in the _Scene_ dock and select _Access As Unique Name_ in the dropdown menu.` + +![[Pasted image 20240625081421.png]] + +Restriction: They can only be addressed from the scene their uniqueness is defined in. + +`There's also an important limitation to this feature: nodes with a scene-unique name only exist in the scene they're marked in. For example, if we mark our `RichTextLabel` in the scene dialogue.tscn as unique, we can't reference it from another scene. + +You also can't mark nodes instantiated at runtime as unique. That's why we learned the more general way of getting nodes first with `get_node()`.` + + +Script shortcut: + 1.) Mark unique nodes + 2.) Drag and hold over script editor + 3.) Press and hold Ctrl + 4.) Release and see created initialization code + + ![[Pasted image 20240625081825.png]] + + + +Quitting the game +![[Pasted image 20240625083616.png]] +`get_tree().quit()` \ No newline at end of file diff --git a/MyObsidianVault/Pasted image 20240625081421.png b/MyObsidianVault/Pasted image 20240625081421.png new file mode 100644 index 0000000..aa11914 Binary files /dev/null and b/MyObsidianVault/Pasted image 20240625081421.png differ diff --git a/MyObsidianVault/Pasted image 20240625081825.png b/MyObsidianVault/Pasted image 20240625081825.png new file mode 100644 index 0000000..ee875eb Binary files /dev/null and b/MyObsidianVault/Pasted image 20240625081825.png differ diff --git a/MyObsidianVault/Pasted image 20240625083616.png b/MyObsidianVault/Pasted image 20240625083616.png new file mode 100644 index 0000000..8ecdb44 Binary files /dev/null and b/MyObsidianVault/Pasted image 20240625083616.png differ