Красивое УИ телепорта для призрака (#378)

* add: nice ghost teleport ui

* fix: fix unused import

* wtf

* fuck you, search bar

* fix-add: finally
This commit is contained in:
ThereDrD0
2024-06-26 05:13:42 +03:00
committed by GitHub
parent 331eb0ece5
commit e35098f7dd
27 changed files with 835 additions and 239 deletions

View File

@@ -8,20 +8,25 @@ public sealed partial class DepartmentPrototype : IPrototype
{
[IdDataField] public string ID { get; } = default!;
/// <summary>
/// A name string.
/// </summary>
[DataField(required: true)]
public string Name = default!;
/// <summary>
/// A description string to display in the character menu as an explanation of the department's function.
/// </summary>
[DataField("description", required: true)]
[DataField (required: true)]
public string Description = default!;
/// <summary>
/// A color representing this department to use for text.
/// </summary>
[DataField("color", required: true)]
[DataField(required: true)]
public Color Color = default!;
[ViewVariables(VVAccess.ReadWrite),
DataField("roles", customTypeSerializer: typeof(PrototypeIdListSerializer<JobPrototype>))]
[ViewVariables(VVAccess.ReadWrite), DataField(customTypeSerializer: typeof(PrototypeIdListSerializer<JobPrototype>))]
public List<string> Roles = new();
/// <summary>
@@ -34,8 +39,14 @@ public sealed partial class DepartmentPrototype : IPrototype
/// <summary>
/// Departments with a higher weight sorted before other departments in UI.
/// </summary>
[DataField("weight")]
[DataField]
public int Weight { get; private set; } = 0;
/// <summary>
/// A style string references to style in StyleNano.cs
/// </summary>
[DataField]
public string ButtonStyle = default!;
}
/// <summary>