Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Апстрим. #24

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b5fb5e9
Modsuits (#1242)
BombasterDS2 Jan 5, 2025
bc3b3d7
Automated changelog update (#1242)
GoobBot Jan 5, 2025
651c9f4
Heretic blade path fixes (#1250)
yglop Jan 5, 2025
45fd06b
Night vision and thermal vision (#1251)
Aviu00 Jan 5, 2025
136d1d1
Automated changelog update (#1250)
GoobBot Jan 5, 2025
903606b
Blueshield Lever Action Rifle - Chester (#1258)
BombasterDS2 Jan 5, 2025
96b8641
Buff humans (#1260)
Aviu00 Jan 5, 2025
840340c
Species and blob fixes (#1262)
Aviu00 Jan 5, 2025
13f6d86
Automated changelog update (#1258)
GoobBot Jan 5, 2025
22bbddb
Add pluoxium and integrate tg gases with supermatter (#1282)
marc-pelletier Jan 5, 2025
f0a9451
Adds Banana people (#1274)
BeeRobynn Jan 5, 2025
949f61e
Make nuke and nuke disk SM immune (#1287)
Blobadoodle Jan 5, 2025
3822183
Automated changelog update (#1262)
GoobBot Jan 5, 2025
87e45d1
Frezon canister sprite (#1293)
marc-pelletier Jan 5, 2025
2540bf0
Changes description of dualetta (#1305)
ScyronX Jan 5, 2025
fe2725a
Add Onis to guidebook (#1307)
SX-7 Jan 5, 2025
da4aab9
headslugs survive in space (#1310)
Ilya246 Jan 5, 2025
1c2387f
Playing Cards: 2 New Variants, Security Seal on Examine, Bug Fix (#1311)
RadsammyT Jan 5, 2025
951e1d5
Bow is now ClumsyProof (#1312)
Tyzemol Jan 5, 2025
26712da
NanoChat Notification Fix (#1313)
angelofallars Jan 5, 2025
7eb6893
Chem guidebook accumulation display fix (#1314)
SX-7 Jan 5, 2025
7b6ac14
Automated changelog update (#1287)
GoobBot Jan 5, 2025
59874b7
Assign lootbugs to the mouse faction, to be treated as pests (#1321)
AstroDogeDX Jan 5, 2025
9674411
[Bounty] Added Surgical Supplies to Cargo Catalog. (#1323)
CerberusWolfie Jan 5, 2025
06dce96
[Bounty] Added Digital Audio Workstation to the Cargo Catalog (#1324)
CerberusWolfie Jan 5, 2025
6957e1c
Fixing FartComponent references to appease the YAML linter. (#1327)
jellygato Jan 5, 2025
6e77e13
Re-worded the previous description for the blueshield mantle. (#1329)
SolsticeOfTheWinter Jan 5, 2025
259542f
fix most test fails (#1330)
deltanedas Jan 5, 2025
a0f1766
make limb sever damage types use protoid (#1331)
deltanedas Jan 5, 2025
c7f72b6
Make Bluespace Crystals Ore Baggable Again (#1332)
AstroDogeDX Jan 5, 2025
4fb66ce
Update BSO to use BSO Icon (#1335)
CerberusWolfie Jan 5, 2025
4364e8d
Fix Typos and Reformat SOP (#1336)
CerberusWolfie Jan 5, 2025
a65860d
Unique Blueshield Officer PDA (#1337)
SolsticeOfTheWinter Jan 5, 2025
7f2a306
Warden hardsuit buff (#1338)
SolsticeOfTheWinter Jan 5, 2025
a6094de
Fix ghost roles not working. (#1339)
Aviu00 Jan 5, 2025
952ab10
Misc bugs fixes (#1340)
BombasterDS2 Jan 5, 2025
9860082
ERT Loadout Fixes (#1342)
SolsticeOfTheWinter Jan 5, 2025
2e117ea
Update Credits (#1345)
github-actions[bot] Jan 5, 2025
6ca8c05
Automated changelog update (#1314)
GoobBot Jan 5, 2025
a0c6827
Update GoobChangelog.yml (This probably has repeats idgaf
Aidenkrz Jan 5, 2025
36f8fb5
Revert "Update GoobChangelog.yml (This probably has repeats idgaf" (#…
deltanedas Jan 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions Content.Client/Chat/UI/EmotesMenu.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<ui:RadialMenuTextureButton StyleClasses="RadialMenuButton" SetSize="64 64" ToolTip="{Loc 'emote-menu-category-hands'}" TargetLayer="Hands" Visible="False">
<TextureRect VerticalAlignment="Center" HorizontalAlignment="Center" TextureScale="2 2" TexturePath="/Textures/Clothing/Hands/Gloves/latex.rsi/icon.png"/>
</ui:RadialMenuTextureButton>
<!-- Goobstation - Fart Category -->
<ui:RadialMenuTextureButton StyleClasses="RadialMenuButton" SetSize="64 64" ToolTip="{Loc 'emote-menu-category-farts'}" TargetLayer="Farts" Visible="False">
<TextureRect VerticalAlignment="Center" HorizontalAlignment="Center" TextureScale="2 2" TexturePath="/Textures/_Goobstation/Interface/Emotes/fart.png"/>
</ui:RadialMenuTextureButton>
</ui:RadialContainer>

<!-- General -->
Expand All @@ -28,4 +32,7 @@
<!-- Hands -->
<ui:RadialContainer Name="Hands" VerticalExpand="True" HorizontalExpand="True" Radius="64"/>

<!-- Goobstation - Farts -->
<ui:RadialContainer Name="Farts" VerticalExpand="True" HorizontalExpand="True" Radius="64"/>

</ui:RadialMenu>
3 changes: 2 additions & 1 deletion Content.Client/DoAfter/DoAfterOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ protected override void Draw(in OverlayDrawArgs args)
var alpha = 1f;
if (doAfter.Args.Hidden || isInContainer)
{
if (uid != localEnt)
// Goobstation - Show doAfter progress bar to another entity
if (uid != localEnt && localEnt != doAfter.Args.ShowTo)
continue;

// Hints to the local player that this do-after is not visible to other players.
Expand Down
8 changes: 8 additions & 0 deletions Content.Client/Gameplay/GameplayStateBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Content.Client.Clickable;
using Content.Client.UserInterface;
using Content.Client.Viewport;
using Content.Shared.Damage;
using Content.Shared.Input;
using Robust.Client.ComponentTrees;
using Robust.Client.GameObjects;
Expand Down Expand Up @@ -103,6 +104,13 @@ private bool HandleInspect(ICommonSession? session, EntityCoordinates coords, En
return GetClickedEntity(coordinates, _eyeManager.CurrentEye);
}

public EntityUid? GetDamageableClickedEntity(MapCoordinates coordinates) // Goobstation
{
var first = GetClickableEntities(coordinates, _eyeManager.CurrentEye)
.FirstOrDefault(e => _entityManager.HasComponent<DamageableComponent>(e));
return first.IsValid() ? first : null;
}

public EntityUid? GetClickedEntity(MapCoordinates coordinates, IEye? eye)
{
if (eye == null)
Expand Down
4 changes: 2 additions & 2 deletions Content.Client/Weapons/Melee/MeleeWeaponSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public override void Update(float frameTime)

if (_stateManager.CurrentState is GameplayStateBase screen)
{
target = screen.GetClickedEntity(mousePos);
target = screen.GetDamageableClickedEntity(mousePos); // Goob edit
}

EntityManager.RaisePredictiveEvent(new DisarmAttackEvent(GetNetEntity(target), GetNetCoordinates(coordinates)));
Expand All @@ -153,7 +153,7 @@ public override void Update(float frameTime)

if (_stateManager.CurrentState is GameplayStateBase screen)
{
target = screen.GetClickedEntity(mousePos);
target = screen.GetDamageableClickedEntity(mousePos); // Goob edit
}

// Don't light-attack if interaction will be handling this instead
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Weapons/Ranged/Systems/GunSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public override void Update(float frameTime)

NetEntity? target = null;
if (_state.CurrentState is GameplayStateBase screen)
target = GetNetEntity(screen.GetClickedEntity(mousePos));
target = GetNetEntity(screen.GetDamageableClickedEntity(mousePos)); // Goob edit

Log.Debug($"Sending shoot request tick {Timing.CurTick} / {Timing.CurTime}");

Expand Down
2 changes: 1 addition & 1 deletion Content.Client/_EstacaoPirata/Cards/Card/CardSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private void OnComponentStartupEvent(EntityUid uid, CardComponent comp, Componen
}

comp.BackSprite ??= comp.FrontSprite;
Dirty(uid, comp);
DirtyEntity(uid);
UpdateSprite(uid, comp);
}

Expand Down
7 changes: 7 additions & 0 deletions Content.Client/_EstacaoPirata/Cards/Deck/CardDeckSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,14 @@ private void OnAppearanceChanged(EntityUid uid, CardDeckComponent comp, Appearan
}
private void OnComponentStartupEvent(EntityUid uid, CardDeckComponent comp, ComponentStartup args)
{
if (!TryComp(uid, out CardStackComponent? stack))
{
_notInitialized[(uid, comp)] = 0;
return;
}

if(stack.Cards.Count <= 0)
_notInitialized[(uid, comp)] = 0;
UpdateSprite(uid, comp);
}

Expand Down
8 changes: 7 additions & 1 deletion Content.Client/_EstacaoPirata/Cards/Hand/CardHandSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,13 @@ private void OnStackStart(CardStackInitiatedEvent args)
}
private void OnComponentStartupEvent(EntityUid uid, CardHandComponent comp, ComponentStartup args)
{

if (!TryComp(uid, out CardStackComponent? stack))
{
_notInit[(uid, comp)] = 0;
return;
}
if(stack.Cards.Count <= 0)
_notInit[(uid, comp)] = 0;
UpdateSprite(uid, comp);
}

Expand Down
2 changes: 1 addition & 1 deletion Content.Client/_Goobstation/Changeling/ChangelingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Content.Client.Changeling;

public sealed partial class ChangelingSystem : EntitySystem
public sealed class ChangelingSystem : SharedChangelingSystem
{

[Dependency] private readonly IPrototypeManager _prototype = default!;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Content.Client._Goobstation.Clothing.Components;

[RegisterComponent]
public sealed partial class SealableClothingVisualsComponent : Component
{
[DataField]
public string SpriteLayer = "sealed";

[DataField]
public Dictionary<string, List<PrototypeLayerData>> VisualLayers = new();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Content.Shared._Goobstation.Clothing.Systems;

namespace Content.Client._Goobstation.Clothing.EntitySystems;

public sealed class PoweredSealableClothingSystem : SharedPoweredSealableClothingSystem
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Content.Shared._Goobstation.Clothing.Systems;

namespace Content.Client._Goobstation.Clothing.EntitySystems;

public sealed partial class SealableClothingSystem : SharedSealableClothingSystem
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
using Content.Client._Goobstation.Clothing.Components;
using Content.Client.Clothing;
using Content.Shared._Goobstation.Clothing;
using Content.Shared.Clothing;
using Content.Shared.Item;
using Robust.Client.GameObjects;
using System.Linq;

namespace Content.Client._Goobstation.Clothing.EntitySystems;

public sealed class SealableClothingVisualizerSystem : VisualizerSystem<SealableClothingVisualsComponent>
{
[Dependency] private readonly SharedItemSystem _itemSystem = default!;

public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<SealableClothingVisualsComponent, GetEquipmentVisualsEvent>(OnGetEquipmentVisuals, after: new[] { typeof(ClientClothingSystem) });
}

protected override void OnAppearanceChange(EntityUid uid, SealableClothingVisualsComponent component, ref AppearanceChangeEvent args)
{
if (!AppearanceSystem.TryGetData<bool>(uid, SealableClothingVisuals.Sealed, out var isSealed, args.Component))
return;

if (args.Sprite != null && component.SpriteLayer != null && args.Sprite.LayerMapTryGet(component.SpriteLayer, out var layer))
{
args.Sprite.LayerSetVisible(layer, isSealed);
}

_itemSystem.VisualsChanged(uid);
}

private void OnGetEquipmentVisuals(Entity<SealableClothingVisualsComponent> sealable, ref GetEquipmentVisualsEvent args)
{
var (uid, comp) = sealable;

if (!TryComp(uid, out AppearanceComponent? appearance)
|| !AppearanceSystem.TryGetData<bool>(uid, SealableClothingVisuals.Sealed, out var isSealed, appearance)
|| !isSealed)
return;

if (!comp.VisualLayers.TryGetValue(args.Slot, out var layers))
return;

var i = 0;
foreach (var layer in layers)
{
var key = layer.MapKeys?.FirstOrDefault();
if (key == null)
{
key = i == 0 ? $"{args.Slot}-sealed" : $"{args.Slot}-sealed-{i}";
i++;
}

args.Layers.Add((key, layer));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using Content.Shared.Clothing.Components;
using Robust.Client.Graphics;
using Robust.Client.Input;
using Robust.Client.UserInterface;

namespace Content.Client._Goobstation.Clothing;

public sealed class ToggleableClothingBoundUserInterface : BoundUserInterface
{
[Dependency] private readonly IClyde _displayManager = default!;
[Dependency] private readonly IInputManager _inputManager = default!;

private IEntityManager _entityManager;
private ToggleableClothingRadialMenu? _menu;

public ToggleableClothingBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
{
IoCManager.InjectDependencies(this);
_entityManager = IoCManager.Resolve<IEntityManager>();
}

protected override void Open()
{
base.Open();

_menu = this.CreateWindow<ToggleableClothingRadialMenu>();
_menu.SetEntity(Owner);
_menu.SendToggleClothingMessageAction += SendToggleableClothingMessage;

var vpSize = _displayManager.ScreenSize;
_menu.OpenCenteredAt(_inputManager.MouseScreenPosition.Position / vpSize);
}

private void SendToggleableClothingMessage(EntityUid uid)
{
var message = new ToggleableClothingUiMessage(_entityManager.GetNetEntity(uid));
SendPredictedMessage(message);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<ui:RadialMenu xmlns="https://spacestation14.io"
xmlns:ui="clr-namespace:Content.Client.UserInterface.Controls"
BackButtonStyleClass="RadialMenuBackButton"
CloseButtonStyleClass="RadialMenuCloseButton"
VerticalExpand="True"
HorizontalExpand="True"
MinSize="450 450">

<!-- Main -->
<ui:RadialContainer Name="Main" VerticalExpand="True" HorizontalExpand="True" Radius="64" ReserveSpaceForHiddenChildren="False">
</ui:RadialContainer>

</ui:RadialMenu>
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
using Content.Client.UserInterface.Controls;
using Content.Shared.Clothing.Components;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Prototypes;
using System.Numerics;

namespace Content.Client._Goobstation.Clothing;

public sealed partial class ToggleableClothingRadialMenu : RadialMenu
{
[Dependency] private readonly EntityManager _entityManager = default!;

public event Action<EntityUid>? SendToggleClothingMessageAction;

public EntityUid Entity { get; set; }

public ToggleableClothingRadialMenu()
{
IoCManager.InjectDependencies(this);
RobustXamlLoader.Load(this);
}

public void SetEntity(EntityUid uid)
{
Entity = uid;
RefreshUI();
}

public void RefreshUI()
{
var main = FindControl<RadialContainer>("Main");

if (!_entityManager.TryGetComponent<ToggleableClothingComponent>(Entity, out var clothing))
return;

var clothingContainer = clothing.Container;

if (clothingContainer == null)
return;

foreach (var attached in clothing.ClothingUids)
{
// Change tooltip text if attached clothing is toggle/untoggled
var tooltipText = Loc.GetString("toggleable-clothing-unattach-tooltip");

if (clothingContainer.Contains(attached.Key))
tooltipText = Loc.GetString("toggleable-clothing-attach-tooltip");

var button = new ToggleableClothingRadialMenuButton()
{
StyleClasses = { "RadialMenuButton" },
SetSize = new Vector2(64, 64),
ToolTip = tooltipText,
AttachedClothingId = attached.Key
};

var spriteView = new SpriteView()
{
SetSize = new Vector2(48, 48),
VerticalAlignment = VAlignment.Center,
HorizontalAlignment = HAlignment.Center,
Stretch = SpriteView.StretchMode.Fill
};

spriteView.SetEntity(attached.Key);

button.AddChild(spriteView);
main.AddChild(button);
}

AddToggleableClothingMenuButtonOnClickAction(main);
}

private void AddToggleableClothingMenuButtonOnClickAction(Control control)
{
var mainControl = control as RadialContainer;

if (mainControl == null)
return;

foreach (var child in mainControl.Children)
{
var castChild = child as ToggleableClothingRadialMenuButton;

if (castChild == null)
return;

castChild.OnButtonDown += _ =>
{
SendToggleClothingMessageAction?.Invoke(castChild.AttachedClothingId);
mainControl.DisposeAllChildren();
RefreshUI();
};
}
}
}

public sealed class ToggleableClothingRadialMenuButton : RadialMenuTextureButton
{
public EntityUid AttachedClothingId { get; set; }
}
Loading