-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Suacy_Sauces
- Loading branch information
Showing
1,250 changed files
with
14,868 additions
and
5,784 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Publish Changelog | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 10 * * *' | ||
|
||
jobs: | ||
publish_changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
ref: master | ||
|
||
- name: Publish changelog | ||
run: Tools/actions_changelogs_since_last_run.py | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CHANGELOG_DIR: ${{ vars.CHANGELOG_DIR }} | ||
DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }} | ||
continue-on-error: true |
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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
{ | ||
"omnisharp.analyzeOpenDocumentsOnly": true, | ||
"dotnet.defaultSolution": "SpaceStation14.sln" | ||
"dotnet.defaultSolution": "SpaceStation14.sln", | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": [ "**/meta.json" ], | ||
"url": "https://raw.githubusercontent.com/Simple-Station/Einstein-Engines/master/.github/rsi-schema.json" | ||
} | ||
] | ||
} |
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,69 @@ | ||
using Content.Client.Audio; | ||
using Content.Shared.Announcements.Events; | ||
using Content.Shared.Announcements.Systems; | ||
using Content.Shared.CCVar; | ||
using Robust.Client.Audio; | ||
using Robust.Client.Player; | ||
using Robust.Client.ResourceManagement; | ||
using Robust.Shared.Audio.Sources; | ||
using Robust.Shared.Audio.Systems; | ||
using Robust.Shared.Configuration; | ||
|
||
namespace Content.Client.Announcements.Systems; | ||
|
||
public sealed class AnnouncerSystem : SharedAnnouncerSystem | ||
{ | ||
[Dependency] private readonly IPlayerManager _player = default!; | ||
[Dependency] private readonly IConfigurationManager _config = default!; | ||
[Dependency] private readonly IResourceCache _cache = default!; | ||
[Dependency] private readonly IAudioManager _audioManager = default!; | ||
|
||
private IAudioSource? AnnouncerSource { get; set; } | ||
private float AnnouncerVolume { get; set; } | ||
|
||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
AnnouncerVolume = _config.GetCVar(CCVars.AnnouncerVolume) * 100f / ContentAudioSystem.AnnouncerMultiplier; | ||
|
||
SubscribeNetworkEvent<AnnouncementSendEvent>(OnAnnouncementReceived); | ||
_config.OnValueChanged(CCVars.AnnouncerVolume, OnAnnouncerVolumeChanged); | ||
} | ||
|
||
public override void Shutdown() | ||
{ | ||
base.Shutdown(); | ||
|
||
_config.UnsubValueChanged(CCVars.AnnouncerVolume, OnAnnouncerVolumeChanged); | ||
} | ||
|
||
|
||
private void OnAnnouncerVolumeChanged(float value) | ||
{ | ||
AnnouncerVolume = value; | ||
|
||
if (AnnouncerSource != null) | ||
AnnouncerSource.Gain = AnnouncerVolume; | ||
} | ||
|
||
private void OnAnnouncementReceived(AnnouncementSendEvent ev) | ||
{ | ||
if (!ev.Recipients.Contains(_player.LocalSession!.UserId) | ||
|| !_cache.TryGetResource<AudioResource>(GetAnnouncementPath(ev.AnnouncementId, ev.AnnouncerId), | ||
out var resource)) | ||
return; | ||
|
||
var source = _audioManager.CreateAudioSource(resource); | ||
if (source != null) | ||
{ | ||
source.Gain = AnnouncerVolume * SharedAudioSystem.VolumeToGain(ev.AudioParams.Volume); | ||
source.Global = true; | ||
} | ||
|
||
AnnouncerSource?.Dispose(); | ||
AnnouncerSource = source; | ||
AnnouncerSource?.StartPlaying(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<ui:FurryServersWindow xmlns="https://spacestation14.io" | ||
xmlns:ui="clr-namespace:Content.Client.FurryServers" | ||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls" | ||
Title="Other Furry Servers..." | ||
MinSize="500 300" | ||
SetSize="500 450"> | ||
<ScrollContainer HScrollEnabled="False" Margin="4" VerticalExpand="True" ReturnMeasure="True"> | ||
<BoxContainer Orientation="Vertical"> | ||
<Label Margin="8 0 0 0" StyleClasses="FurryServersSectionHeader" Align="Center" | ||
Text="BlepStation (LRP)" Name="BlepstationHeader" /> | ||
<RichTextLabel Margin="8 8 8 8" Name="BlepstationDescription" /> | ||
|
||
<Button Name="BlepstationWebsite" Text="Launch Website: BlepStation.com" /> | ||
</BoxContainer> | ||
</ScrollContainer> | ||
</ui:FurryServersWindow> |
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,59 @@ | ||
using System.Linq; | ||
using Content.Client.Administration.Managers; | ||
using Content.Client.Stylesheets; | ||
using Content.Client.UserInterface.Controls; | ||
using Content.Client.UserInterface.Systems.EscapeMenu; | ||
using Content.Shared.Administration; | ||
using JetBrains.Annotations; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface; | ||
using Robust.Client.UserInterface.XAML; | ||
using Robust.Shared.Console; | ||
using Robust.Client.ResourceManagement; | ||
using Robust.Shared.Utility; | ||
|
||
namespace Content.Client.FurryServers | ||
{ | ||
[GenerateTypedNameReferences] | ||
public sealed partial class FurryServersWindow : FancyWindow | ||
{ | ||
[Dependency] private readonly IResourceCache _resourceManager = default!; | ||
[Dependency] private readonly IUriOpener _uri = default!; | ||
|
||
public FurryServersWindow() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
IoCManager.InjectDependencies(this); | ||
Stylesheet = IoCManager.Resolve<IStylesheetManager>().SheetSpace; | ||
|
||
BlepstationHeader.AddStyleClass(StyleBase.StyleClassLabelHeading); | ||
BlepstationHeader.FontColorOverride = Color.FromHex("#7687f2"); | ||
|
||
var description = FormattedMessage.FromMarkup(_resourceManager.ContentFileReadAllText($"/FurryServers/Blepstation.txt")); | ||
BlepstationDescription.SetMessage(description); | ||
|
||
BlepstationWebsite.OnPressed += _ => | ||
{ | ||
_uri.OpenUri("https://blepstation.com"); | ||
}; | ||
} | ||
|
||
protected override void Opened() | ||
{ | ||
base.Opened(); | ||
} | ||
} | ||
|
||
[UsedImplicitly, AnyCommand] | ||
public sealed class FurryServersCommand : IConsoleCommand | ||
{ | ||
public string Command => "furry"; | ||
public string Description => "Shows list of furry space station 14 servers"; | ||
public string Help => "Usage: furry"; | ||
|
||
public void Execute(IConsoleShell shell, string argStr, string[] args) | ||
{ | ||
IoCManager.Resolve<IUserInterfaceManager>().GetUIController<FurryServersUIController>().OpenWindow(); | ||
} | ||
} | ||
} |
Oops, something went wrong.