]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Hide role entities in the spawn menu (#32798)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Mon, 14 Oct 2024 03:05:49 +0000 (16:05 +1300)
committerGitHub <noreply@github.com>
Mon, 14 Oct 2024 03:05:49 +0000 (14:05 +1100)
Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs
Content.Shared/Roles/MindRoleComponent.cs
Resources/Locale/en-US/entity-categories.ftl
Resources/Prototypes/Entities/categories.yml

index 5123500239e59c0484558af606a0f4e9d4f89495..a60d042fb5799a9c9996b8dcb48f7a1471c20829 100644 (file)
@@ -1,9 +1,11 @@
+using Robust.Shared.Prototypes;
+
 namespace Content.Server.Atmos.Components
 {
     /// <summary>
     /// Used by FixGridAtmos. Entities with this may get magically auto-deleted on map initialization in future.
     /// </summary>
-    [RegisterComponent]
+    [RegisterComponent, EntityCategory("Mapping")]
     public sealed partial class AtmosFixMarkerComponent : Component
     {
         // See FixGridAtmos for more details
index 38b83a8b3f8dc09ad21e1329adf045102f585fd1..a3dd0b3bc6da890bc26b03401ef8d01d27f64974 100644 (file)
@@ -42,6 +42,8 @@ public sealed partial class MindRoleComponent : BaseMindRoleComponent
     public ProtoId<JobPrototype>? JobPrototype { get; set; }
 }
 
+// Why does this base component actually exist? It does make auto-categorization easy, but before that it was useless?
+[EntityCategory("Roles")]
 public abstract partial class BaseMindRoleComponent : Component
 {
 
index 6067830b7aaada729d66954169dcead4310f895c..4b6cf87942f930f1089457d1d3ce2e4dad262b15 100644 (file)
@@ -1,3 +1,5 @@
 entity-category-name-actions = Actions
 entity-category-name-game-rules = Game Rules
-entity-category-name-objectives = Objectives
\ No newline at end of file
+entity-category-name-objectives = Objectives
+entity-category-name-roles = Mind Roles
+entity-category-name-mapping = Mapping
index bc4dd104def761b287346802f549b9074ae38908..dffc6b6aaf98b4a70135b813073a52225e055181 100644 (file)
 - type: entityCategory
   id: Objectives
   name: entity-category-name-objectives
-  hideSpawnMenu: true
\ No newline at end of file
+  hideSpawnMenu: true
+
+- type: entityCategory
+  id: Roles
+  name: entity-category-name-roles
+  hideSpawnMenu: true
+
+# markers, atmos fixing, etc
+- type: entityCategory
+  id: Mapping
+  name: entity-category-name-mapping