Add loadout names (#31303)
* Add loadout names Did it for AI, breaking change for pgsql + migrations in general. Nothing atm uses it. * the box * Spawning cherry pick * Fix nit * revert * Final cleanup * Real * Name UI fix * Migrations * a * Review * Re-run migrations --------- Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
@@ -1015,6 +1015,13 @@ namespace Content.Client.Lobby.UI
|
||||
_loadoutWindow.RefreshLoadouts(roleLoadout, session, collection);
|
||||
_loadoutWindow.OpenCenteredLeft();
|
||||
|
||||
_loadoutWindow.OnNameChanged += name =>
|
||||
{
|
||||
roleLoadout.EntityName = name;
|
||||
Profile = Profile.WithLoadout(roleLoadout);
|
||||
SetDirty();
|
||||
};
|
||||
|
||||
_loadoutWindow.OnLoadoutPressed += (loadoutGroup, loadoutProto) =>
|
||||
{
|
||||
roleLoadout.AddLoadout(loadoutGroup, loadoutProto, _prototypeManager);
|
||||
|
||||
Reference in New Issue
Block a user