[feat]MeatyOre panel

This commit is contained in:
rhailrake
2023-04-28 06:07:50 +06:00
committed by Aviu00
parent c71ac26fdc
commit 4f6be99853
21 changed files with 2058 additions and 7 deletions

View File

@@ -173,7 +173,7 @@ public sealed partial class StoreSystem
//broadcast event
if (listing.ProductEvent != null)
{
RaiseLocalEvent(listing.ProductEvent);
RaiseLocalEvent(buyer, listing.ProductEvent);
}
//log dat shit.
@@ -226,4 +226,12 @@ public sealed partial class StoreSystem
component.Balance[msg.Currency] -= msg.Amount;
UpdateUserInterface(buyer, uid, component);
}
public void CloseUi(EntityUid user, StoreComponent component)
{
if (!TryComp<ActorComponent>(user, out var actor))
return;
_ui.TryClose(component.Owner, StoreUiKey.Key, actor.PlayerSession);
}
}