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