Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Core/GDCore/Extensions/Builtin/AdvancedExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsAdvancedExtension(
"",
"res/functions/expression_black.svg",
"res/functions/expression_black.svg")
.SetHelpPath("/events/functions/return")
.SetHelpPath("/events/functions/#return-a-value-from-a-function")
.AddParameter("expression", _("The number to be returned"))
.SetRelevantForFunctionEventsOnly()
.MarkAsAdvanced();
Expand All @@ -48,7 +48,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsAdvancedExtension(
"",
"res/functions/expression_black.svg",
"res/functions/expression_black.svg")
.SetHelpPath("/events/functions/return")
.SetHelpPath("/all-features/advanced/reference/#actions")
.AddParameter("string", _("The text to be returned"))
.SetRelevantForFunctionEventsOnly()
.MarkAsAdvanced();
Expand All @@ -62,7 +62,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsAdvancedExtension(
"",
"res/functions/condition_black.svg",
"res/functions/condition_black.svg")
.SetHelpPath("/events/functions/return")
.SetHelpPath("/all-features/advanced/reference/#actions")
.AddParameter("trueorfalse", _("Should the condition be true or false?"))
.SetRelevantForFunctionEventsOnly()
.MarkAsAdvanced();
Expand All @@ -77,7 +77,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsAdvancedExtension(
"",
"res/functions/extension_black.svg",
"res/functions/extension_black.svg")
.SetHelpPath("/events/functions/return")
.SetHelpPath("/all-features/advanced/reference/#actions")
.AddParameter("functionParameterName", _("Parameter name"), "variable")
.AddParameter("scenevar", _("Scene variable"))
.SetHidden()
Expand All @@ -92,7 +92,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsAdvancedExtension(
"",
"res/functions/extension_black.svg",
"res/functions/extension_black.svg")
.SetHelpPath("/events/functions/return")
.SetHelpPath("/all-features/advanced/reference/#actions")
.AddParameter("functionParameterName", _("Parameter name"), "variable")
.AddParameter("variable", _("Variable"))
.SetRelevantForFunctionEventsOnly()
Expand All @@ -108,7 +108,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsAdvancedExtension(
"",
"res/functions/extension_black.svg",
"res/functions/extension_black.svg")
.SetHelpPath("/events/functions/return")
.SetHelpPath("/all-features/advanced/reference/#actions")
.AddParameter("functionParameterName", _("Parameter name"), "variable")
.AddParameter("scenevar", _("Scene variable"))
.SetHidden()
Expand All @@ -123,7 +123,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsAdvancedExtension(
"",
"res/functions/extension_black.svg",
"res/functions/extension_black.svg")
.SetHelpPath("/events/functions/return")
.SetHelpPath("/all-features/advanced/reference/#actions")
.AddParameter("functionParameterName", _("Parameter name"), "variable")
.AddParameter("variable", _("Variable"))
.SetRelevantForFunctionEventsOnly()
Expand Down
12 changes: 6 additions & 6 deletions Core/GDCore/Extensions/Builtin/MathematicalToolsExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ BuiltinExtensionsImplementer::ImplementsMathematicalToolsExtension(
_("Random integer"),
"",
"res/dice-6.svg")
.SetHelpPath("/all-features/expressions")
.SetHelpPath("/events/expressions/#expressions")
.AddParameter("expression", _("Maximum value"));

extension
Expand All @@ -37,7 +37,7 @@ BuiltinExtensionsImplementer::ImplementsMathematicalToolsExtension(
_("Random integer in range"),
"",
"res/dice-6.svg")
.SetHelpPath("/all-features/expressions")
.SetHelpPath("/events/expressions/#expressions")
.AddParameter("expression", _("Minimum value"))
.AddParameter("expression", _("Maximum value"));

Expand All @@ -47,7 +47,7 @@ BuiltinExtensionsImplementer::ImplementsMathematicalToolsExtension(
_("Random float"),
"",
"res/dice-6.svg")
.SetHelpPath("/all-features/expressions")
.SetHelpPath("/events/expressions/#expressions")
.AddParameter("expression", _("Maximum value"));

extension
Expand All @@ -56,7 +56,7 @@ BuiltinExtensionsImplementer::ImplementsMathematicalToolsExtension(
_("Random float in range"),
"",
"res/dice-6.svg")
.SetHelpPath("/all-features/expressions")
.SetHelpPath("/events/expressions/#expressions")
.AddParameter("expression", _("Minimum value"))
.AddParameter("expression", _("Maximum value"));

Expand All @@ -66,7 +66,7 @@ BuiltinExtensionsImplementer::ImplementsMathematicalToolsExtension(
_("Random value in steps"),
"",
"res/dice-6.svg")
.SetHelpPath("/all-features/expressions")
.SetHelpPath("/events/expressions/#expressions")
.AddParameter("expression", _("Minimum value"))
.AddParameter("expression", _("Maximum value"))
.AddParameter("expression", _("Step"));
Expand Down Expand Up @@ -476,7 +476,7 @@ BuiltinExtensionsImplementer::ImplementsMathematicalToolsExtension(
_("The number Pi (3.1415...)"),
"",
"res/mathfunction.png")
.SetHelpPath("/all-features/expressions");
.SetHelpPath("/events/expressions/#expressions");

extension
.AddExpression("lerpAngle",
Expand Down
20 changes: 10 additions & 10 deletions Core/GDCore/Extensions/Builtin/SceneExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/conditions/depart24.png",
"res/conditions/depart.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the old link was dead. Should we add a redirection?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that would be a good idea?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a redirection (GDevelopApp/GDevelop-documentation@7ff9543)

.AddCodeOnlyParameter("currentScene", "")
.MarkAsSimple();

Expand All @@ -60,7 +60,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/conditions/depart24.png",
"res/conditions/depart.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "")
.MarkAsSimple();

Expand All @@ -72,7 +72,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/actions/texte.png",
"res/actions/texte.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("sceneName", _("Name of the scene to check"))
.MarkAsSimple();
Expand All @@ -85,7 +85,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/actions/replaceScene24.png",
"res/actions/replaceScene.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("sceneName", _("Name of the new scene"))
.AddParameter("yesorno", _("Stop any other paused scenes?"))
Expand All @@ -102,7 +102,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/actions/pushScene24.png",
"res/actions/pushScene.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("sceneName", _("Name of the new scene"))
.MarkAsAdvanced();
Expand All @@ -117,7 +117,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/actions/popScene24.png",
"res/actions/popScene.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "")
.MarkAsAdvanced();

Expand All @@ -129,7 +129,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/actions/quit24.png",
"res/actions/quit.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "")
.MarkAsAdvanced();

Expand All @@ -141,7 +141,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/actions/background24.png",
"res/actions/background.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("color", _("Color"))
.MarkAsAdvanced();
Expand All @@ -155,7 +155,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/actions/window24.png",
"res/actions/window.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("yesorno", _("Deactivate input when focus is lost"))
.MarkAsAdvanced();
Expand All @@ -171,7 +171,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsSceneExtension(
"",
"res/actions/window24.png",
"res/actions/window.png")
.SetHelpPath("/interface/scene-editor/events")
.SetHelpPath("/interface/events-editor/")
.AddCodeOnlyParameter("currentScene", "");

extension
Expand Down
Loading
Loading