-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into chore/logging
- Loading branch information
Showing
32 changed files
with
735 additions
and
51 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 |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
|
||
- uses: actions/[email protected] | ||
with: | ||
name: jailbreak-nightly-${{ github.run_id }} | ||
name: jailbreak-nightly | ||
path: build | ||
# If build didn't put any artifacts in the build folder, consider it an error | ||
if-no-files-found: error |
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,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\public\Jailbreak.Formatting\Jailbreak.Formatting.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,46 @@ | ||
using CounterStrikeSharp.API.Modules.Utils; | ||
|
||
using Jailbreak.Formatting.Base; | ||
using Jailbreak.Formatting.Core; | ||
using Jailbreak.Formatting.Logistics; | ||
using Jailbreak.Formatting.Objects; | ||
using Jailbreak.Formatting.Views; | ||
|
||
namespace Jailbreak.English.Teams; | ||
|
||
public class RatioNotifications : IRatioNotifications, ILanguage<Formatting.Languages.English> | ||
{ | ||
public static FormatObject PREFIX = new HiddenFormatObject( $" {ChatColors.LightRed}[{ChatColors.Red}JB{ChatColors.LightRed}]" ) | ||
{ | ||
// Hide in panorama and center text | ||
Plain = false, | ||
Panorama = false, | ||
Chat = true, | ||
}; | ||
|
||
public IView NOT_ENOUGH_GUARDS => new SimpleView(writer => | ||
writer | ||
.Line(PREFIX, "There's not enough guards in the queue!")); | ||
|
||
public IView JOIN_GUARD_QUEUE => new SimpleView(writer => | ||
writer | ||
.Line(PREFIX, "Type !guard to become a guard!")); | ||
|
||
public IView YOU_WERE_AUTOBALANCED_PRISONER => new SimpleView(writer => | ||
writer | ||
.Line(PREFIX, "You were autobalanced to the prisoner team!")); | ||
|
||
public IView ATTEMPT_TO_JOIN_FROM_TEAM_MENU => new SimpleView(writer => | ||
writer | ||
.Line(PREFIX, "You were swapped back to the prisoner team!") | ||
.Line(PREFIX, "Please use !guard to join the guard team.")); | ||
|
||
public IView LEFT_GUARD => new SimpleView(writer => | ||
writer | ||
.Line(PREFIX, "You are no longer a guard.") | ||
.Line(PREFIX, "Please use !guard if you want to re-join the guard team.")); | ||
|
||
public IView YOU_WERE_AUTOBALANCED_GUARD => new SimpleView(writer => | ||
writer | ||
.Line(PREFIX, "You are now a guard!")); | ||
} |
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,67 @@ | ||
using CounterStrikeSharp.API.Core; | ||
using CounterStrikeSharp.API.Modules.Utils; | ||
|
||
using Jailbreak.Formatting.Base; | ||
using Jailbreak.Formatting.Core; | ||
using Jailbreak.Formatting.Logistics; | ||
using Jailbreak.Formatting.Objects; | ||
using Jailbreak.Formatting.Views; | ||
|
||
namespace Jailbreak.English.Warden; | ||
|
||
public class WardenNotifications : IWardenNotifications, ILanguage<Formatting.Languages.English> | ||
{ | ||
public static FormatObject PREFIX = new HiddenFormatObject( $" {ChatColors.Lime}[{ChatColors.Green}WARDEN{ChatColors.Lime}]" ) | ||
{ | ||
// Hide in panorama and center text | ||
Plain = false, | ||
Panorama = false, | ||
Chat = true, | ||
}; | ||
|
||
public IView PICKING_SHORTLY => new SimpleView(writer => | ||
writer | ||
.Line(PREFIX, "Picking a warden shortly") | ||
.Line(PREFIX, "To enter the warden queue, type !warden in chat.")); | ||
|
||
public IView NO_WARDENS => new SimpleView(writer => | ||
writer | ||
.Line(PREFIX, "No wardens in queue! The next player to run !warden will become a warden.")); | ||
|
||
public IView WARDEN_LEFT => new SimpleView(writer => | ||
writer.Line(PREFIX, "The warden has left the game!")); | ||
|
||
public IView WARDEN_DIED => new SimpleView(writer => | ||
writer.Line(PREFIX, "The warden has died!")); | ||
|
||
public IView BECOME_NEXT_WARDEN => new SimpleView(writer => | ||
writer.Line(PREFIX, "Type !warden to become the next warden")); | ||
|
||
public IView JOIN_RAFFLE => new SimpleView(writer => | ||
writer.Line(PREFIX, "You've joined the warden raffle!")); | ||
|
||
public IView LEAVE_RAFFLE => new SimpleView(writer => | ||
writer.Line(PREFIX, "You've left the warden raffle!")); | ||
|
||
public IView PASS_WARDEN(CCSPlayerController player) | ||
{ | ||
return new SimpleView(writer => | ||
writer.Line(PREFIX, player, "has resigned from being warden!")); | ||
} | ||
|
||
public IView NEW_WARDEN(CCSPlayerController player) | ||
{ | ||
return new SimpleView(writer => | ||
writer.Line(PREFIX, player, "is now the warden!")); | ||
} | ||
|
||
public IView CURRENT_WARDEN(CCSPlayerController? player) | ||
{ | ||
if (player is not null) | ||
return new SimpleView(writer => | ||
writer.Line(PREFIX, "The current warden is", player)); | ||
else | ||
return new SimpleView(writer => | ||
writer.Line(PREFIX, "There is currently no warden!")); | ||
} | ||
} |
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.