Merge pull request #10252 from tetrapod00/warn

Change warning boxes to danger boxes if data loss can occur
This commit is contained in:
Max Hilbrunner
2024-11-15 15:57:25 +01:00
committed by GitHub
5 changed files with 6 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ only ``.gdshader`` is supported in Godot 4.0.
Running the project upgrade tool
--------------------------------
.. warning::
.. danger::
**Make a full backup of your project** before upgrading! The project upgrade
tool will *not* perform any backups of the project that is being upgraded.

View File

@@ -149,7 +149,7 @@ For example, to set a custom user agent (the HTTP ``User-Agent`` header) you cou
HttpRequest httpRequest = GetNode<HttpRequest>("HTTPRequest");
httpRequest.Request("https://api.github.com/repos/godotengine/godot/releases/latest", new string[] { "User-Agent: YourCustomUserAgent" });
.. warning::
.. danger::
Be aware that someone might analyse and decompile your released application and
thus may gain access to any embedded authorization information like tokens, usernames or passwords.

View File

@@ -23,7 +23,7 @@ use cases:
- If your player doesn't use a sprite, but draws itself using code, you can make
that drawing code execute in the editor to see your player.
.. DANGER::
.. danger::
``@tool`` scripts run inside the editor, and let you access the scene tree
of the currently edited scene. This is a powerful feature which also comes
@@ -503,7 +503,7 @@ currently focused on the script editor.
Scripts that extend EditorScript must be ``@tool`` scripts to function.
.. warning::
.. danger::
EditorScripts have no undo/redo functionality, so **make sure to save your
scene before running one** if the script is designed to modify any data.