UID:60843511494 帖
2020-04-26 18:54
编辑了。。。。39行看成59行了 - -
已编辑
已编辑
function P:GearMenu() if not IsAddOnLoaded("GearMenu") then return end if not NDuiPlus["GearMenu"] then return end local function UpdateTexture(slot) local texture = slot:GetNormalTexture() if texture then texture:SetTexCoord(unpack(DB.TexCoord)) P:SetInside(texture,2,2) end end hooksecurefunc(_G.rggm.uiHelper, "UpdateSlotTextureAttributes", UpdateTexture) local function reskinGear(slot) slot:SetBackdrop(nil) slot.SetBackdrop = P.Dummy local bg = F.SetBD(slot) P:SetInside(bg) P:SetInside(slot.cooldownOverlay) P:SetInside(slot.highlightFrame) UpdateTexture(slot) end local function delayFunc() for i = 1, 20 do local gearSlot = _G["GM_GearBarSlot_"..i] if gearSlot then reskinGear(gearSlot) end local changeSlot = _G["GM_ChangeMenuSlot_"..i] if changeSlot then reskinGear(changeSlot) end end end C_Timer.After(.5, delayFunc)end![[ac:羡慕]](https://img4.nga.cn/ngabbs/post/smile/ac37.png)
![[:36]](https://img4.nga.cn/ngabbs/post/smile/16.gif)
已编辑
已编辑
已编辑
登录后可以回复