mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-17 10:53:57 +01:00
stuff icon
This commit is contained in:
1 parent
61d6d42742
commit
402d054b30
6 files changed
+59
-11
No files matched your search
@@ -388,9 +388,16 @@ export class ServerAPI extends AbstractAPI {
|
||||
|
||||
@Cache()
|
||||
async currencyIcon(id: string) {
|
||||
const item = this.metadata.item(`CurrencyEntity.${id}`);
|
||||
const item = this.metadata.item(id);
|
||||
const stuffUI = item.StuffUI("UIComponent");
|
||||
return this.mediaPrefix(stuffUI.icon!.value);
|
||||
}
|
||||
|
||||
@Cache()
|
||||
async stuffIcon(id: string) {
|
||||
const item = this.metadata.item(id);
|
||||
console.log(id);
|
||||
const stuffUI = item.StuffUI("UIComponent");
|
||||
return this.mediaPrefix(stuffUI.icon!.value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user