-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ghost Bar!!!! (From Goobstation) (#1675)
# Description Adds the Ghost Bar from Goob LRP. Upon spawn, the character's loadouts and traits will also be applied as if their job was their Ghost Bar job. Adjusts the weights for kill objectives, re-enabling the kill objective and reducing the weight of Teach a Lesson now that there's more things to do after getting round removed. Goobstation cherry-picked PRs: - Goob-Station/Goob-Station#454 - Goob-Station/Goob-Station#464 - Goob-Station/Goob-Station#689 (partially applied to Ghost bar files only) - Goob-Station/Goob-Station#963 - Goob-Station/Goob-Station#974 - Goob-Station/Goob-Station#982 (partially applied to Ghost bar files only) - Goob-Station/Goob-Station#1288 (partially applied to Ghost bar files only) Wizden cherry-picked PRs: - space-wizards/space-station-14#29103 (for the foam force rifle that spawns in the Ghost bar) ## Media **Ghost Bar UI** ![image](https://github.com/user-attachments/assets/e46603b9-1798-4376-8af5-3df518ede76c) **Ghost Bar In-Game** ![image](https://github.com/user-attachments/assets/14dbdc0a-9d75-487b-994e-1b1eabe7bff3) Notice how the Ghost Bar character has loadout items in the backpack and the Skeleton Accent trait. ## Changelog <!-- You can add an author after the `:cl:` to change the name that appears in the changelog (ex: `:cl: Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> :cl: Skubman - add: Ghost Bar! When you die, you can now go to the Ghost Bar to chill and talk about the round with other ghosts. (by Aidenkrz) - add: Foam Force rifle to cargo lottery! (by IProduceWidgets) - add: Re-enabled the Kill objective for traitors. - tweak: Reduced the chances of traitors getting the "Teach a Lesson" objective. --------- Co-authored-by: Aiden <[email protected]> Co-authored-by: Rank #1 Jonestown partygoer <[email protected]> Co-authored-by: IProduceWidgets <[email protected]> Co-authored-by: Aviu00 <[email protected]>
- Loading branch information
1 parent
2902418
commit 0b4ceb2
Showing
33 changed files
with
15,275 additions
and
14 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
3 changes: 2 additions & 1 deletion
3
Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<widgets:GhostGui xmlns="https://spacestation14.io" | ||
<widgets:GhostGui xmlns="https://spacestation14.io" | ||
xmlns:widgets="clr-namespace:Content.Client.UserInterface.Systems.Ghost.Widgets" | ||
HorizontalAlignment="Center"> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Button Name="ReturnToBodyButton" Text="{Loc ghost-gui-return-to-body-button}" /> | ||
<Button Name="GhostWarpButton" Text="{Loc ghost-gui-ghost-warp-button}" /> | ||
<Button Name="GhostRolesButton" /> | ||
<Button Name="GhostBarButton" Text="{Loc 'ghost-target-window-ghostbar'}" /> <!-- Goobstation - Ghost Bar --> | ||
<Button Name="ReturnToRound" Text="{Loc ghost-gui-return-to-round-button}" /> | ||
</BoxContainer> | ||
</widgets:GhostGui> |
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
15 changes: 15 additions & 0 deletions
15
Content.Client/_Goobstation/UserInterface/Systems/Ghost/Controls/GhostBarRulesWindow.xaml
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,15 @@ | ||
<DefaultWindow xmlns="https://spacestation14.io" | ||
Title="{Loc 'ghost-target-window-ghostbar'}" | ||
MinSize="500 300" | ||
SetSize="500 300"> | ||
<BoxContainer Orientation="Vertical" | ||
HorizontalExpand="True"> | ||
<RichTextLabel Name="TopBanner" VerticalExpand="True"/> | ||
<Button Name="SpawnButton" | ||
Text="{Loc 'ghost-window-spawn-ghostbar-button'}" | ||
Disabled="True" | ||
TextAlign="Center" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" /> | ||
</BoxContainer> | ||
</DefaultWindow> |
52 changes: 52 additions & 0 deletions
52
Content.Client/_Goobstation/UserInterface/Systems/Ghost/Controls/GhostBarRulesWindow.xaml.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,52 @@ | ||
using Content.Shared.CCVar; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface.CustomControls; | ||
using Robust.Client.UserInterface.XAML; | ||
using Robust.Shared.Configuration; | ||
using Robust.Shared.Timing; | ||
using Robust.Shared.Utility; | ||
|
||
namespace Content.Client._Goobstation.UserInterface.Systems.Ghost.Controls | ||
{ | ||
[GenerateTypedNameReferences] | ||
public sealed partial class GhostBarRulesWindow : DefaultWindow | ||
{ | ||
[Dependency] private readonly IConfigurationManager _cfg = IoCManager.Resolve<IConfigurationManager>(); | ||
private float _timer; | ||
|
||
public event Action? SpawnButtonPressed; | ||
public GhostBarRulesWindow() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
var ghostBarTime = _cfg.GetCVar(CCVars.GhostRoleTime); | ||
_timer = ghostBarTime; | ||
|
||
if (ghostBarTime > 0f) | ||
{ | ||
SpawnButton.Text = Loc.GetString("ghost-window-spawn-ghostbar-button-timer", ("time", $"{_timer:0.0}")); | ||
TopBanner.SetMessage(FormattedMessage.FromMarkupPermissive(Loc.GetString("ghost-bar-rules") + "\n" + Loc.GetString("ghost-roles-window-rules-footer", ("time", ghostBarTime)))); | ||
SpawnButton.Disabled = true; | ||
} | ||
|
||
SpawnButton.OnPressed += _ => SpawnButtonPressed?.Invoke(); | ||
} | ||
|
||
|
||
protected override void FrameUpdate(FrameEventArgs args) | ||
{ | ||
base.FrameUpdate(args); | ||
if (!SpawnButton.Disabled) return; | ||
if (_timer > 0.0) | ||
{ | ||
_timer -= args.DeltaSeconds; | ||
SpawnButton.Text = Loc.GetString("ghost-window-spawn-ghostbar-button-timer", ("time", $"{_timer:0.0}")); | ||
} | ||
else | ||
{ | ||
SpawnButton.Disabled = false; | ||
SpawnButton.Text = Loc.GetString("ghost-window-spawn-ghostbar-button"); | ||
} | ||
} | ||
} | ||
|
||
} |
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
10 changes: 10 additions & 0 deletions
10
Content.Server/_Goobstation/Ghostbar/Components/GhostBarPlayerComponent.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,10 @@ | ||
namespace Content.Server._Goobstation.Ghostbar.Components; | ||
|
||
/// <summary> | ||
/// Tracker for ghostbar players | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class GhostBarPlayerComponent : Component | ||
{ | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
Content.Server/_Goobstation/Ghostbar/Components/GhostBarSpawnComponent.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,10 @@ | ||
namespace Content.Server._Goobstation.Ghostbar.Components; | ||
|
||
/// <summary> | ||
/// Target for ghosts to spawn at | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class GhostBarSpawnComponent : Component | ||
{ | ||
|
||
} |
Oops, something went wrong.