Skip to content

Commit dcf6474

Browse files
Change reflect in spawn points (o3de#602)
Signed-off-by: Artur Kamieniecki <[email protected] >
1 parent 07221cb commit dcf6474

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

Gems/ROS2/Code/Source/Spawner/ROS2SpawnPointComponentController.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ namespace ROS2
2828
editContext
2929
->Class<ROS2SpawnPointComponentConfig>("ROS2SpawnPointComponentConfig", "Config for the ROS2 Spawn Point Component")
3030
->ClassElement(AZ::Edit::ClassElements::EditorData, "Stores information about available spawn point")
31-
->DataElement(AZ::Edit::UIHandlers::EntityId, &ROS2SpawnPointComponentConfig::m_name, "Name", "Name")
31+
->DataElement(AZ::Edit::UIHandlers::Default, &ROS2SpawnPointComponentConfig::m_name, "Name", "Name")
3232
->DataElement(
33-
AZ::Edit::UIHandlers::EntityId, &ROS2SpawnPointComponentConfig::m_info, "Info", "Spawn point detailed description");
33+
AZ::Edit::UIHandlers::Default, &ROS2SpawnPointComponentConfig::m_info, "Info", "Spawn point detailed description");
3434
}
3535
}
3636
}
@@ -50,8 +50,8 @@ namespace ROS2
5050
editContext
5151
->Class<ROS2SpawnPointComponentController>("ROS2SpawnPointController", "Controller for the ROS2 Spawn Point Component")
5252
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
53-
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly)
54-
->DataElement(AZ::Edit::UIHandlers::Default, &ROS2SpawnPointComponentController::m_config);
53+
->DataElement(AZ::Edit::UIHandlers::Default, &ROS2SpawnPointComponentController::m_config)
54+
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly);
5555
}
5656
}
5757
}

Gems/ROS2/Code/Source/Spawner/ROS2SpawnPointEditorComponent.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ namespace ROS2
3535
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("Game"))
3636
->Attribute(AZ::Edit::Attributes::Icon, "Editor/Icons/Components/ROS2SpawnPoint.svg")
3737
->Attribute(AZ::Edit::Attributes::ViewportIcon, "Editor/Icons/Components/Viewport/ROS2SpawnPoint.svg")
38-
->Attribute(AZ::Edit::Attributes::Category, "ROS2")
39-
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly);
38+
->Attribute(AZ::Edit::Attributes::Category, "ROS2");
4039
}
4140
}
4241
}

Gems/ROS2/Code/Source/Spawner/ROS2SpawnerComponentController.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ namespace ROS2
7777
{
7878
editContext->Class<ROS2SpawnerComponentController>("ROS2SpawnerComponentController", "Controller for ROS2SpawnerComponent")
7979
->ClassElement(AZ::Edit::ClassElements::EditorData, "Manages spawning of robots in configurable locations")
80-
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly)
81-
->DataElement(AZ::Edit::UIHandlers::Default, &ROS2SpawnerComponentController::m_config);
80+
->DataElement(AZ::Edit::UIHandlers::Default, &ROS2SpawnerComponentController::m_config)
81+
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly);
8282
}
8383
}
8484
}

Gems/ROS2/Code/Source/Spawner/ROS2SpawnerEditorComponent.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ namespace ROS2
3939
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("Game"))
4040
->Attribute(AZ::Edit::Attributes::Category, "ROS2")
4141
->Attribute(AZ::Edit::Attributes::Icon, "Editor/Icons/Components/ROS2Spawner.svg")
42-
->Attribute(AZ::Edit::Attributes::ViewportIcon, "Editor/Icons/Components/Viewport/ROS2Spawner.svg")
43-
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly);
42+
->Attribute(AZ::Edit::Attributes::ViewportIcon, "Editor/Icons/Components/Viewport/ROS2Spawner.svg");
4443
}
4544
}
4645
}

0 commit comments

Comments
 (0)