|
2020-10-26 10:40
조회: 775
추천: 0
애드온이 업데이트가 안되서 직접 수정해보고싶습니다local addonName, addon = ... local classLoader = addon:NewModule("classLoader", "AceEvent-3.0") local class local L = LibStub("AceLocale-3.0"):GetLocale("bIamPrepared") local _G = _G local tinsert = table.insert local tremove = table.remove local tsort = table.sort local wipe = table.wipe local type = type local pairs = pairs local floor = math.floor local ceil = math.ceil local LoadAddOn = LoadAddOn local PlaySound = PlaySound local function getClassName() local class = select(2, UnitClass('player')) return class:sub(1,1) .. class:sub(2):lower() end ------------------------------------------------------------------------------- -- Frame functions ------------------------------------------------------------------------------- function classLoader:OnInitialize() --addon:Print("classLoader:OnInitialize()") class = getClassName() end function classLoader:OnEnable() --addon:Print("classLoader:OnEnable()") local loaded, message = LoadAddOn(addonName .. '_' .. class); if ( not loaded) then PlaySound(SOUNDKIT.TELL_MESSAGE); --addon:Print("'"..addonName .. '_' .. class.."' Addon Error: "..message); return end end function classLoader:OnDisable() --addon:Print("classLoader:OnDisable()") end function classLoader:GetClassModule() return LibStub("AceAddon-3.0"):GetAddon(addonName .. '_' .. class) end function classLoader:CommonScanSpells(currentActiveSpells) --wipe(currentActiveSpells) -- Specialization spells (Active) local name, texture, offset, numSpells = GetSpellTabInfo(2) for id=1, numSpells do if not IsPassiveSpell(id + offset, "book") then local spellName, _, icon, _, _, _, spellid = GetSpellInfo(id + offset, "book") local slotType, slotid = GetSpellBookItemInfo(id + offset, "book") spellid = addon:GetOriginSpellId(spellid) if slotType == "FLYOUT" then local _, _, numSlots, isKnown = GetFlyoutInfo(slotid) for i=1, numSlots do local foSpellID, foOverrideSpellID, foIsKnown, foSpellName, foSlotSpecID = GetFlyoutSlotInfo(slotid, i) if foIsKnown then tinsert(currentActiveSpells, {foSpellName, GetSpellTexture(foOverrideSpellID), foSpellID}) end end elseif slotType == 'SPELL' then tinsert(currentActiveSpells, {spellName, icon, spellid}) end end end -- racial spells name, texture, offset, numSpells = GetSpellTabInfo(1) -- general skill tab for id=1, numSpells do if not IsPassiveSpell(id + offset, "book") then local spellName, subSpellName, icon, _, _, _, spellid = GetSpellInfo(id + offset, "book") local slotType, slotid = GetSpellBookItemInfo(id + offset, "book") if slotType == 'SPELL' and subSpellName == L["종족 특성"] then tinsert(currentActiveSpells, {spellName, icon, spellid}) end end end return currentActiveSpells end 이런식으로 되어있는데 마법책에 보면 소둠땅전에는 총2칸이던 스킬창이 소둥땅되면서 3칸으로 바뀌어서 3전째인 직업특성 스킬이 표시가안됩니다 그래서 3번째직업특성이 보이게 수정만하면될거 같은데 어떤걸 바꿔하야는지 잘모르겟습니다 알려주시면 감사합니다
EXP
7,179
(72%)
/ 7,401
|
흑빛토끼