...
This commit is contained in:
parent
17879ce5b7
commit
7b1370e743
5 changed files with 33 additions and 1 deletions
|
|
@ -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
|
||||
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
|
||||
|
|
@ -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()`
|
||||
BIN
MyObsidianVault/Pasted image 20240625081421.png
Normal file
BIN
MyObsidianVault/Pasted image 20240625081421.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.4 KiB |
BIN
MyObsidianVault/Pasted image 20240625081825.png
Normal file
BIN
MyObsidianVault/Pasted image 20240625081825.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
MyObsidianVault/Pasted image 20240625083616.png
Normal file
BIN
MyObsidianVault/Pasted image 20240625083616.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2 KiB |
Loading…
Add table
Add a link
Reference in a new issue