Skip to content

Commit

Permalink
Improving the grouping of some behaviors actions and conditions (#5923)
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H authored Nov 19, 2023
1 parent 3584ee2 commit 27efe8e
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 114 deletions.
4 changes: 2 additions & 2 deletions Extensions/DestroyOutsideBehavior/Extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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"))
Expand Down
4 changes: 2 additions & 2 deletions Extensions/DraggableBehavior/Extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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")

Expand Down
10 changes: 5 additions & 5 deletions Extensions/PathfindingBehavior/Extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,21 +637,21 @@ 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",
"CppPlatform/Extensions/pathfindingobstacleicon16.png")

.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",
Expand Down
Loading

0 comments on commit 27efe8e

Please sign in to comment.