Skip to content
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

МиниАпстрим #71

Merged
merged 44 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
060c3e9
Rules v5 (#1948)
Leander-0 Oct 25, 2024
27db1b9
Automatic Changelog (#1948)
FrontierATC Oct 25, 2024
78644c9
No [color] for discord (#2326)
whatston3 Oct 25, 2024
8fcbd11
Adjust tyne price (#2328)
Tych0theSynth Oct 25, 2024
879e22e
Automatic Changelog (#2328)
FrontierATC Oct 25, 2024
3be4d61
Update phoenix.yml (#2333)
dvir001 Oct 26, 2024
1cf18c1
Space VGRoids support (#2334)
dvir001 Oct 26, 2024
a698d0d
Migration file split (#2315)
dvir001 Oct 26, 2024
efb3bca
Medical recipe guidebook entries (#2331)
whatston3 Oct 26, 2024
1278961
Update medical.yml (#2335)
dustylens Oct 26, 2024
27f7e4b
Automatic Changelog (#2331)
FrontierATC Oct 26, 2024
924d0e1
Rosy the Maple Mothroach Cloak (#2296)
dustylens Oct 26, 2024
d021bc5
Automatic Changelog (#2296)
FrontierATC Oct 26, 2024
e10e5f7
Medical Bounties (#2193)
whatston3 Oct 26, 2024
20f6dc9
Automatic Changelog (#2193)
FrontierATC Oct 26, 2024
572ea80
Update animals.yml (#2312)
dvir001 Oct 26, 2024
c5bf903
Automatic Changelog (#2312)
FrontierATC Oct 26, 2024
43e4efb
Remove world loader from outpost STC terminals, bus shuttle console. …
whatston3 Oct 27, 2024
e406872
Remove paracusia and changes solar flare event (#2340)
Leander-0 Oct 27, 2024
0a4c7bb
Automatic Changelog (#2340)
FrontierATC Oct 27, 2024
0eee6c2
Honey (#2282)
RichardRahl123 Oct 27, 2024
db1c95c
Automatic Changelog (#2282)
FrontierATC Oct 27, 2024
3509f5f
Update caduceus.yml (#2343)
dustylens Oct 27, 2024
b51b21f
lathe recipes clean up (#2303)
ErhardSteinhauer Oct 27, 2024
1c48efd
Automatic Changelog (#2303)
FrontierATC Oct 27, 2024
721b6db
added chem dispenser to caduceus.yml (#2321)
DmitriTheDemon Oct 28, 2024
657e9bc
Automatic Changelog (#2321)
FrontierATC Oct 28, 2024
7a833ed
Cvar cleanups (#2325)
dvir001 Oct 29, 2024
309ee72
Goblin Posters (#2345)
ErhardSteinhauer Oct 31, 2024
c5b4c9f
Automatic Changelog (#2345)
FrontierATC Oct 31, 2024
fef1639
Cargo Sell - fix order of checks, no selling station pets. (#2354)
whatston3 Nov 1, 2024
e7bf60f
Automatic Changelog (#2354)
FrontierATC Nov 1, 2024
e459747
bedrolls (#2332)
ErhardSteinhauer Nov 1, 2024
ca6a70c
Automatic Changelog (#2332)
FrontierATC Nov 1, 2024
1f03177
Adds security locked versions of sturdy shelves (#2348)
Tych0theSynth Nov 1, 2024
66f1bdc
Automatic Changelog (#2348)
FrontierATC Nov 1, 2024
0a23cd4
Bluespace rule + Events cleanup and improvements (#2337)
dvir001 Nov 1, 2024
7aa4e12
Automatic Changelog (#2337)
FrontierATC Nov 1, 2024
aa1851b
Removing Goblinbane complex interactions (#2355)
DmitriTheDemon Nov 1, 2024
f9b9372
Automatic Changelog (#2355)
FrontierATC Nov 1, 2024
f458ee3
Add suffix to damaged RTG generator flatpack (#2360)
arimah Nov 3, 2024
2a69cc4
Конфликты
Zekins3366 Nov 3, 2024
7528e08
фикс
Zekins3366 Nov 3, 2024
2999f4b
fix's event
mersen-tyn Nov 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Content.Client/Guidebook/DocumentParsingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void Initialize()
.Assert(_tagControlParsers.ContainsKey, tag => $"unknown tag: {tag}")
.Bind(tag => _tagControlParsers[tag]);

_controlParser = OneOf(_tagParser, TryHeaderControl, ListControlParser, TextControlParser)
_controlParser = OneOf(_tagParser, TryHeaderControl, TryListControl, TextControlParser) // Frontier: ListControlParser<TryListControl
.Before(SkipWhitespaces);

foreach (var typ in _reflectionManager.GetAllChildren<IDocumentTag>())
Expand Down
17 changes: 17 additions & 0 deletions Content.Client/Guidebook/DocumentParsingManager.static.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Content.Client.Guidebook;
public sealed partial class DocumentParsingManager
{
private const string ListBullet = " › ";
private const string SublistBullet = " • "; // Frontier

// Parser that consumes a - and then just parses normal rich text with some prefix text (a bullet point).
private static readonly Parser<char, char> TryEscapedChar = Try(Char('\\')
Expand Down Expand Up @@ -123,6 +124,22 @@ public sealed partial class DocumentParsingManager
.Cast<Control>())
.Labelled("list");

// Frontier: sublists - should duplicate ListControlParser but for more hyphens, and print out more spaces before your list character
private static readonly Parser<char, Control> SublistControlParser = Try(String("--"))
.Then(SkipWhitespaces)
.Then(Map(
control => new BoxContainer
{
Children = { new Label { Text = SublistBullet, VerticalAlignment = VAlignment.Top }, control },
Orientation = LayoutOrientation.Horizontal
},
TextControlParser)
.Cast<Control>())
.Labelled("sublist");

private static readonly Parser<char, Control> TryListControl = OneOf(SublistControlParser, ListControlParser);
// End Frontier: sublists

#region Text Parsing

#region Basic Text Parsing
Expand Down
3 changes: 2 additions & 1 deletion Content.Client/Salvage/UI/SalvageExpeditionWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Content.Client.Stylesheets;
using Content.Client.UserInterface.Controls;
using Content.Shared.CCVar;
using Content.Shared._NF.CCVar; // Frontier
using Content.Shared.Parallax.Biomes;
using Content.Shared.Salvage;
using Content.Shared.Salvage.Expeditions;
Expand Down Expand Up @@ -303,7 +304,7 @@ protected override void FrameUpdate(FrameEventArgs args)
else
{
var cooldown = _cooldown
? TimeSpan.FromSeconds(_cfgManager.GetCVar(CCVars.SalvageExpeditionFailedCooldown))
? TimeSpan.FromSeconds(_cfgManager.GetCVar(NFCCVars.SalvageExpeditionFailedCooldown))
: TimeSpan.FromSeconds(_cfgManager.GetCVar(CCVars.SalvageExpeditionCooldown));

NextOfferBar.Value = 1f - (float) (remaining / cooldown);
Expand Down
21 changes: 21 additions & 0 deletions Content.Client/_NF/Guidebook/Controls/GuideMedicalComposition.xaml
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>
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 Content.Client/_NF/Guidebook/Controls/GuideMedicalDamage.xaml
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 Content.Client/_NF/Guidebook/Controls/GuideMedicalDamage.xaml.cs
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 Content.Client/_NF/Guidebook/Controls/GuideMedicalEmbed.xaml
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>
Loading
Loading