forked from new-frontiers-14/frontier-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
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' of https://github.com/blackknight954/frontier-s…
- Loading branch information
Showing
308 changed files
with
11,196 additions
and
3,592 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
3 changes: 1 addition & 2 deletions
3
Content.Client/Nyanotrasen/Kitchen/Components/DeepFriedComponent.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
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
21 changes: 21 additions & 0 deletions
21
Content.Client/_NF/Guidebook/Controls/GuideMedicalComposition.xaml
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 @@ | ||
<BoxContainer xmlns="https://spacestation14.io" | ||
Orientation="Horizontal" | ||
HorizontalAlignment="Stretch" | ||
HorizontalExpand="True" | ||
Margin="0 0 0 5"> | ||
<BoxContainer Name="ReactantsContainer" Orientation="Vertical" HorizontalExpand="True" VerticalAlignment="Center"> | ||
<Label Name="ReagentLabel" | ||
HorizontalExpand="True" | ||
HorizontalAlignment="Left" | ||
VerticalAlignment="Center" | ||
Access="Public" | ||
Margin="25 0 0 0"/> <!-- Frontier: left margin 2<25 - matches reagent plant metabolism's stacked margins with GuideFoodEmbed --> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Vertical" VerticalAlignment="Center"> | ||
<Label Name="AmountLabel" | ||
HorizontalAlignment="Right" | ||
VerticalAlignment="Center" | ||
Access="Public" | ||
Margin="10 0 0 0"/> <!-- Frontier: left margin 2<10 --> | ||
</BoxContainer> | ||
</BoxContainer> |
32 changes: 32 additions & 0 deletions
32
Content.Client/_NF/Guidebook/Controls/GuideMedicalComposition.xaml.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,32 @@ | ||
using Content.Client.Guidebook.Controls; | ||
using Content.Client.UserInterface.ControlExtensions; | ||
using Content.Shared.Chemistry.Reagent; | ||
using Content.Shared.FixedPoint; | ||
using JetBrains.Annotations; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client._NF.Guidebook.Controls; // Frontier: add _EE | ||
|
||
[UsedImplicitly, GenerateTypedNameReferences] | ||
public sealed partial class GuideMedicalComposition : BoxContainer, ISearchableControl | ||
{ | ||
public GuideMedicalComposition(ReagentPrototype proto, FixedPoint2 quantity) | ||
{ | ||
RobustXamlLoader.Load(this); | ||
|
||
ReagentLabel.Text = proto.LocalizedName; | ||
AmountLabel.Text = quantity.ToString(); | ||
} | ||
|
||
public bool CheckMatchesSearch(string query) | ||
{ | ||
return this.ChildrenContainText(query); | ||
} | ||
|
||
public void SetHiddenState(bool state, string query) | ||
{ | ||
Visible = CheckMatchesSearch(query) ? state : !state; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Content.Client/_NF/Guidebook/Controls/GuideMedicalDamage.xaml
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 @@ | ||
<BoxContainer xmlns="https://spacestation14.io" | ||
Orientation="Horizontal" | ||
HorizontalAlignment="Stretch" | ||
HorizontalExpand="True" | ||
Margin="0 0 0 5"> | ||
<BoxContainer Name="DamageContainer" Orientation="Vertical" HorizontalExpand="True" VerticalAlignment="Center"> | ||
<RichTextLabel Name="DamageLabel" | ||
HorizontalExpand="True" | ||
HorizontalAlignment="Left" | ||
VerticalAlignment="Center" | ||
Access="Public" | ||
Margin="25 0 0 0"/> <!-- Frontier: left margin 2<25 - matches reagent plant metabolism's stacked margins with GuideFoodEmbed --> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Vertical" VerticalAlignment="Center"> | ||
<RichTextLabel Name="AmountLabel" | ||
HorizontalAlignment="Right" | ||
VerticalAlignment="Center" | ||
Access="Public" | ||
Margin="10 0 0 0"/> <!-- Frontier: left margin 2<10 --> | ||
</BoxContainer> | ||
</BoxContainer> |
40 changes: 40 additions & 0 deletions
40
Content.Client/_NF/Guidebook/Controls/GuideMedicalDamage.xaml.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,40 @@ | ||
using Content.Client.Guidebook.Controls; | ||
using Content.Client.UserInterface.ControlExtensions; | ||
using Content.Shared.Damage.Prototypes; | ||
using Content.Shared.FixedPoint; | ||
using JetBrains.Annotations; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client._NF.Guidebook.Controls; | ||
|
||
[UsedImplicitly, GenerateTypedNameReferences] | ||
public sealed partial class GuideMedicalDamage : BoxContainer, ISearchableControl | ||
{ | ||
public GuideMedicalDamage(DamageTypePrototype proto, FixedPoint2 quantity) | ||
{ | ||
RobustXamlLoader.Load(this); | ||
|
||
DamageLabel.Text = proto.LocalizedName; | ||
AmountLabel.Text = quantity.ToString(); | ||
} | ||
|
||
public GuideMedicalDamage(DamageGroupPrototype proto, FixedPoint2 quantity) | ||
{ | ||
RobustXamlLoader.Load(this); | ||
|
||
DamageLabel.Text = Loc.GetString("guidebook-medical-damage-group", ("name", proto.LocalizedName)); | ||
AmountLabel.Text = quantity.ToString(); | ||
} | ||
|
||
public bool CheckMatchesSearch(string query) | ||
{ | ||
return this.ChildrenContainText(query); | ||
} | ||
|
||
public void SetHiddenState(bool state, string query) | ||
{ | ||
Visible = CheckMatchesSearch(query) ? state : !state; | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
Content.Client/_NF/Guidebook/Controls/GuideMedicalEmbed.xaml
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,53 @@ | ||
<BoxContainer xmlns="https://spacestation14.io" | ||
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client" | ||
Orientation="Vertical" | ||
Margin="5 5 5 5"> | ||
<PanelContainer HorizontalExpand="True"> | ||
<PanelContainer.PanelOverride> | ||
<gfx:StyleBoxFlat BorderThickness="1" BorderColor="#777777"/> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer Orientation="Vertical"> | ||
<PanelContainer Name="NameBackground" HorizontalExpand="True" VerticalExpand="False"> | ||
<RichTextLabel Name="ResultName" HorizontalAlignment="Center"/> | ||
</PanelContainer> | ||
<BoxContainer Name="RecipesContainer" HorizontalExpand="True" Visible="false"> | ||
<Collapsible HorizontalExpand="True"> | ||
<CollapsibleHeading Title="{Loc 'guidebook-food-recipes-header'}"/> | ||
<CollapsibleBody> | ||
<GridContainer Name="RecipesDescriptionContainer" | ||
Margin="10 0 10 0" | ||
Columns="1" | ||
HSeparationOverride="0" | ||
HorizontalAlignment="Stretch" | ||
HorizontalExpand="True"/> | ||
</CollapsibleBody> | ||
</Collapsible> | ||
</BoxContainer> | ||
<BoxContainer Name="CompositionContainer" HorizontalExpand="True" Visible="false"> | ||
<Collapsible> | ||
<CollapsibleHeading Title="{Loc 'guidebook-medical-reagents-header'}"/> | ||
<CollapsibleBody> | ||
<BoxContainer Name="CompositionDescriptionContainer" | ||
Orientation="Vertical" | ||
Margin="10 0 10 0" | ||
HorizontalExpand="True"/> | ||
</CollapsibleBody> | ||
</Collapsible> | ||
</BoxContainer> | ||
<BoxContainer Name="DamageContainer" HorizontalExpand="True" Visible="false"> | ||
<Collapsible> | ||
<CollapsibleHeading Title="{Loc 'guidebook-medical-damage-header'}"/> | ||
<CollapsibleBody> | ||
<BoxContainer Name="DamageDescriptionContainer" | ||
Orientation="Vertical" | ||
Margin="10 0 10 0" | ||
HorizontalExpand="True"/> | ||
</CollapsibleBody> | ||
</Collapsible> | ||
</BoxContainer> | ||
<BoxContainer Margin="10 5 10 10" HorizontalExpand="True"> | ||
<RichTextLabel Name="Description" HorizontalAlignment="Left"/> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</PanelContainer> | ||
</BoxContainer> |
Oops, something went wrong.