From 0df5f90a432b3e43b259a3ccf03b30c8ef984bd2 Mon Sep 17 00:00:00 2001 From: kookroach <62265045+kookroach@users.noreply.github.com> Date: Sun, 4 Apr 2021 16:22:17 +0200 Subject: [PATCH] fix --- .../Interaction/clothes/ClotheShop.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts b/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts index db35dec2..6d64c95e 100644 --- a/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts +++ b/ReallifeGamemode.Client/Interaction/clothes/ClotheShop.ts @@ -172,7 +172,7 @@ export default function clotheShopList(globalData: IGlobalData) { mainMenu.Item // Fill it - + let clotheUpperMenu; for (const item of value) { if (item.ComponentId == key) { @@ -180,12 +180,13 @@ export default function clotheShopList(globalData: IGlobalData) { mp.gui.chat.push('Key ' + key); mp.gui.chat.push(item); - + if (key === 11 || key === 4 || key === 6) { categoryMenu.AddItem(new UIMenuItem(mp.game.ui.getLabelText(txData[0].data[0].GXT), "")); - let clotheUpperMenu = new UIMenu(" ", mp.game.ui.getLabelText(txData[0].data[0].GXT), new Point(0, 0), bannerSprite.library, bannerSprite.texture); + clotheUpperMenu = new UIMenu(" ", mp.game.ui.getLabelText(txData[0].data[0].GXT), new Point(0, 0), bannerSprite.library, bannerSprite.texture); + clotheUpperMenu.Visible = false; + } - clotheUpperMenu.Visible = false; for (const x of txData) { var itemDescription = (key === 11 ? mp.game.ui.getLabelText(x.undershirt[1].GXT) : " ");