Skip to content

Commit

Permalink
Fix bugged game menu on Retail
Browse files Browse the repository at this point in the history
  • Loading branch information
seblindfors committed Oct 23, 2023
1 parent 0539444 commit 334d67b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ConsolePort/ConsolePort.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ConsolePort_Menu/Menus/GameMenuFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 334d67b

Please sign in to comment.