forked from Fansana/floofstation1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Fansana#505 from Mnemotechnician/floof/cherrypick/…
…ee-2024-01-21 Merges & Cherry-Picks From EE up to 2025-01-24
- Loading branch information
Showing
237 changed files
with
14,322 additions
and
6,961 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
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
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
11 changes: 0 additions & 11 deletions
11
Content.Shared/Traits/Assorted/Components/CyberEyesComponent.cs
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
Content.Shared/Traits/Assorted/Components/ExtendDescriptionComponent.cs
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,29 @@ | ||
using Robust.Shared.Serialization; | ||
|
||
namespace Content.Shared.Traits.Assorted.Components; | ||
|
||
[Serializable, NetSerializable, DataDefinition] | ||
public sealed partial class DescriptionExtension | ||
{ | ||
[DataField] | ||
public string Description = ""; | ||
|
||
[DataField] | ||
public int FontSize = 12; | ||
|
||
[DataField] | ||
public string Color = "#ffffff"; | ||
|
||
[DataField] | ||
public bool RequireDetailRange = true; | ||
} | ||
|
||
[RegisterComponent] | ||
public sealed partial class ExtendDescriptionComponent : Component | ||
{ | ||
/// <summary> | ||
/// The list of all descriptions to add to an entity when examined at close range. | ||
/// </summary> | ||
[DataField] | ||
public List<DescriptionExtension> DescriptionList = new(); | ||
} |
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
Content.Shared/Traits/Assorted/Systems/ExtendDescriptionSystem.cs
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,27 @@ | ||
using Content.Shared.Examine; | ||
using Content.Shared.Traits.Assorted.Components; | ||
|
||
namespace Content.Shared.Traits.Assorted.Systems; | ||
|
||
public sealed class ExtendDescriptionSystem : EntitySystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
SubscribeLocalEvent<ExtendDescriptionComponent, ExaminedEvent>(OnExamined); | ||
} | ||
|
||
private void OnExamined(EntityUid uid, ExtendDescriptionComponent component, ExaminedEvent args) | ||
{ | ||
if (component.DescriptionList.Count <= 0) | ||
return; | ||
|
||
foreach (var desc in component.DescriptionList) | ||
{ | ||
if (!args.IsInDetailsRange && desc.RequireDetailRange) | ||
continue; | ||
|
||
args.PushMarkup($"[font size ={desc.FontSize}][color={desc.Color}]{Loc.GetString(desc.Description, ("entity", uid))}[/color][/font]"); | ||
} | ||
} | ||
} |
Oops, something went wrong.