From 27efe8e3dd87af17cd9265a9804ed59b76239612 Mon Sep 17 00:00:00 2001 From: D8H Date: Sun, 19 Nov 2023 16:13:19 +0100 Subject: [PATCH] Improving the grouping of some behaviors actions and conditions (#5923) --- .../DestroyOutsideBehavior/Extension.cpp | 4 +- Extensions/DraggableBehavior/Extension.cpp | 4 +- Extensions/PathfindingBehavior/Extension.cpp | 10 +- Extensions/PlatformBehavior/Extension.cpp | 124 +++++++++--------- .../TopDownMovementBehavior/Extension.cpp | 85 ++++++------ 5 files changed, 113 insertions(+), 114 deletions(-) diff --git a/Extensions/DestroyOutsideBehavior/Extension.cpp b/Extensions/DestroyOutsideBehavior/Extension.cpp index 8e21ae222da9..2ab6b29723dd 100644 --- a/Extensions/DestroyOutsideBehavior/Extension.cpp +++ b/Extensions/DestroyOutsideBehavior/Extension.cpp @@ -41,7 +41,7 @@ void DeclareDestroyOutsideBehaviorExtension(gd::PlatformExtension& extension) { _("Compare the additional border that the object must cross " "before being deleted."), _("the additional border"), - "", + _("Destroy outside configuration"), "CppPlatform/Extensions/destroyoutsideicon24.png", "CppPlatform/Extensions/destroyoutsideicon16.png") .AddParameter("object", _("Object")) @@ -56,7 +56,7 @@ void DeclareDestroyOutsideBehaviorExtension(gd::PlatformExtension& extension) { _("Change the additional border that the object must cross " "before being deleted."), _("the additional border"), - "", + _("Destroy outside configuration"), "CppPlatform/Extensions/destroyoutsideicon24.png", "CppPlatform/Extensions/destroyoutsideicon16.png") .AddParameter("object", _("Object")) diff --git a/Extensions/DraggableBehavior/Extension.cpp b/Extensions/DraggableBehavior/Extension.cpp index ce9a5d6b838f..42ad5607020f 100644 --- a/Extensions/DraggableBehavior/Extension.cpp +++ b/Extensions/DraggableBehavior/Extension.cpp @@ -39,7 +39,7 @@ void DeclareDraggableBehaviorExtension(gd::PlatformExtension& extension) { _("Being dragged"), _("Check if the object is being dragged."), _("_PARAM0_ is being dragged"), - "", + _("Draggable"), "CppPlatform/Extensions/draggableicon24.png", "CppPlatform/Extensions/draggableicon16.png") @@ -51,7 +51,7 @@ void DeclareDraggableBehaviorExtension(gd::PlatformExtension& extension) { _("Was just dropped"), _("Check if the object was just dropped after being dragged."), _("_PARAM0_ was just dropped"), - "", + _("Draggable"), "CppPlatform/Extensions/draggableicon24.png", "CppPlatform/Extensions/draggableicon16.png") diff --git a/Extensions/PathfindingBehavior/Extension.cpp b/Extensions/PathfindingBehavior/Extension.cpp index 6b3a761a313f..d3df985b43a3 100644 --- a/Extensions/PathfindingBehavior/Extension.cpp +++ b/Extensions/PathfindingBehavior/Extension.cpp @@ -637,8 +637,8 @@ void DeclarePathfindingBehaviorExtension(gd::PlatformExtension& extension) { .SetFunctionName("GetCost"); aut.AddAction("SetImpassable", - _("Should object be impassable?"), - _("Decide if the object is an impassable obstacle"), + _("Should object be impassable"), + _("Decide if the object is an impassable obstacle."), _("Set _PARAM0_ as an impassable obstacle: _PARAM2_"), _("Obstacles"), "CppPlatform/Extensions/pathfindingobstacleicon24.png", @@ -646,12 +646,12 @@ void DeclarePathfindingBehaviorExtension(gd::PlatformExtension& extension) { .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PathfindingObstacleBehavior") - .AddParameter("yesorno", _("Impassable?")) + .AddParameter("yesorno", _("Impassable")) .SetFunctionName("SetImpassable"); aut.AddCondition("IsImpassable", - _("Is object impassable?"), - _("Check if the obstacle is impassable"), + _("Impassable obstacle"), + _("Check if the obstacle is impassable."), _("_PARAM0_ is impassable"), _("Obstacles"), "CppPlatform/Extensions/pathfindingobstacleicon24.png", diff --git a/Extensions/PlatformBehavior/Extension.cpp b/Extensions/PlatformBehavior/Extension.cpp index 464347218da8..1c099f9693ea 100644 --- a/Extensions/PlatformBehavior/Extension.cpp +++ b/Extensions/PlatformBehavior/Extension.cpp @@ -50,7 +50,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Check if the object is moving (whether it is on the " "floor or in the air)."), _("_PARAM0_ is moving"), - "", + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -64,7 +64,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Check if the object is moving (whether it is on the " "floor or in the air)."), _("_PARAM0_ is moving"), - "", + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -75,7 +75,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Is on floor"), _("Check if the object is on a platform."), _("_PARAM0_ is on floor"), - "", + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -87,7 +87,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Is on ladder"), _("Check if the object is on a ladder."), _("_PARAM0_ is on ladder"), - "", + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -99,7 +99,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Is jumping"), _("Check if the object is jumping."), _("_PARAM0_ is jumping"), - "", + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -114,7 +114,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "flagged as jumping and falling at the same time: at the end of a " "jump, the fall speed becomes higher than the jump speed."), _("_PARAM0_ is falling"), - "", + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -125,7 +125,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Is grabbing platform ledge"), _("Check if the object is grabbing a platform ledge."), _("_PARAM0_ is grabbing a platform ledge"), - "", + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -136,7 +136,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Gravity"), _("Compare the gravity applied on the object."), _("the gravity"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -153,7 +153,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Gravity"), _("Change the gravity applied on an object."), _("the gravity"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -171,7 +171,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Maximum falling speed"), _("Compare the maximum falling speed of the object."), _("the maximum falling speed"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -187,7 +187,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Maximum falling speed"), _("Change the maximum falling speed of an object."), _("the maximum falling speed"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -208,7 +208,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Compare the ladder climbing speed (in pixels per " "second)."), _("the ladder climbing speed"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -224,7 +224,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Ladder climbing speed"), _("Change the ladder climbing speed."), _("the ladder climbing speed"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -241,7 +241,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Acceleration"), _("Compare the horizontal acceleration of the object."), _("the horizontal acceleration"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -258,7 +258,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Acceleration"), _("Change the horizontal acceleration of an object."), _("the horizontal acceleration"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -276,7 +276,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Deceleration"), _("Compare the horizontal deceleration of the object."), _("the horizontal deceleration"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -293,7 +293,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Deceleration"), _("Change the horizontal deceleration of an object."), _("the horizontal deceleration"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -311,7 +311,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Maximum horizontal speed"), _("Compare the maximum horizontal speed of the object."), _("the maximum horizontal speed"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -326,7 +326,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Maximum horizontal speed"), _("Change the maximum horizontal speed of an object."), _("the maximum horizontal speed"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -344,7 +344,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Compare the jump speed of the object." "Its value is always positive."), _("the jump speed"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -361,7 +361,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Change the jump speed of an object. " "Its value is always positive."), _("the jump speed"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -380,7 +380,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "This is the time during which keeping the jump button held " "allow the initial jump speed to be maintained."), _("the jump sustain time"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -398,7 +398,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "This is the time during which keeping the jump button held " "allow the initial jump speed to be maintained."), _("the jump sustain time"), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -417,7 +417,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "again this action everytime you want to allow the object to jump " "(apart if it's on the floor)."), _("Allow _PARAM0_ to jump again"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -432,7 +432,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "is made unable to jump while in mid air. This has no effect if " "the object is not in the air."), _("Forbid _PARAM0_ to air jump"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -445,7 +445,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "This action doesn't have any effect when the character is not " "jumping."), _("Abort the current jump of _PARAM0_"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -455,7 +455,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Can jump"), _("Check if the object can jump."), _("_PARAM0_ can jump"), - "", + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -467,7 +467,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate left key press"), _("Simulate a press of the left key."), _("Simulate pressing Left for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -479,7 +479,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate right key press"), _("Simulate a press of the right key."), _("Simulate pressing Right for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -491,7 +491,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate up key press"), _("Simulate a press of the up key (used when on a ladder)."), _("Simulate pressing Up for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -504,7 +504,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate down key press"), _("Simulate a press of the down key (used when on a ladder)."), _("Simulate pressing Down for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -517,7 +517,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate ladder key press"), _("Simulate a press of the ladder key (used to grab a ladder)."), _("Simulate pressing Ladder key for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -530,7 +530,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate release ladder key press"), _("Simulate a press of the Release Ladder key (used to get off a ladder)."), _("Simulate pressing Release Ladder key for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -541,7 +541,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate jump key press"), _("Simulate a press of the jump key."), _("Simulate pressing Jump key for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -553,7 +553,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate a press of the release platform key (used when grabbing a " "platform ledge)."), _("Simulate pressing Release Platform key for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -568,7 +568,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate a press of a key.\nValid keys are Left, Right, " "Jump, Ladder, Release Ladder, Up, Down."), _("Simulate pressing _PARAM2_ key for _PARAM0_"), - _("Controls"), + _("Platformer controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -583,7 +583,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Control pressed or simulated"), _("A control was applied from a default control or simulated by an action."), _("_PARAM0_ has the _PARAM2_ key pressed or simulated"), - _(""), + _("Platformer state"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -598,7 +598,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("De/activate the use of default controls.\nIf deactivated, " "use the simulated actions to move the object."), _("Ignore default controls for _PARAM0_: _PARAM2_"), - _("Options"), + _("Platformer configuration"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -612,7 +612,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Enable (or disable) the ability of the object to grab " "platforms when falling near to one."), _("Allow _PARAM0_ to grab platforms: _PARAM2_"), - _("Options"), + _("Platformer configuration"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -624,7 +624,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Can grab platforms"), _("Check if the object can grab the platforms."), _("_PARAM0_ can grab the platforms"), - "Options", + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -637,7 +637,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Compare the current falling speed of the object. Its " "value is always positive."), _("the current falling speed"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -656,7 +656,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "doesn't have any effect when the character " "is not falling or is in the first phase of a jump."), _("the current falling speed"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -672,7 +672,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Compare the current jump speed of the object. Its " "value is always positive."), _("the current jump speed"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -691,7 +691,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "moves to the left with negative values and to the right with " "positive ones"), _("the current horizontal speed"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -709,7 +709,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { "moves to the left " "with negative values and to the right with positive ones"), _("the current horizontal speed"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png", "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) @@ -725,7 +725,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Gravity"), _("Return the gravity applied on the object " "(in pixels per second per second)."), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -735,7 +735,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Maximum falling speed"), _("Return the maximum falling speed of the object " "(in pixels per second)."), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -745,7 +745,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Ladder climbing speed"), _("Return the ladder climbing speed of the object " "(in pixels per second)."), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -755,7 +755,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Acceleration"), _("Return the horizontal acceleration of the object " "(in pixels per second per second)."), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -765,7 +765,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Deceleration"), _("Return the horizontal deceleration of the object " "(in pixels per second per second)."), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -775,7 +775,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Maximum horizontal speed"), _("Return the maximum horizontal speed of the object " "(in pixels per second)."), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -786,7 +786,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Jump speed"), _("Return the jump speed of the object " "(in pixels per second). Its value is always positive."), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -797,7 +797,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Return the jump sustain time of the object (in seconds)." "This is the time during which keeping the jump button held " "allow the initial jump speed to be maintained."), - _("Options"), + _("Platformer configuration"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior"); @@ -806,7 +806,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Current fall speed"), _("Return the current fall speed of the object " "(in pixels per second). Its value is always positive."), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -817,17 +817,17 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Return the current horizontal speed of the object " "(in pixels per second). The object moves to the left " "with negative values and to the right with positive ones"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") .SetFunctionName("GetCurrentSpeed"); aut.AddExpression("CurrentJumpSpeed", + _("Current jump speed"), _("Return the current jump speed of the object " "(in pixels per second). Its value is always positive."), - _("Current jump speed"), - _(""), + _("Platformer state"), "CppPlatform/Extensions/platformerobjecticon.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "PlatformerObjectBehavior") @@ -850,7 +850,7 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { _("Change the platform type of the object: Platform, " "Jump-Through, or Ladder."), _("Set platform type of _PARAM0_ to _PARAM2_"), - "", + _("Platform"), "CppPlatform/Extensions/platformicon.png", "CppPlatform/Extensions/platformicon.png") .AddParameter("object", _("Object")) @@ -863,10 +863,10 @@ void DeclarePlatformBehaviorExtension(gd::PlatformExtension& extension) { } extension.AddCondition("IsObjectOnGivenFloor", - _("Is object on given floor"), - _("Test if an object is on a given floor."), - _("_PARAM0_ is on floor _PARAM2_"), - "", + _("Character is on given platform"), + _("Check if a platformer character is on a given platform."), + _("_PARAM0_ is on platform _PARAM2_"), + _("Collision"), "CppPlatform/Extensions/platformicon.png", "CppPlatform/Extensions/platformicon.png") .AddParameter("objectList", _("Object"), "", false) diff --git a/Extensions/TopDownMovementBehavior/Extension.cpp b/Extensions/TopDownMovementBehavior/Extension.cpp index a7a7b7c75a5d..482c15734cca 100644 --- a/Extensions/TopDownMovementBehavior/Extension.cpp +++ b/Extensions/TopDownMovementBehavior/Extension.cpp @@ -38,12 +38,11 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { std::make_shared(), std::make_shared()); -#if defined(GD_IDE_ONLY) aut.AddAction("SimulateLeftKey", _("Simulate left key press"), _("Simulate a press of left key."), _("Simulate pressing Left for _PARAM0_"), - _("Controls"), + _("Top-down controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -55,7 +54,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate right key press"), _("Simulate a press of right key."), _("Simulate pressing Right for _PARAM0_"), - _("Controls"), + _("Top-down controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -67,7 +66,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate up key press"), _("Simulate a press of up key."), _("Simulate pressing Up for _PARAM0_"), - _("Controls"), + _("Top-down controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -79,7 +78,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate down key press"), _("Simulate a press of down key."), _("Simulate pressing Down for _PARAM0_"), - _("Controls"), + _("Top-down controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -92,7 +91,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate control"), _("Simulate a press of a key.\nValid keys are Left, Right, Up, Down."), _("Simulate pressing _PARAM2_ key for _PARAM0_"), - _("Controls"), + _("Top-down controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -108,7 +107,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("De/activate the use of default controls.\nIf deactivated, " "use the simulated actions to move the object."), _("Ignore default controls for _PARAM0_: _PARAM2_"), - _("Controls"), + _("Top-down controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -121,7 +120,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Simulate stick control"), _("Simulate a stick control."), _("Simulate a stick control for _PARAM0_ with a _PARAM2_ angle and a _PARAM3_ force"), - _("Controls"), + _("Top-down controls"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -135,7 +134,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Control pressed or simulated"), _("A control was applied from a default control or simulated by an action."), _("_PARAM0_ has the _PARAM2_ key pressed or simulated"), - _("Controls"), + _("Top-down state"), "res/conditions/keyboard24.png", "res/conditions/keyboard.png") .AddParameter("object", _("Object")) @@ -148,7 +147,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("StickAngle", _("Stick angle"), _("Return the angle of the simulated stick input (in degrees)"), - _("Controls"), + _("Top-down controls"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior"); @@ -157,7 +156,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Is moving"), _("Check if the object is moving."), _("_PARAM0_ is moving"), - "", + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -168,7 +167,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Acceleration"), _("Change the acceleration of the object"), _("the acceleration"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -185,7 +184,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Acceleration"), _("Compare the acceleration of the object"), _("the acceleration"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -201,7 +200,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Deceleration"), _("Change the deceleration of the object"), _("the deceleration"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -218,7 +217,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Deceleration"), _("Compare the deceleration of the object"), _("the deceleration"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -234,7 +233,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Maximum speed"), _("Change the maximum speed of the object"), _("the max. speed"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -250,7 +249,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Maximum speed"), _("Compare the maximum speed of the object"), _("the max. speed"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -266,7 +265,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Speed"), _("Compare the speed of the object"), _("the speed"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -281,7 +280,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Angular maximum speed"), _("Change the maximum angular speed of the object"), _("the max. angular speed"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -298,7 +297,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Angular maximum speed"), _("Compare the maximum angular speed of the object"), _("the max. angular speed"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -314,7 +313,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Rotation offset"), _("Change the rotation offset applied when moving the object"), _("the rotation offset"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -332,7 +331,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Rotation offset"), _("Compare the rotation offset applied when moving the object"), _("the rotation offset"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -344,12 +343,13 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { .MarkAsAdvanced() .SetFunctionName("GetAngleOffset"); + // Deprecated aut.AddCondition( "Angle", _("Angle of movement"), _("Compare the angle of the top-down movement of the object."), _("the angle of movement"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -367,7 +367,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Angle of movement"), _("Compare the angle of the top-down movement of the object."), _("Angle of movement of _PARAM0_ is _PARAM2_ ± _PARAM3_°"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -380,7 +380,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Compare the velocity of the top-down movement of the " "object on the X axis."), _("the speed of movement on X axis"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -396,7 +396,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Speed on the X axis"), _("Change the speed on the X axis of the movement"), _("the speed on the X axis of the movement"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -412,7 +412,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Compare the velocity of the top-down movement of the " "object on the Y axis."), _("the speed of movement on Y axis"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -428,7 +428,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Speed on the Y axis"), _("Change the speed on the Y axis of the movement"), _("the speed on the Y axis of the movement"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -443,7 +443,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Diagonal movement"), _("Allow or restrict diagonal movement"), _("Allow diagonal moves for _PARAM0_: _PARAM2_"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -455,7 +455,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Diagonal movement"), _("Check if the object is allowed to move diagonally"), _("Allow diagonal moves for _PARAM0_"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -467,7 +467,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Rotate the object"), _("Enable or disable rotation of the object"), _("Enable rotation of _PARAM0_: _PARAM2_"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -481,7 +481,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Object rotated"), _("Check if the object is rotated while traveling on its path."), _("_PARAM0_ is rotated when moving"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png", "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) @@ -492,7 +492,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("Acceleration", _("Acceleration"), _("Acceleration of the object"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -501,7 +501,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("Deceleration", _("Deceleration"), _("Deceleration of the object"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -510,7 +510,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("MaxSpeed", _("Maximum speed"), _("Maximum speed of the object"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -519,7 +519,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("Speed", _("Speed"), _("Speed of the object"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -528,7 +528,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("AngularMaxSpeed", _("Angular maximum speed"), _("Angular maximum speed of the object"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -537,7 +537,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("AngleOffset", _("Rotation offset"), _("Rotation offset applied to the object"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -546,7 +546,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("Angle", _("Angle of the movement"), _("Angle, in degrees, of the movement"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -555,7 +555,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("XVelocity", _("Speed on the X axis"), _("Speed on the X axis of the movement"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -564,7 +564,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { aut.AddExpression("YVelocity", _("Speed on the Y axis"), _("Speed on the Y axis of the movement"), - _("Movement"), + _("Top-down state"), "CppPlatform/Extensions/topdownmovementicon16.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -576,7 +576,7 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { _("Movement angle offset"), _("the movement angle offset"), _("the movement angle offset"), - _("Movement"), + _("Top-down configuration"), "CppPlatform/Extensions/topdownmovementicon24.png") .AddParameter("object", _("Object")) .AddParameter("behavior", _("Behavior"), "TopDownMovementBehavior") @@ -584,5 +584,4 @@ void DeclareTopDownMovementBehaviorExtension(gd::PlatformExtension& extension) { "number", gd::ParameterOptions::MakeNewOptions().SetDescription( _("Angle (in degrees)"))); -#endif }