-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tweak] Holoprojector / Голопроектрор (#112)
* tweak * local * tweak * tweak
- Loading branch information
Showing
14 changed files
with
117 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Content.Server._White.Holosign; | ||
|
||
[RegisterComponent] | ||
public sealed partial class HolosignComponent : Component | ||
{ | ||
[ViewVariables(VVAccess.ReadOnly)] | ||
public EntityUid? Projector; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Content.Server.Holosign; | ||
using Content.Shared.Destructible; | ||
|
||
namespace Content.Server._White.Holosign; | ||
|
||
public sealed class HolosignSystem : EntitySystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
SubscribeLocalEvent<HolosignComponent, DestructionEventArgs>(OnDestruction); | ||
} | ||
|
||
private void OnDestruction(EntityUid uid, HolosignComponent component, DestructionEventArgs args) | ||
{ | ||
if (!TryComp<HolosignProjectorComponent>(component.Projector, out var holosignProjector)) | ||
return; | ||
|
||
holosignProjector.Signs.Remove(uid); | ||
++holosignProjector.Uses; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Resources/Locale/en-US/_white/holoprojector/holoprojector.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
holoprojector-active-holo = Active projections: [color=fuchsia]{ $activeholo }[/color] | ||
holoprojector-uses-limit = The maximum number of projections was used! | ||
holoprojector-delete-signs = All projections have been deleted! |
3 changes: 3 additions & 0 deletions
3
Resources/Locale/ru-RU/_white/holoprojector/holoprojector.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
holoprojector-active-holo = Активные проекции: [color=fuchsia]{ $activeholo }[/color] | ||
holoprojector-uses-limit = Было использовано максимальное количество проекций! | ||
holoprojector-delete-signs = Все проекции были удалены! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.