WoW-MogIt / MogIt

World of Warcraft transmogrification assistant
https://www.curseforge.com/wow/addons/mogit
11 stars 15 forks source link

Unable to interact with tabs on the menu #28

Closed Hyvem1nd closed 11 months ago

Hyvem1nd commented 11 months ago

Hello!

So I am having an issue where when I try to click on the 'modules' tab or anything else within that screen where no drop downs will pop up. It is preventing me from looking at any appearance catalogues as a result. Is there a known fix for this?

Hyvem1nd commented 11 months ago

Message: Interface/SharedXML/UIDropDownMenu.lua:91: calling 'GetWindow' on bad self (Usage: local window = self:GetWindow()) Time: Thu Nov 9 21:04:04 2023 Count: 2 Stack: Interface/SharedXML/UIDropDownMenu.lua:91: calling 'GetWindow' on bad self (Usage: local window = self:GetWindow())

string "=[C]": in function GetWindow' [string "@Interface/SharedXML/UIDropDownMenu.lua"]:91: in functionUIDropDownMenu_Initialize' [string "@Interface/SharedXML/UIDropDownMenu.lua"]:1167: in function <Interface/SharedXML/UIDropDownMenu.lua:1024>

string "=[C]": in function ToggleDropDownMenu' [string "@Interface/AddOns/MogIt/Libs/Libra/Dropdown.lua"]:80: in functionToggleMenu' [string "@Interface/AddOns/MogIt/Core/GUI.lua"]:563: in function <Interface/AddOns/MogIt/Core/GUI.lua:557>

Locals: (*temporary) = defined =[C]:-1

asamblersz commented 11 months ago

Hi, where I have to write or copy this?

asamblersz commented 11 months ago

ok soo how can we fix this problem?

Lombra commented 11 months ago

Hi, a new version 3.10.1 is out that should fix this.

Ketrel commented 11 months ago

BTW this is what change in the Wow UI code

I did this git diff -U0 10.1.7 10.2.0 -- UIDropDownMenu.lua

This is the output

diff --git a/Interface/SharedXML/UIDropDownMenu.lua b/Interface/SharedXML/UIDropDownMenu.lua
index a715d766..53b42afb 100644
--- a/Interface/SharedXML/UIDropDownMenu.lua
+++ b/Interface/SharedXML/UIDropDownMenu.lua
@@ -90,0 +91 @@ function UIDropDownMenu_Initialize(frame, initFunction, displayMode, level, menu
+       dropDownList:SetWindow(frame:GetWindow());