-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'greatchanges' of https://github.com/KashRas2/MorbinTime …
…into greatchanges
- Loading branch information
Showing
2,217 changed files
with
1,368,732 additions
and
97,775 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
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 |
---|---|---|
|
@@ -16,6 +16,6 @@ jobs: | |
- name: Check for Merge Conflicts | ||
uses: eps1lon/[email protected] | ||
with: | ||
dirtyLabel: "Merge Conflict" | ||
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
17 changes: 17 additions & 0 deletions
17
Content.Client/ADT/_RMC14/Attachable/Components/AttachableHolderVisualsComponent.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,17 @@ | ||
using Content.Client._RMC14.Attachable.Systems; | ||
using System.Numerics; | ||
|
||
namespace Content.Client._RMC14.Attachable.Components; | ||
|
||
[RegisterComponent, AutoGenerateComponentState] | ||
[Access(typeof(AttachableHolderVisualsSystem))] | ||
public sealed partial class AttachableHolderVisualsComponent : Component | ||
{ | ||
/// <summary> | ||
/// This dictionary contains a list of offsets for every slot that should display the attachable placed into it. | ||
/// If a slot is not in this dictionary, the attachable inside will not be displayed. | ||
/// The list of valid slot names can be found in AttachableHolderComponent.cs | ||
/// </summary> | ||
[DataField(required: true), AutoNetworkedField] | ||
public Dictionary<string, Vector2> Offsets = new(); | ||
} |
66 changes: 66 additions & 0 deletions
66
Content.Client/ADT/_RMC14/Attachable/Components/AttachableVisualsComponent.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,66 @@ | ||
using Content.Client._RMC14.Attachable.Systems; | ||
using System.Numerics; | ||
using Robust.Shared.Utility; | ||
|
||
namespace Content.Client._RMC14.Attachable.Components; | ||
|
||
[RegisterComponent, AutoGenerateComponentState] | ||
[Access(typeof(AttachableHolderVisualsSystem))] | ||
public sealed partial class AttachableVisualsComponent : Component | ||
{ | ||
/// <summary> | ||
/// Optional, only used if the item's own state should not be used. | ||
/// The path to the RSI file that contains all the attached states. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public ResPath? Rsi; | ||
|
||
/// <summary> | ||
/// Optional, only used if the item's own state should not be used. | ||
/// This prefix is added to the name of the slot the attachable is installed in. | ||
/// The prefix must be in kebab-case and end with a dash, like so: example-prefix- | ||
/// The RSI must contain a state for every slot the attachable fits into. | ||
/// If the attachment only fits into one slot, it should be named as follows: normal-state_suffix. | ||
/// The slot names can be found in AttachableHolderComponent.cs | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public string? Prefix; | ||
|
||
/// <summary> | ||
/// Optional, only used if the item's own state should not be used. | ||
/// This suffix is added to the name of the slot the attachable is installed in. | ||
/// The RSI must contain a state for every slot the attachable fits into. | ||
/// If the attachment only fits into one slot, it should be named as follows: normal-state_suffix. | ||
/// The slot names can be found in AttachableHolderComponent.cs | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public string? Suffix = "_a"; | ||
|
||
/// <summary> | ||
/// If true, will include the holder's slot name to find this attachment's state | ||
/// in its RSI. | ||
/// In this case, there must be a separate state for each slot the attachment fits into. | ||
/// The states should be named as follows: prefix-slot-name-suffix. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public bool IncludeSlotName; | ||
|
||
/// <summary> | ||
/// If this is toggled on and the item has an AttachableToggleableComponent, then the visualisation system will try to show a different sprite when it's active. | ||
/// Each active state must have "-on" appended to the end of its name. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public bool ShowActive; | ||
|
||
/// <summary> | ||
/// If this is set to true, the attachment will be redrawn on its holder every time it receives an AppearanceChangeEvent. Useful for things like the UGL. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public bool RedrawOnAppearanceChange; | ||
|
||
[DataField, AutoNetworkedField] | ||
public int Layer; | ||
|
||
[DataField, AutoNetworkedField] | ||
public Vector2 Offset; | ||
} |
Oops, something went wrong.