Rename "Server Info" to ServerInfo (#15436)
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Content.Client.Info
|
|||||||
|
|
||||||
private static Control MakeSection(string title, string path, bool markup, IResourceManager res)
|
private static Control MakeSection(string title, string path, bool markup, IResourceManager res)
|
||||||
{
|
{
|
||||||
return new InfoSection(title, res.ContentFileReadAllText($"/Server Info/{path}"), markup);
|
return new InfoSection(title, res.ContentFileReadAllText($"/ServerInfo/{path}"), markup);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using Robust.Shared.Log;
|
|||||||
|
|
||||||
namespace Content.Server.Info;
|
namespace Content.Server.Info;
|
||||||
|
|
||||||
public class InfoSystem : EntitySystem
|
public sealed class InfoSystem : EntitySystem
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IResourceManager _res = default!;
|
[Dependency] private readonly IResourceManager _res = default!;
|
||||||
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
||||||
@@ -24,7 +24,7 @@ public class InfoSystem : EntitySystem
|
|||||||
var rules = "Server could not read its rules.";
|
var rules = "Server could not read its rules.";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
rules = _res.ContentFileReadAllText($"/Server Info/{path}");
|
rules = _res.ContentFileReadAllText($"/ServerInfo/{path}");
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Botany
|
id: Botany
|
||||||
name: guide-entry-botany
|
name: guide-entry-botany
|
||||||
text: "/Server Info/Guidebook/Botany.xml"
|
text: "/ServerInfo/Guidebook/Botany.xml"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Engineering
|
id: Engineering
|
||||||
name: guide-entry-engineering
|
name: guide-entry-engineering
|
||||||
text: "/Server Info/Guidebook/Engineering.xml"
|
text: "/ServerInfo/Guidebook/Engineering.xml"
|
||||||
children:
|
children:
|
||||||
- Atmospherics
|
- Atmospherics
|
||||||
- Construction
|
- Construction
|
||||||
@@ -11,29 +11,29 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Construction
|
id: Construction
|
||||||
name: guide-entry-construction
|
name: guide-entry-construction
|
||||||
text: "/Server Info/Guidebook/Construction.xml"
|
text: "/ServerInfo/Guidebook/Construction.xml"
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Atmospherics
|
id: Atmospherics
|
||||||
name: guide-entry-atmospherics
|
name: guide-entry-atmospherics
|
||||||
text: "/Server Info/Guidebook/Atmospherics.xml"
|
text: "/ServerInfo/Guidebook/Atmospherics.xml"
|
||||||
children:
|
children:
|
||||||
- Fires
|
- Fires
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Fires
|
id: Fires
|
||||||
name: guide-entry-fires
|
name: guide-entry-fires
|
||||||
text: "/Server Info/Guidebook/Fires.xml"
|
text: "/ServerInfo/Guidebook/Fires.xml"
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: ShuttleCraft
|
id: ShuttleCraft
|
||||||
name: guide-entry-shuttle-craft
|
name: guide-entry-shuttle-craft
|
||||||
text: "/Server Info/Guidebook/Shuttlecraft.xml"
|
text: "/ServerInfo/Guidebook/Shuttlecraft.xml"
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Power
|
id: Power
|
||||||
name: guide-entry-power
|
name: guide-entry-power
|
||||||
text: "/Server Info/Guidebook/Power.xml"
|
text: "/ServerInfo/Guidebook/Power.xml"
|
||||||
children:
|
children:
|
||||||
- AME
|
- AME
|
||||||
- Singularity
|
- Singularity
|
||||||
@@ -41,9 +41,9 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: AME
|
id: AME
|
||||||
name: guide-entry-ame
|
name: guide-entry-ame
|
||||||
text: "/Server Info/Guidebook/AME.xml"
|
text: "/ServerInfo/Guidebook/AME.xml"
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Singularity
|
id: Singularity
|
||||||
name: guide-entry-singularity
|
name: guide-entry-singularity
|
||||||
text: "/Server Info/Guidebook/Singularity.xml"
|
text: "/ServerInfo/Guidebook/Singularity.xml"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Controls
|
id: Controls
|
||||||
name: guide-entry-controls
|
name: guide-entry-controls
|
||||||
text: "/Server Info/Guidebook/Controls/Controls.xml"
|
text: "/ServerInfo/Guidebook/Controls/Controls.xml"
|
||||||
children:
|
children:
|
||||||
- Radio
|
- Radio
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Radio
|
id: Radio
|
||||||
name: guide-entry-radio
|
name: guide-entry-radio
|
||||||
text: "/Server Info/Guidebook/Controls/Radio.xml"
|
text: "/ServerInfo/Guidebook/Controls/Radio.xml"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Science
|
id: Science
|
||||||
name: guide-entry-science
|
name: guide-entry-science
|
||||||
text: "/Server Info/Guidebook/Science/Science.xml"
|
text: "/ServerInfo/Guidebook/Science/Science.xml"
|
||||||
children:
|
children:
|
||||||
- AnomalousResearch
|
- AnomalousResearch
|
||||||
- Xenoarchaeology
|
- Xenoarchaeology
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: AnomalousResearch
|
id: AnomalousResearch
|
||||||
name: guide-entry-anomalous-research
|
name: guide-entry-anomalous-research
|
||||||
text: "/Server Info/Guidebook/Science/AnomalousResearch.xml"
|
text: "/ServerInfo/Guidebook/Science/AnomalousResearch.xml"
|
||||||
children:
|
children:
|
||||||
- APE
|
- APE
|
||||||
- ScannersAndVessels
|
- ScannersAndVessels
|
||||||
@@ -18,17 +18,17 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: ScannersAndVessels
|
id: ScannersAndVessels
|
||||||
name: guide-entry-scanners-and-vessels
|
name: guide-entry-scanners-and-vessels
|
||||||
text: "/Server Info/Guidebook/Science/ScannersAndVessels.xml"
|
text: "/ServerInfo/Guidebook/Science/ScannersAndVessels.xml"
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: APE
|
id: APE
|
||||||
name: guide-entry-ape
|
name: guide-entry-ape
|
||||||
text: "/Server Info/Guidebook/Science/APE.xml"
|
text: "/ServerInfo/Guidebook/Science/APE.xml"
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Xenoarchaeology
|
id: Xenoarchaeology
|
||||||
name: guide-entry-xenoarchaeology
|
name: guide-entry-xenoarchaeology
|
||||||
text: "/Server Info/Guidebook/Science/Xenoarchaeology.xml"
|
text: "/ServerInfo/Guidebook/Science/Xenoarchaeology.xml"
|
||||||
children:
|
children:
|
||||||
- ArtifactReports
|
- ArtifactReports
|
||||||
- TraversalDistorter
|
- TraversalDistorter
|
||||||
@@ -36,14 +36,14 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: ArtifactReports
|
id: ArtifactReports
|
||||||
name: guide-entry-artifact-reports
|
name: guide-entry-artifact-reports
|
||||||
text: "/Server Info/Guidebook/Science/ArtifactReports.xml"
|
text: "/ServerInfo/Guidebook/Science/ArtifactReports.xml"
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: TraversalDistorter
|
id: TraversalDistorter
|
||||||
name: guide-entry-traversal-distorter
|
name: guide-entry-traversal-distorter
|
||||||
text: "/Server Info/Guidebook/Science/TraversalDistorter.xml"
|
text: "/ServerInfo/Guidebook/Science/TraversalDistorter.xml"
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: MachineUpgrading
|
id: MachineUpgrading
|
||||||
name: guide-entry-machine-upgrading
|
name: guide-entry-machine-upgrading
|
||||||
text: "/Server Info/Guidebook/Science/MachineUpgrading.xml"
|
text: "/ServerInfo/Guidebook/Science/MachineUpgrading.xml"
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Security
|
id: Security
|
||||||
name: guide-entry-security
|
name: guide-entry-security
|
||||||
text: "/Server Info/Guidebook/Security/Security.xml"
|
text: "/ServerInfo/Guidebook/Security/Security.xml"
|
||||||
children:
|
children:
|
||||||
- DNA
|
- DNA
|
||||||
|
|
||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: DNA
|
id: DNA
|
||||||
name: guide-entry-dna
|
name: guide-entry-dna
|
||||||
text: "/Server Info/Guidebook/Security/DNA.xml"
|
text: "/ServerInfo/Guidebook/Security/DNA.xml"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Jobs
|
id: Jobs
|
||||||
name: guide-entry-jobs
|
name: guide-entry-jobs
|
||||||
text: "/Server Info/Guidebook/Jobs.xml"
|
text: "/ServerInfo/Guidebook/Jobs.xml"
|
||||||
children:
|
children:
|
||||||
- Botany
|
- Botany
|
||||||
- Engineering
|
- Engineering
|
||||||
@@ -11,4 +11,4 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: Survival
|
id: Survival
|
||||||
name: guide-entry-survival
|
name: guide-entry-survival
|
||||||
text: "/Server Info/Guidebook/Survival.xml"
|
text: "/ServerInfo/Guidebook/Survival.xml"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
- type: guideEntry
|
- type: guideEntry
|
||||||
id: SS14
|
id: SS14
|
||||||
name: guide-entry-ss14
|
name: guide-entry-ss14
|
||||||
text: "/Server Info/Guidebook/Space Station 14.xml"
|
text: "/ServerInfo/Guidebook/Space Station 14.xml"
|
||||||
children:
|
children:
|
||||||
- Controls
|
- Controls
|
||||||
- Jobs
|
- Jobs
|
||||||
|
|||||||
Reference in New Issue
Block a user