-
Notifications
You must be signed in to change notification settings - Fork 69
[FIX] Upstream fix Part 2 #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
3f5bc6c
id n dress fix
ReWAFFlution d32af64
del socks n fix foots
ReWAFFlution 88c67f1
tajar harsuits
ReWAFFlution 70b062d
Mech fix
ReWAFFlution 07437e7
Mood
ReWAFFlution eee5d74
Futanari vocal...
ReWAFFlution 0707e7b
Thief bible
ReWAFFlution 9f4c0a7
Return color to Ghost Teleport
ReWAFFlution bffed0b
ActionsPanel return
ReWAFFlution 4e2cd83
SoftCritical fixed
ReWAFFlution 1369053
Sperm fix...
ReWAFFlution 984bab6
Manifest fixed
ReWAFFlution a13592c
Manifest fixes p.2
ReWAFFlution ba5d49f
Flavor fix
ReWAFFlution 7225d9e
Fix Softcritical radio
ReWAFFlution 33ac7e4
Meta fix
ReWAFFlution afe4fb9
Dress fix
ReWAFFlution 245758e
fix-shitmed (#987)
shimorio b0ca170
Arcane edits
ReWAFFlution b0c4a8b
Merge branch 'master' into upstream-fix
ReWAFFlution 5f26ded
fixes
ReWAFFlution File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
88 changes: 88 additions & 0 deletions
88
Content.Client/_Arcane/StyleSheets/Sheetlets/DepartmentButtonSheetlet.cs
This file contains hidden or 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,88 @@ | ||
| // SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
|
||
| using Robust.Client.Graphics; | ||
| using Robust.Client.UserInterface; | ||
| using Robust.Client.UserInterface.Controls; | ||
| using static Content.Client.Stylesheets.StylesheetHelpers; | ||
|
|
||
| namespace Content.Client.Stylesheets.Sheetlets; | ||
|
|
||
| /// <summary> | ||
| /// Department-colored buttons used by the ghost teleport menu and access level controls. | ||
| /// The style class name is driven by <see cref="DepartmentPrototype.ButtonStyle"/>. | ||
| /// </summary> | ||
| [CommonSheetlet] | ||
| public sealed class DepartmentButtonSheetlet<T> : Sheetlet<T> where T : PalettedStylesheet | ||
| { | ||
| private static readonly Color CentralCommand = Color.FromHex("#185e1f"); | ||
| private static readonly Color Command = Color.FromHex("#1d4776"); | ||
| private static readonly Color Security = Color.FromHex("#991d1d"); | ||
| private static readonly Color Medical = Color.FromHex("#3e86ad"); | ||
| private static readonly Color Engineering = Color.FromHex("#998011"); | ||
| private static readonly Color Cargo = Color.FromHex("#A46106"); | ||
| private static readonly Color Science = Color.FromHex("#84287a"); | ||
| private static readonly Color Silicon = Color.FromHex("#08766b"); | ||
| private static readonly Color Civilian = Color.FromHex("#508264"); | ||
| private static readonly Color Justice = Color.FromHex("#9f2342"); | ||
| private static readonly Color Legal = Color.FromHex("#c22b51"); | ||
| private static readonly Color Specific = Color.FromHex("#767676"); | ||
| private static readonly Color Antagonist = Color.FromHex("#6f3a3a"); | ||
|
|
||
| public override StyleRule[] GetRules(T sheet, object config) | ||
| { | ||
| return | ||
| [ | ||
| // CentralCommand | ||
| E<Button>().Class("ButtonColorCentralCommandDepartment").Modulate(CentralCommand), | ||
| E<Button>().Class("ButtonColorCentralCommandDepartment").PseudoNormal().Modulate(CentralCommand), | ||
|
|
||
| // Command | ||
| E<Button>().Class("ButtonColorCommandDepartment").Modulate(Command), | ||
| E<Button>().Class("ButtonColorCommandDepartment").PseudoNormal().Modulate(Command), | ||
|
|
||
| // Security | ||
| E<Button>().Class("ButtonColorSecurityDepartment").Modulate(Security), | ||
| E<Button>().Class("ButtonColorSecurityDepartment").PseudoNormal().Modulate(Security), | ||
|
|
||
| // Medical | ||
| E<Button>().Class("ButtonColorMedicalDepartment").Modulate(Medical), | ||
| E<Button>().Class("ButtonColorMedicalDepartment").PseudoNormal().Modulate(Medical), | ||
|
|
||
| // Engineering | ||
| E<Button>().Class("ButtonColorEngineeringDepartment").Modulate(Engineering), | ||
| E<Button>().Class("ButtonColorEngineeringDepartment").PseudoNormal().Modulate(Engineering), | ||
|
|
||
| // Science | ||
| E<Button>().Class("ButtonColorScienceDepartment").Modulate(Science), | ||
| E<Button>().Class("ButtonColorScienceDepartment").PseudoNormal().Modulate(Science), | ||
|
|
||
| // Silicon | ||
| E<Button>().Class("ButtonColorSiliconDepartment").Modulate(Silicon), | ||
| E<Button>().Class("ButtonColorSiliconDepartment").PseudoNormal().Modulate(Silicon), | ||
|
|
||
| // Civilian | ||
| E<Button>().Class("ButtonColorCivilianDepartment").Modulate(Civilian), | ||
| E<Button>().Class("ButtonColorCivilianDepartment").PseudoNormal().Modulate(Civilian), | ||
|
|
||
| // Cargo | ||
| E<Button>().Class("ButtonColorCargoDepartment").Modulate(Cargo), | ||
| E<Button>().Class("ButtonColorCargoDepartment").PseudoNormal().Modulate(Cargo), | ||
|
|
||
| // Justice | ||
| E<Button>().Class("ButtonColorJusticeDepartment").Modulate(Justice), | ||
| E<Button>().Class("ButtonColorJusticeDepartment").PseudoNormal().Modulate(Justice), | ||
|
|
||
| // Legal | ||
| E<Button>().Class("ButtonColorLegalDepartment").Modulate(Legal), | ||
| E<Button>().Class("ButtonColorLegalDepartment").PseudoNormal().Modulate(Legal), | ||
|
|
||
| // Specific | ||
| E<Button>().Class("ButtonColorSpecificDepartment").Modulate(Specific), | ||
| E<Button>().Class("ButtonColorSpecificDepartment").PseudoNormal().Modulate(Specific), | ||
|
|
||
| // Antagonist | ||
| E<Button>().Class("ButtonColorAntagonistDepartment").Modulate(Antagonist), | ||
| E<Button>().Class("ButtonColorAntagonistDepartment").PseudoNormal().Modulate(Antagonist), | ||
| ]; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.