Гойда

This commit is contained in:
Aviu00
2024-01-18 10:52:41 +03:00
parent 587195e7dd
commit 7bfdbf7d47
8 changed files with 12 additions and 15 deletions

View File

@@ -1,10 +1,9 @@
using System.Numerics;
using System.Text; using System.Text;
using Robust.Client.GameObjects;
using Robust.Client.Graphics; using Robust.Client.Graphics;
using Robust.Client.UserInterface; using Robust.Client.UserInterface;
using Robust.Client.UserInterface.RichText; using Robust.Client.UserInterface.RichText;
using Robust.Shared.Collections; using Robust.Shared.Collections;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility; using Robust.Shared.Utility;
namespace Content.Client.White.UserInterface.Controls; namespace Content.Client.White.UserInterface.Controls;
@@ -51,7 +50,7 @@ internal struct ChatRichTextEntry
if (node.Name == null) if (node.Name == null)
continue; continue;
if (!_tagManager.TryGetMarkupTag(node.Name, out var tag) || !tag.TryGetControl(node, out var control)) if (!_tagManager.TryGetMarkupTag(node.Name, null, out var tag) || !tag.TryGetControl(node, out var control))
continue; continue;
parent.Children.Add(control); parent.Children.Add(control);
@@ -251,7 +250,7 @@ internal struct ChatRichTextEntry
return node.Value.StringValue ?? ""; return node.Value.StringValue ?? "";
//Skip the node if there is no markup tag for it. //Skip the node if there is no markup tag for it.
if (!_tagManager.TryGetMarkupTag(node.Name, out var tag)) if (!_tagManager.TryGetMarkupTag(node.Name, null, out var tag))
return ""; return "";
if (!node.Closing) if (!node.Closing)

View File

@@ -1,4 +1,5 @@
using System.Diagnostics.Contracts; using System.Diagnostics.Contracts;
using System.Numerics;
using Robust.Client.Graphics; using Robust.Client.Graphics;
using Robust.Client.UserInterface; using Robust.Client.UserInterface;
using Robust.Client.UserInterface.RichText; using Robust.Client.UserInterface.RichText;
@@ -44,7 +45,7 @@ public class ChatRichTextLabel : Control
var font = _getFont(); var font = _getFont();
_entry.Update(font, availableSize.X * UIScale, UIScale); _entry.Update(font, availableSize.X * UIScale, UIScale);
return (_entry.Width / UIScale, _entry.Height / UIScale); return new Vector2(_entry.Width / UIScale, _entry.Height / UIScale);
} }
protected override void Draw(DrawingHandleScreen handle) protected override void Draw(DrawingHandleScreen handle)

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Utility;
namespace Content.Server.Worldgen.Components; namespace Content.Server.Worldgen.Components;
[RegisterComponent] [RegisterComponent]
public sealed class BlueprintPlacerComponent : Component public sealed partial class BlueprintPlacerComponent : Component
{ {
[DataField("blueprint", required: true, customTypeSerializer: typeof(ResPathSerializer))] [DataField("blueprint", required: true, customTypeSerializer: typeof(ResPathSerializer))]
public ResPath Blueprint = default!; public ResPath Blueprint = default!;
@@ -15,7 +15,7 @@ public sealed class BlueprintPlacerComponent : Component
/// The components that get added to the target grid. /// The components that get added to the target grid.
/// </summary> /// </summary>
[DataField("components", required: true)] [DataField("components", required: true)]
public ComponentRegistry Components { get; } = default!; public ComponentRegistry Components { get; set; } = default!;
//TODO: Get someone to make this a method on componentregistry that does it Correctly. //TODO: Get someone to make this a method on componentregistry that does it Correctly.
/// <summary> /// <summary>

View File

@@ -2,7 +2,7 @@ namespace Content.Server.Worldgen;
[RegisterComponent] [RegisterComponent]
public sealed class StructurePlacementComponent : Component public sealed partial class StructurePlacementComponent : Component
{ {
/// <summary> /// <summary>
/// The structures to place into the world. /// The structures to place into the world.
@@ -21,7 +21,7 @@ public sealed class StructurePlacementComponent : Component
/// A single structure's placement config. /// A single structure's placement config.
/// </summary> /// </summary>
[DataDefinition] [DataDefinition]
public sealed class StructureConfig public sealed partial class StructureConfig
{ {
/// <summary> /// <summary>
/// The entity to spawn into the world. /// The entity to spawn into the world.

View File

@@ -1,4 +1,5 @@
using System.Linq; using System.Linq;
using System.Numerics;
using Content.Server.Administration.Logs; using Content.Server.Administration.Logs;
using Content.Server.Worldgen.Components; using Content.Server.Worldgen.Components;
using Content.Server.Worldgen.Tools; using Content.Server.Worldgen.Tools;

View File

@@ -1,6 +1,6 @@
reflect-shot = Отразил! reflect-shot = Отразил!
carry-verb = Тащить на руках carry-verb = Тащить на руках
chat-manager-entity-say-god-wrap-message = { $entityName } командует, "[color={ $color }]{ $message }[/color]" chat-manager-entity-say-god-wrap-message = [BubbleHeader][bold]{$entityName}[/bold][/BubbleHeader] командует, "[BubbleContent][color={ $color }][bold]{$message}[/bold][/color][/BubbleContent]"
eorstats-bloodlost-total = { $bloodLost } единиц крови было потеряно в этом раунде! eorstats-bloodlost-total = { $bloodLost } единиц крови было потеряно в этом раунде!
eorstats-cuffedtime-hasusername = { $username } под именем { $name } провел(а) { $timeCuffedMinutes } минут в наручниках в этом раунде! Что он натворил? eorstats-cuffedtime-hasusername = { $username } под именем { $name } провел(а) { $timeCuffedMinutes } минут в наручниках в этом раунде! Что он натворил?
eorstats-cuffedtime-hasnousername = { $name } провел(а) { $timeCuffedMinutes } минут в наручниках в этом раунде! Что он натворил? eorstats-cuffedtime-hasnousername = { $name } провел(а) { $timeCuffedMinutes } минут в наручниках в этом раунде! Что он натворил?

View File

@@ -154,8 +154,6 @@
entries: entries:
FloorAsteroidCoarseSand0: FloorAsteroidCoarseSand0:
- id: AsteroidRockMining - id: AsteroidRockMining
- type: GCAbleObject
queue: SpaceDebris
- type: IFF - type: IFF
flags: HideLabel flags: HideLabel
color: "#d67e27" color: "#d67e27"

View File

@@ -1,4 +1,4 @@
- type: entity - type: entity
id: BaseScrapDebris id: BaseScrapDebris
parent: BaseDebris parent: BaseDebris
name: Scrap Debris name: Scrap Debris
@@ -133,8 +133,6 @@
prob: 0.03 prob: 0.03
- id: SalvageMobSpawner - id: SalvageMobSpawner
prob: 0.7 prob: 0.7
- type: GCAbleObject
queue: SpaceDebris
- type: IFF - type: IFF
flags: HideLabel flags: HideLabel
color: "#88b0d1" color: "#88b0d1"