[tweak] UI Tweaks (#1001)

* - tweak: update StyleSheetify

* - add: flexbox

* - fix: size of flexbox in launchergui

* - tweak: Profile editor: start.

* - add: categories

* - tweak: help me please with this shi... loadouts

* - fix: container path think

* - tweak: thinks for optimisation

* - add: group selection for loadoutpicker

* - tweak: change position of preview

* - add: reason text

* - fix: Кролькины фиксы

* - fix: кролькины фиксы ч.2

* - fix: кролькины фиксы ч.3

* - кролькины фиксы - финал

* - fix: Ворчливого дедушкины фиксы, удаление старого барахла и пометка wwdp

* - tweak: some ui change for LoadoutCategories and LoadoutEntry

* - ворчливый дед фиксы ч.2

* - fix: очередные кролькины фиксы

* - add: loadout prototype validation

* - fix: description read from edit field
This commit is contained in:
Cinkafox
2026-01-05 00:33:01 +03:00
committed by GitHub
parent d57339f670
commit b2d255cdd2
36 changed files with 1808 additions and 782 deletions

View File

@@ -69,7 +69,7 @@ namespace Content.Server.Database
.HasIndex(p => new { HumanoidProfileId = p.ProfileId, p.TraitName })
.IsUnique();
modelBuilder.Entity<Loadout>()
modelBuilder.Entity<LoadoutItem>()
.HasIndex(p => new { HumanoidProfileId = p.ProfileId, p.LoadoutName })
.IsUnique();
@@ -427,7 +427,7 @@ namespace Content.Server.Database
public List<Job> Jobs { get; } = new();
public List<Antag> Antags { get; } = new();
public List<Trait> Traits { get; } = new();
public List<Loadout> Loadouts { get; } = new();
public List<LoadoutItem> Loadouts { get; } = new();
[Column("pref_unavailable")] public DbPreferenceUnavailableMode PreferenceUnavailable { get; set; }
@@ -472,21 +472,36 @@ namespace Content.Server.Database
public string TraitName { get; set; } = null!;
}
[Serializable]
public partial class Loadout : Shared.Clothing.Loadouts.Systems.Loadout
[Table("loadout")]
public class LoadoutItem
{
public string LoadoutName { get; set; } = null!;
public string? CustomName { get; set; }
public string? CustomDescription { get; set; }
public string? CustomContent { get; set; } // WD EDIT
public string? CustomColorTint { get; set; }
public bool? CustomHeirloom { get; set; }
public int Id { get; set; }
public Profile Profile { get; set; } = null!;
public int ProfileId { get; set; }
public Loadout(
public LoadoutItem(
string loadoutName,
string? customName = null,
string? customDescription = null,
string? customContent = null, // WD EDIT
string? customColorTint = null,
bool? customHeirloom = null
) : base(loadoutName, customName, customDescription, customContent, customColorTint, customHeirloom) { } // WD EDIT
)
{
LoadoutName = loadoutName;
CustomName = customName;
CustomDescription = customDescription;
CustomContent = customContent;
CustomColorTint = customColorTint;
CustomHeirloom = customHeirloom;
}
}
public enum DbPreferenceUnavailableMode