This commit is contained in:
rhailrake
2023-05-04 15:27:20 +06:00
committed by Aviu00
parent 68ffe42dbb
commit b39320ad30
5 changed files with 24 additions and 15 deletions

View File

@@ -52,16 +52,16 @@ public sealed partial class StoreSystem
UpdateUserInterface(user, storeEnt, component);
}
/// <summary>
/// Closes the store UI for everyone, if it's open
/// </summary>
public void CloseUi(EntityUid uid, StoreComponent? component = null)
{
if (!Resolve(uid, ref component))
return;
_ui.TryCloseAll(uid, StoreUiKey.Key);
}
// /// <summary>
// /// Closes the store UI for everyone, if it's open
// /// </summary>
// public void CloseUi(EntityUid uid, StoreComponent? component = null)
// {
// if (!Resolve(uid, ref component))
// return;
//
// _ui.TryCloseAll(uid, StoreUiKey.Key);
// }
/// <summary>
/// Updates the user interface for a store and refreshes the listings