_actions.SetEntityIcon(actEnt, uid);
if (TryComp<BorgModuleIconComponent>(uid, out var moduleIconComp))
_actions.SetIcon(actEnt, moduleIconComp.Icon);
+
+ /// Set a custom name and description on the action. The borg module action prototypes are shared across
+ /// all modules. Extract localized names, then populate variables with the info from the module itself.
+ var moduleName = Name(uid);
+ var actionMetaData = MetaData(component.ModuleSwapActionEntity.Value);
+
+ var instanceName = Loc.GetString("borg-module-action-name", ("moduleName", moduleName));
+ _metaData.SetEntityName(component.ModuleSwapActionEntity.Value, instanceName, actionMetaData);
+ var instanceDesc = Loc.GetString("borg-module-action-description", ("moduleName", moduleName));
+ _metaData.SetEntityDescription(component.ModuleSwapActionEntity.Value, instanceDesc, actionMetaData);
}
if (!TryComp(chassis, out BorgChassisComponent? chassisComp))
borg-module-duplicate = This module is already installed in this cyborg.
borg-module-whitelist-deny = This module doesn't fit in this type of cyborg...
+borg-module-action-name = Activate {$moduleName}
+borg-module-action-description = Select the {$moduleName}, enabling you to use the tools it provides.
+
borg-construction-guide-string = The cyborg limbs and torso must be attached to the endoskeleton.
borg-ui-menu-title = Cyborg Interface
borg-type-service-name = Service
borg-type-service-desc = Help out with a wide range of crew services, ranging from serving snacks and drinks to botany to entertainment.
borg-type-service-transponder = service cyborg
-
-