-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AdventureTimeSS14:master' into KC_SS40k_turrets
- Loading branch information
Showing
3,244 changed files
with
1,925,609 additions
and
587,469 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 was deleted.
Oops, something went wrong.
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,21 @@ | ||
name: Check Merge Conflicts | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
|
||
jobs: | ||
Label: | ||
if: ( github.event.pull_request.draft == false ) && ( github.actor != 'IanComradeBot' ) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for Merge Conflicts | ||
uses: eps1lon/[email protected] | ||
with: | ||
dirtyLabel: "S: Merge Conflict" | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request." |
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,20 @@ | ||
name: "Labels: Size" | ||
on: pull_request_target | ||
jobs: | ||
size-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: size-label | ||
uses: "pascalgn/[email protected]" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
# Custom size configuration | ||
sizes: > | ||
{ | ||
"0": "XS", | ||
"10": "S", | ||
"30": "M", | ||
"100": "L", | ||
"1000": "XL" | ||
} |
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 @@ | ||
name: "Labels: Branch stable" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
branches: | ||
- 'stable' | ||
|
||
jobs: | ||
add_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions-ecosystem/action-add-labels@v1 | ||
with: | ||
labels: "Branch: Stable" |
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 @@ | ||
name: "Labels: Branch staging" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
branches: | ||
- 'staging' | ||
|
||
jobs: | ||
add_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions-ecosystem/action-add-labels@v1 | ||
with: | ||
labels: "Branch: Staging" |
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
72 changes: 72 additions & 0 deletions
72
Content.Client/ADT/BookPrinter/BookPrinterBoundUserInterface.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,72 @@ | ||
using Content.Shared.ADT.BookPrinter; | ||
using Content.Shared.Containers.ItemSlots; | ||
using JetBrains.Annotations; | ||
|
||
namespace Content.Client.ADT.BookPrinter | ||
{ | ||
[UsedImplicitly] | ||
public sealed class BookPrinterBoundUserInterface : BoundUserInterface | ||
{ | ||
[ViewVariables] | ||
private BookPrinterWindow? _window; | ||
|
||
[ViewVariables] | ||
private BookPrinterBoundUserInterfaceState? _lastState; | ||
|
||
public BookPrinterBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) | ||
{ | ||
} | ||
|
||
protected override void Open() | ||
{ | ||
base.Open(); | ||
|
||
_window = new() | ||
{ | ||
Title = EntMan.GetComponent<MetaDataComponent>(Owner).EntityName, | ||
}; | ||
|
||
_window.EjectButton.OnPressed += _ => SendMessage(new ItemSlotButtonPressedEvent("bookSlot")); | ||
_window.ClearButton.OnPressed += _ => SendMessage(new BookPrinterClearContainerMessage()); | ||
_window.UploadButton.OnPressed += _ => SendMessage(new BookPrinterUploadMessage()); | ||
_window.CopyPasteButton.OnPressed += _ => SendMessage(new BookPrinterCopyPasteMessage()); | ||
|
||
|
||
_window.OpenCentered(); | ||
_window.OnClose += Close; | ||
|
||
_window.OnPrintBookButtonPressed += (args, button) => SendMessage(new BookPrinterPrintBookMessage(button.BookEntry)); | ||
_window.OnPrintBookButtonMouseEntered += (args, button) => | ||
{ | ||
if (_lastState is not null) | ||
_window.UpdateContainerInfo(_lastState); | ||
}; | ||
_window.OnPrintBookButtonMouseExited += (args, button) => | ||
{ | ||
if (_lastState is not null) | ||
_window.UpdateContainerInfo(_lastState); | ||
}; | ||
} | ||
|
||
protected override void UpdateState(BoundUserInterfaceState state) | ||
{ | ||
base.UpdateState(state); | ||
|
||
var castState = (BookPrinterBoundUserInterfaceState)state; | ||
_lastState = castState; | ||
|
||
_window?.UpdateState(castState); | ||
} | ||
|
||
[Obsolete] | ||
protected override void Dispose(bool disposing) | ||
{ | ||
base.Dispose(disposing); | ||
|
||
if (disposing) | ||
{ | ||
_window?.Dispose(); | ||
} | ||
} | ||
} | ||
} |
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,45 @@ | ||
<DefaultWindow | ||
xmlns="https://spacestation14.io" | ||
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client" | ||
Title="{Loc 'book-printer-title'}" | ||
SetSize="525 475" | ||
MinSize="525 475"> | ||
<BoxContainer Orientation="Vertical"> | ||
<ScrollContainer HScrollEnabled="False" HorizontalExpand="True" VerticalExpand="True" MinSize="0 250"> | ||
<BoxContainer Orientation="Vertical" Name="BooksList" Access="Public"> | ||
</BoxContainer> | ||
</ScrollContainer> | ||
<Control MinSize="0 10"/> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc 'book-printer-window-book-label'}"/> | ||
<Control MinSize="10 0"/> | ||
<Button Name="UploadButton" | ||
Access="Public" | ||
Text="{Loc 'book-printer-window-upload-button'}" | ||
StyleClasses="OpenRight"/> | ||
<Button Name="ClearButton" | ||
Access="Public" | ||
Text="{Loc 'book-printer-window-clear-button'}" | ||
StyleClasses="OpenBoth"/> | ||
<Button Name="CopyPasteButton" | ||
Access="Public" | ||
Text="{Loc 'book-printer-window-copy-button'}" | ||
StyleClasses="OpenBoth"/> | ||
<Button Name="EjectButton" | ||
Access="Public" | ||
Text="{Loc 'book-printer-window-eject-button'}" | ||
StyleClasses="OpenLeft"/> | ||
</BoxContainer> | ||
<Control MinSize="0 10"/> | ||
<PanelContainer SizeFlagsStretchRatio="6" MinSize="0 100"> | ||
<PanelContainer.PanelOverride> | ||
<gfx:StyleBoxFlat BackgroundColor="#1b1b1e" /> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer Name="ContainerInfo" | ||
Orientation="Vertical" | ||
HorizontalExpand="True"> | ||
<Label Text="{Loc 'book-printer-window-no-book-loaded-text'}"/> | ||
</BoxContainer> | ||
</PanelContainer> | ||
</BoxContainer> | ||
</DefaultWindow> |
Oops, something went wrong.