From 334d67bcc9a167495d9f41f3eabdf6e3fa7de323 Mon Sep 17 00:00:00 2001 From: Sebastian Lindfors Date: Mon, 23 Oct 2023 17:15:21 +0200 Subject: [PATCH] Fix bugged game menu on Retail --- ConsolePort/ConsolePort.toc | 2 +- ConsolePort_Menu/Menus/GameMenuFrame.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ConsolePort/ConsolePort.toc b/ConsolePort/ConsolePort.toc index ba624001..231074f3 100644 --- a/ConsolePort/ConsolePort.toc +++ b/ConsolePort/ConsolePort.toc @@ -6,7 +6,7 @@ ## Title: Console Port ## Notes: Game controller addon ## AddonCompartmentFunc: ConsolePort -## Version: 2.7.1 +## Version: 2.7.2 ## Author: Sebastian Lindfors ## X-Website: https://github.com/seblindfors/ConsolePort diff --git a/ConsolePort_Menu/Menus/GameMenuFrame.lua b/ConsolePort_Menu/Menus/GameMenuFrame.lua index f2e99714..a10b4d61 100644 --- a/ConsolePort_Menu/Menus/GameMenuFrame.lua +++ b/ConsolePort_Menu/Menus/GameMenuFrame.lua @@ -7,6 +7,7 @@ do -- Initiate frame local hideMenuHook = {hidemenu = true}; local PLAYER_CLASS = select(2, UnitClass('player')) local IsClassicGameVersion = CPAPI.IsClassicVersion or CPAPI.IsClassicEraVersion or nil; + local GameVersionHasCollections = CPAPI.IsRetailVersion or CPAPI.IsClassicVersion or nil; LibStub('Carpenter')(Menu, { Character = { @@ -164,7 +165,7 @@ do -- Initiate frame self.Icon:SetTexture([[Interface\Spellbook\Spellbook-Icon]]) end; }; - Collections = CPAPI.IsRetailVersion or CPAPI.IsClassicVersion and { + Collections = GameVersionHasCollections and { _ID = 5; _Type = 'Button'; _Setup = baseTemplates;