try change something at friseur

This commit is contained in:
michael.reiswich
2021-01-30 19:28:15 +01:00
parent ba7addbf43
commit 6d21248761

View File

@@ -88,12 +88,12 @@ export default function friseurShopList(globalData: IGlobalData) {
return;
}
}
mainMenu.AddItem(new UIMenuItem(categoryTitles[type][key], `${type === "props" ? "Prop category." : "Clothing category."}`));
mainMenu.AddItem(new UIMenuItem(categoryTitles[type][key]));
// Create category menu
categoryMenu = new UIMenu("", categoryTitles[type][key].toUpperCase(), new Point(0, 0), bannerSprite.library, bannerSprite.texture);
categoryMenu.Visible = false;
} else {
mainMenu.AddItem(new UIMenuItem(categoryTitles[type][key], `${type === "props" ? "Prop category." : "Clothing category."}`));
mainMenu.AddItem(new UIMenuItem(categoryTitles[type][key]));
// Create category menu
categoryMenu = new UIMenu("", categoryTitles[type][key].toUpperCase(), new Point(0, 0), bannerSprite.library, bannerSprite.texture);
categoryMenu.Visible = false;
@@ -116,7 +116,7 @@ export default function friseurShopList(globalData: IGlobalData) {
if (itemDescription == "NULL") {
itemDescription = "Clothing item.";
}
const tempItem = new UIMenuItem(mp.game.ui.getLabelText(x.data[0].GXT), itemDescription);
const tempItem = new UIMenuItem(mp.game.ui.getLabelText(x.data[0].GXT));
//const tempItem = new UIMenuItem(x.data[0].GXT + " - " + x.id, itemDescription);
tempItem.SetRightLabel(`${item.Price > 0 ? `$${item.Price}` : "FREE"}`);