lithammer / NeavUI

Development branch of Neav UI
http://www.wowinterface.com/downloads/info13981-NeavUI.html
MIT License
94 stars 42 forks source link

Slash /neav command to move stuff around not working #300

Closed Astug closed 4 years ago

Astug commented 4 years ago

17x ...ddOns\oUF_Neav\modules\oUF_MovableFrames\movable.lua:470: attempt to call method 'SetBackdrop' (a nil value) [string "@oUF_Neav\modules\oUF_MovableFrames\movable.lua"]:470: in function <...ddOns\oUF_Neav\modules\oUF_MovableFrames\movable.lua:461> [string "@oUF_Neav\modules\oUF_MovableFrames\movable.lua"]:1012: in function ?' [string "@FrameXML\ChatFrame.lua"]:5073: in functionChatEdit_ParseText' [string "@FrameXML\ChatFrame.lua"]:4737: in function ChatEdit_SendText' [string "@FrameXML\ChatFrame.lua"]:4773: in functionChatEdit_OnEnterPressed'

Locals: obj = oUF_Neav_Player { ReadyCheckIndicator = oUF_Neav_PlayerReadyCheckIcon { } HONOR_LEVEL_UPDATE = defined @oUF\elements\pvpindicator.lua:109 UNIT_SPELLCAST_CHANNEL_START = defined @oUF\elements\castbar.lua:102 unitEvents =

{ } PhaseIndicator = oUF_Neav_PlayerPhaseIcon { } UNIT_MAXHEALTH =
{ } PLAYER_UPDATE_RESTING =
{ } UNIT_POWER_FREQUENT = defined @oUF\elements\power.lua:249 UNIT_LEVEL = defined @oUF_Neav\core.lua:396 PowerPrediction =
{ } UPDATE_SHAPESHIFT_FORM = defined @oUF_Neav\core.lua:396 UNIT_POWER_BAR_SHOW = defined @oUF\elements\power.lua:249 UNIT_SPELLCAST_NOT_INTERRUPTIBLE = defined @oUF\elements\castbar.lua:290 PLAYER_REGEN_DISABLED =
{ } PLAYER_TOTEM_UPDATE = defined @oUF_Neav\core.lua:396 style = "oUF_Neav" PvPIndicator = oUF_Neav_PlayerPvPIcon { } ACTIVE_TALENT_GROUP_CHANGED = defined @oUF_Neav\modules\oUF_LootSpecIndicator\lootspecindicator.lua:75 UNIT_EXITED_VEHICLE =
{ } MainPowerPrediction = oUF_Neav_PlayerPowerPowerPrediction { } UNIT_CONNECTION = defined @oUF\elements\portrait.lua:87 UNIT_HEAL_PREDICTION = defined @oUF\elements\healthprediction.lua:197 PLAYER_LOGIN = defined @oUF_Neav\modules\oUF_LootSpecIndicator\lootspecindicator.lua:75 statusSign = -1 unit = "player" UNIT_SPELLCAST_DELAYED = defined @oUF\elements\castbar.lua:184 StatusFlash = oUF_Neav_PlayerStatusFlash { } UNIT_SPELLCAST_STOP =
{ } UNIT_AURA = defined @oUF_Neav\modules\portraittimers.lua:110 LootSpecIndicator = oUF_Neav_PlayerSpecIcon { } IsTargetFrame = false UNIT_ENTERING_VEHICLE = defined @oUF_Neav\core.lua:396 Name = oUF_Neav_PlayerName { } UNIT_PORTRAIT_UPDATE = defined @oUF\elements\portrait.lua:87 HealthPrediction =
{ } __tags =
{ } UNIT_ENTERED_VEHICLE =
{ } UNIT_POWER_BAR_HIDE = defined @oUF\elements\power.lua:249 UNIT_SPELLCAST_INTERRUPTIBLE = defined @oUF\elements\castbar.lua:290 UNIT_MAXPOWER = defined @oUF\elements\power.lua:249 UNIT_TARGET = defined @oUF_Neav\modules\smartthreat.lua:41 CINEMATIC_STOP = defined @oUF_Neav\core.lua:396 PvPTimer = oUF_Neav_PlayerPvPTimer { } GroupRoleIndicator = oUF_Neav_PlayerGroupRoleIcon { } Texture = oUF_Neav_PlayerFrameTexture { } UNIT_SPELLCAST_SUCCEEDED = defined @oUF\elements\powerprediction.lua:129 PARTY_MEMBER_ENABLE = defined @oUF_Neav\modules\offline.lua:18 PARTY_LEADER_CHANGED = defined @oUF\elements\leaderindicator.lua:59 Power = oUF_Neav_PlayerPower { } UNIT_HEAL_ABSORB_AMOUNT_CHANGED = defined @oUF\elements\healthprediction.lua:197 PLAYER_SPECIALIZATION_CHANGED = defined @oUF_Neav\core.lua:396 PLAYER_LOOT_SPEC_UPDATED = defined @oUF_Neav\modules\oUF_LootSpecIndicator\lootspecindicator.lua:75 UNIT_THREAT_SITUATION_UPDATE = defined @oUF_Neav\modules\smartthreat.lua:41 UNIT_PHASE = defined @oUF\elements\phaseindicator.lua:102 UNIT_HEALTH =
{ } Health = oUF_Neav_PlayerHealth { } RAID_TARGET_UPDATE = defined @oUF\elements\raidtargetindicator.lua:62 PORTRAITS_UPDATED = defined @oUF\elements\portrait.lua:87 UNIT_MODEL_CHANGED = defined @oUF\elements\portrait.lua:87 NotHere = oUF_Neav_PlayerNotHere { } UNIT_FACTION = <functio

lithammer commented 4 years ago

This is a duplicate of https://github.com/lithammer/NeavUI/issues/296 which has already been fixed. Unfortunately I haven't uploaded a release on WoWI including the fix yet.

Depending on how handy you are, you can apply the fix manually. But my plan is to upload a new release today-ish.

diff --git a/Interface/AddOns/oUF_Neav/modules/oUF_MovableFrames/movable.lua b/Interface/AddOns/oUF_Neav/modules/oUF_MovableFrames/movable.lua
index 1d2475ca..99efdc74 100644
--- a/Interface/AddOns/oUF_Neav/modules/oUF_MovableFrames/movable.lua
+++ b/Interface/AddOns/oUF_Neav/modules/oUF_MovableFrames/movable.lua
@@ -463,7 +463,7 @@ do
        if(not target:GetCenter()) then return end
        if(backdropPool[target]) then return backdropPool[target] end

-       local backdrop = CreateFrame"Frame"
+       local backdrop = CreateFrame("Frame", nil, UIParent, "BackdropTemplate")
        backdrop:SetParent(UIParent)
        backdrop:Hide()