dropdown menu not working
4 Attachment(s)
Hello . The drop down menu from the configuration addon is not working when i mouse over or click .Can you help me with the code or you can tell what are the changes in 8.0 that can make this problem ?
|
1. Have you used an error display addon like bugsack/buggrabber to catch any errors? This will let you know if there are any programmable errors, it will point to ( usually ) the line of code that triggered the error and the trace back to the addon code that called it.
Link: http://www.wowinterface.com/download...5-BugSack.html Link: https://www.wowinterface.com/downloa...ugGrabber.html 2. Have you looked at the several forum posts regarding what has been identified as changed since the BfA Alpha went live months ago ? This will help you understand what and how things have changed that may be causing your problems. Link: http://www.wowinterface.com/forums/f...play.php?f=175 3. With an addon like TauntMaster, I would suspect that the many spell related code changes are the cause. You would have to locate the offending lines and replace them with correct coding. This is almost the norm with each expansion. It could also be connected to the many template objects used. And that was after a quick glance. Using those addons mentioned in item 1 will help identify the offending lines. |
3 Attachment(s)
Hello. thank you for your suggestion to find the bugs . i get some bugs after 1 hour of playing but i don't think the problem with the dropmenu is from this error :
" 22x TauntMaster2\Gui\TauntMasterGUI.lua:183: attempt to index local 'powerColor' (a nil value) TauntMaster2\Gui\TauntMasterGUI.lua:183: in function `TauntMasterGUI_UnitFrames_ResetPowerBar' TauntMaster2\Gui\TauntMasterGUI.lua:195: in function `TauntMasterGUI_UnitFrames_ResetUnitButton' TauntMaster2\Gui\TauntMasterGUI.lua:57: in function `handler' TauntMaster2\Gui\TauntMasterGUI.lua:290: in function <TauntMaster2\Gui\TauntMasterGUI.lua:283> Locals: InCombatSkipped" I think my problem is here : "function Left_Spell_initialize(self,level) local info local tm2numTabs = GetNumSpellTabs() for BookTabs = 1,tm2numTabs do local name,texture,offset,numSpells = GetSpellTabInfo(BookTabs) local currentSpec = GetSpecialization() local currentSpecName = currentSpec and select(2, GetSpecializationInfo(currentSpec)) or select(1, UnitClass("player")) if BookTabs == 1 or name == currentSpecName then if level == 1 then info = UIDropDownMenu_CreateInfo() info.text = (name .. " Submenu") info.value = name info.isTitle = true info.hasArrow = true UIDropDownMenu_AddButton(info, level) end end --print("Spell tab \"" .. name .. "\" contains spells from id " .. offset + 1 .. " through " .. offset + numSpells) for BookSpells = offset + 1,offset + numSpells do --TauntMaster2.db.char.Spellbook[name] = TauntMaster2.db.char.Spellbook[name] or {} local skillName = GetSpellBookItemName(BookSpells, "spell") if BookTabs <=5 then if (IsAttackSpell(BookSpells, "spell")) then --print(tmpspellid , skillName ) end end if ((IsHarmfulSpell(BookSpells, "spell") or IsHelpfulSpell(BookSpells, "spell")) and not (IsPassiveSpell(BookSpells, "spell"))) or (IsAttackSpell(BookSpells, "spell")) then if (IsSpellKnown(select(7, GetSpellInfo(BookSpells, "spell"))) ) then if level == 2 and UIDROPDOWNMENU_MENU_VALUE == name then info = UIDropDownMenu_CreateInfo() info.text = skillName if info.text == TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"] then info.checked = true else info.checked = false end function info.func(button) TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"] = skillName UIDropDownMenu_SetText(LeftButtonDropDown, TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"]) --TauntMasterUnitFrames_Header.Spell1:SetTexture(select(3, GetSpellInfo(TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"]))) print(TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"] ) print(button) end UIDropDownMenu_AddButton(info, level) end end --UIDropDownMenu_AddButton(info, name) end end end local numAccountMacros, numCharacterMacros = GetNumMacros() if level == 1 then info = UIDropDownMenu_CreateInfo() info.text = ("Account Macros Submenu") info.value = "Account Macros" info.isTitle = true info.hasArrow = true UIDropDownMenu_AddButton(info, level) info = UIDropDownMenu_CreateInfo() info.text = ("CharacterMacros Submenu") info.value = "CharacterMacros" info.isTitle = true info.hasArrow = true UIDropDownMenu_AddButton(info, level) end for MacroInfo =1,numAccountMacros do local name = select(1,GetMacroInfo(MacroInfo) ) if level == 2 and UIDROPDOWNMENU_MENU_VALUE == "Account Macros" then info = UIDropDownMenu_CreateInfo() info.text = name info.isTitle = true if info.text == TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"] then info.checked = true else info.checked = false end function info.func(button) TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"] = name UIDropDownMenu_SetText(LeftButtonDropDown, TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"]) --TauntMasterUnitFrames_Header.Spell1:SetTexture(select(3, GetSpellInfo(TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"]))) print(TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"] ) print(button) end UIDropDownMenu_AddButton(info, level) end end for i =1, numCharacterMacros do local cname = select(1,GetMacroInfo(MAX_ACCOUNT_MACROS +i ) ) if level == 2 and UIDROPDOWNMENU_MENU_VALUE == "CharacterMacros" then info = UIDropDownMenu_CreateInfo() info.text = cname info.isTitle = true if info.text == TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"] then info.checked = true else info.checked = false end function info.func(button) TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"] = cname UIDropDownMenu_SetText(LeftButtonDropDown, TauntMaster2.db.char.Spells[TauntMaster2.db.char.id]["LeftButton"]) end UIDropDownMenu_AddButton(info, level) end end end " all that getspell |
Okay, that error that occurs at least 22 times at that point could be stopping the rest of the addon to progress and thus breaking later functionality.
Have a look at this page that explains what the UnityPowerType function returns and how to handle a non existent powerType which is what the error is reporting. If you look at that line of code and those around it you should be able to make the necessary changes. Hopefully once that happens it will work, but possibly it will trigger the next block of errors. Work through then as they appear. Google the command and see if there is an updated blizzard file containing its use and/or the wowpedia site to see if it is updated. Unfortunately there are so many changes to do with Spells and Maps that remembering individual ones is hard to do, unless you come across them. :) |
All times are GMT -6. The time now is 09:19 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI