WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   nUI: Bug Reports (http://www.wowinterface.com/forums/forumdisplay.php?f=90)
-   -   Atramedes - Sound Bar (http://www.wowinterface.com/forums/showthread.php?t=38529)

Kcrash 01-22-11 04:42 AM

Atramedes - Sound Bar
 
During this fight the sound bar covers my UI on the very bottom. I tried using NUI Movers but it would not let me. It also does this for other fights where there is a bar for the fight. Is there a way to move this at all?

nin 01-22-11 06:44 AM

Try

moveanything or Movepowerbaralt.. both available on this site.

-_-v

Xrystal 01-22-11 07:17 AM

Hmm, must be yet another bar they are sneaking into the game.

If it is at all possible, IE if the bar exists before the fight starts, see if you can get a screenshot with the name of the bar on the screen.

To do that type /framestack and move the mouse of the bar and take the screenshot and then type /framestack to remove the frame information screen.

This will enable Scott to add the frame to nUI's frame management system.

Kcrash 01-22-11 01:44 PM

It's called "PlayerPowerBarAlt"

Xrystal 01-22-11 02:37 PM

1 Attachment(s)
Hmm, I thought Scott had already added that to the /nui movers system already.

Although looking at both nUI5 and nUI6 folders I can't see it mentioned at all.

Time to hunt down my mini movers file ..


Edit:

I haven't fully tested this yet since renaming the folder/project but code wise it should still be working as I envisioned.

I have set up PlayerPowerBarAlt and the TutorialAlertFrame ( or however it was spelt ) by default. The addon however lets you create movers on the fly if nUI isn't already creating them.

It works in a similar way to MoveAnything except it uses nUI's mover system to do all the work so that using /nui movers will allow you to move the frame once it has been added to the system.

It is not intended to be a permanent project, at least at the moment anyway, but it will allow people that are hitting these problems now to move that frame outta the way so they can continue playing.

The PlayerPowerBarAlt is the same bar used in the twilight highlands quest that shows how much stomach acid you are being affected by.

Hopefully the zip file attached doesn't still cause problems like before but below is the full code in the lua file.

Code:


------------------------------------------------------------------------------------
-- Name : nUI_Plugin_CustomMovers                                         
-- Copyright : Tina Kirby AKA Xrystal (C) 2009/2010 All Rights Reserved     
-- Contact : xrystal@swangen.co.uk                                         
-- Download Sites :                                                         
-- Version : 1.01.00 - New
------------------------------------------------------------------------------------

--[[ Use Addon Wide Data Table ]]--
local addonName,addonData = ...

local f = CreateFrame("Frame","PCM_Frame",UIParent);
f:SetParent(UIParent);
f:SetPoint("CENTER");

-- Savable list of frames we want to be able to move within the nUI interface
MovableFrames = {
        [1] = "TutorialFrameAlertButton",
        [2] = "PlayerPowerBarAlt",
};

-- Temporary list of frames removed from the above list
backupList = {
};

local function InitialiseList(self)
        for i,v in ipairs(MovableFrames) do
                local f = _G[v];
                local n = v.."_Mover";
                f:SetParent(nil);
                f:SetParent(self);
                f:SetPoint("CENTER");
                nUI_Movers:lockFrame(f,true,n);
        end       
end

local function AddFrameToList(f)
        -- If this isn't a valid frame then don't go any further
        local frame = _G[f];
        if ( not frame ) then return end
       
        DEFAULT_CHAT_FRAME:AddMessage("Adding ", f, " to list of controlled frames");
        tinsert(MovableFrames,f);
end

local function RemoveFrameFromList(f)

        -- Add frame to remove to backupList just in case
        tinsert(backupList,f);
       
        -- Remove frame from movable list
        tremove(MovableFrames,f);
end

local function DisplayList()
        print("Currently controlled frames")
        for i,v in ipairs(MovableFrames) do
                print(v);
        end
end

local function RefreshList()

        -- List of frames that need to be removed
        local removalList = {};
       
        -- Validate contents of list
        for i,v in ipairs(MovableFrames) do
                local f = _G[v];
                if ( not f ) then
                        tinsert(removalList,v);
                end
        end               
       
        -- Remove invalid frames from MovableFrames list
        for i,v in ipairs(removalList) do
                tremove(MovableFrames,v);
        end
       
end

local function ClearList()

        -- Fill Backup List with Movable List contents - just in case
        for i,v in ipairs(MovableFrames) do
                tinsert(backupList,v);
        end                       

        -- Empty Movable Frame List
        MovableFrames = {};
       
end

local function RestoreList()

        -- Fill Movable List with Backup List contents
        for i,v in ipairs(backupList) do
                tinsert(MovableFrames,v);
        end                       

        -- Empty Backup List
        backupList = {};       
end

local function ToggleMoverFrames(show)
        for i,v in ipairs(MovableFrames) do
                local f = _G[v];
                local n = _G[v.."_Mover"];
                if ( n ) then
                        if ( not show ) then
                                n:Hide();
                        else
                                n:Show();
                        end
                elseif ( f ) then
                        if ( not show ) then
                                f:Hide();
                        else
                                f:Show();
                        end
                else
                        print(v.."_Mover"," doesn't exist at present");
                end
        end                               
end

local function ListCommands()
        DEFAULT_CHAT_FRAME:AddMessage("nUI: Plugin (Custom Movers) slash commands");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm list - List frames currently controlled by this addon");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm show - Shows the display of frames currently controlled by this addon");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm hide - Hides the display of frames currently controlled by this addon");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm add FrameName - Adds FrameName to the controlled list");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm remove FrameName - Removes FrameName from the controlled list");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm clear - Empties the movable frames list entirely");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm restore - Reverts the last clear and remove actions");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm refresh - Removes frames no longer in existence");
end

local function SlashCommands(msg)

        -- Separate msg into argument list
        local args = {};
        for word in string.gmatch(msg,"[^%s]+") do
                table.insert(args,word);
        end
       
        -- Turn command into lower case
        if ( args[1] ) then args[1] = string.lower(args[1]); end

        if ( args[1] == "list" ) then
                DisplayList();
        elseif ( args[1] == "toggle" ) then
                ToggleMoverFrames();
        elseif ( args[1] == "refresh" ) then
                RefreshList();
        elseif ( args[1] == "clear" ) then
                ClearList();
        elseif ( args[1] == "restore" ) then
                RestoreList();
        elseif ( args[1] == "add" and args[2] ~= nil ) then
                AddFrameToList(args[2]);
        elseif ( args[1] == "remove" and args[2] ~= nil ) then
                RemoveFrameFromList(args[2]);
        else
                ListCommands();
        end
       
end

local function InitialiseAddon(self)
        SLASH_PTMCmd1 = '/pcm';
        SlashCmdList['PCMCmd'] = SlashCommands;
        DEFAULT_CHAT_FRAME:AddMessage("nUI: Plugin (Custom Movers) loaded.  Use /pcm to list options available");
end

local function OnEvent(self,event,...)
        local arg1,arg2,arg3,arg4,arg5,arg6 = ...;
        if ( event == "ADDON_LOADED" and arg1 == addonName ) then
                InitialiseAddon(self);
        elseif ( event == "PLAYER_ENTERING_WORLD" ) then               
                InitialiseList(self);
                self:UnregisterEvent(event);
        end
end

--[[ Register the events we want to watch ]]--
f:SetScript( "OnEvent", OnEvent );
f:RegisterEvent( "ADDON_LOADED" );
f:RegisterEvent( "PLAYER_ENTERING_WORLD" );


Kcrash 01-22-11 04:57 PM

what about a plug in or add on to make it where the guild achievment announcements are spawned......

when it happens they usually spawn right on top of the macro bars as well

Xrystal 01-22-11 05:35 PM

That frame is covered by the /nui movers command.

If you type that and hover over the colored boxes you should see one with a name that represents the frame it allows you to move.

Once you have finished with it just type it again to turn the mover frames off.

Kcrash 01-25-11 10:39 PM

downloaded the plugin and tried moving the sound bar and it did not let me. Just still sits in the same ole annoying spot. Plz help =(

Xrystal 01-26-11 01:52 AM

2 Attachment(s)
did you type /nui movers to activate the mover function ? If not do that and it should work.

Edit:

My apologies. When I renamed the folder and files I forgot to change the toc to reflect things..

Here's the new zip file and a screenshot of it working now.

Kcrash 01-26-11 02:28 AM

TY Xrystal!!! I don't care what scott says about you.....your the best! :D

spiel2001 01-26-11 04:37 AM

Damn! Was I using my outside voice again?

/kicks the cat

XokEE 01-31-11 01:34 AM

Thank you so much for this Xrystal! You rock! :banana:

Chancellor 02-10-11 08:23 PM

still cant move the sound bar
 
tried copying and extracting temp fix to move it, but it says the file is empty

Xrystal 02-11-11 01:42 AM

*grrr* grumbles ..

Okay, lets do this the long way round rofl..

1. Create a folder called nUI_Plugin_CustomMovers in AddOns folder
2. Create a text file in that folder called nUI_Plugin_CustomMovers.toc and paste the following into it

Code:

## Interface: 40000
## Title: nUI: Plugin [|cffeda55fCustom Movers|r]
## Author: Tina Kirby AKA Xrystal (C) 2010/2011 All Rights Reserved
## Notes: Temporary Movers for frames that haven't been added to the nUI movers system yet.
## Version: 1.01.00
## eMail: xrystal@swangen.co.uk
## RequiredDeps: nUI
## DefaultState: Enabled
## LoadOnDemand: 0
## SavedVariables : MovableFrames
## SavedVariablesPerCharacter: 

nUI_Plugin_CustomMovers.lua

3. Create a text file in that folder called nUI_Plugin_CustomMovers.lua and paste the following into it

Code:


------------------------------------------------------------------------------------
-- Name : nUI_Plugin_CustomMovers                                         
-- Copyright : Tina Kirby AKA Xrystal (C) 2009/2010 All Rights Reserved     
-- Contact : xrystal@swangen.co.uk                                         
-- Download Sites :                                                         
-- Version : 1.01.00 - New
------------------------------------------------------------------------------------

--[[ Use Addon Wide Data Table ]]--
local addonName,addonData = ...

local f = CreateFrame("Frame","PCM_Frame",UIParent);
f:SetParent(UIParent);
f:SetPoint("CENTER");

-- Savable list of frames we want to be able to move within the nUI interface
MovableFrames = {
        [1] = "TutorialFrameAlertButton",
        [2] = "PlayerPowerBarAlt",
};

-- Temporary list of frames removed from the above list
backupList = {
};

local function InitialiseList(self)
        for i,v in ipairs(MovableFrames) do
                local f = _G[v];
                local n = v.."_Mover";
                f:SetParent(nil);
                f:SetParent(self);
                f:SetPoint("CENTER");
                nUI_Movers:lockFrame(f,true,n);
        end       
end

local function AddFrameToList(f)
        -- If this isn't a valid frame then don't go any further
        local frame = _G[f];
        if ( not frame ) then return end
       
        DEFAULT_CHAT_FRAME:AddMessage("Adding ", f, " to list of controlled frames");
        tinsert(MovableFrames,f);
end

local function RemoveFrameFromList(f)

        -- Add frame to remove to backupList just in case
        tinsert(backupList,f);
       
        -- Remove frame from movable list
        tremove(MovableFrames,f);
end

local function DisplayList()
        print("Currently controlled frames")
        for i,v in ipairs(MovableFrames) do
                print(v);
        end
end

local function RefreshList()

        -- List of frames that need to be removed
        local removalList = {};
       
        -- Validate contents of list
        for i,v in ipairs(MovableFrames) do
                local f = _G[v];
                if ( not f ) then
                        tinsert(removalList,v);
                end
        end               
       
        -- Remove invalid frames from MovableFrames list
        for i,v in ipairs(removalList) do
                tremove(MovableFrames,v);
        end
       
end

local function ClearList()

        -- Fill Backup List with Movable List contents - just in case
        for i,v in ipairs(MovableFrames) do
                tinsert(backupList,v);
        end                       

        -- Empty Movable Frame List
        MovableFrames = {};
       
end

local function RestoreList()

        -- Fill Movable List with Backup List contents
        for i,v in ipairs(backupList) do
                tinsert(MovableFrames,v);
        end                       

        -- Empty Backup List
        backupList = {};       
end

local function ToggleMoverFrames(show)
        for i,v in ipairs(MovableFrames) do
                local f = _G[v];
                local n = _G[v.."_Mover"];
                if ( n ) then
                        if ( not show ) then
                                n:Hide();
                        else
                                n:Show();
                        end
                elseif ( f ) then
                        if ( not show ) then
                                f:Hide();
                        else
                                f:Show();
                        end
                else
                        print(v.."_Mover"," doesn't exist at present");
                end
        end                               
end

local function ListCommands()
        DEFAULT_CHAT_FRAME:AddMessage("nUI: Plugin (Custom Movers) slash commands");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm list - List frames currently controlled by this addon");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm show - Shows the display of frames currently controlled by this addon");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm hide - Hides the display of frames currently controlled by this addon");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm add FrameName - Adds FrameName to the controlled list");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm remove FrameName - Removes FrameName from the controlled list");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm clear - Empties the movable frames list entirely");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm restore - Reverts the last clear and remove actions");
        DEFAULT_CHAT_FRAME:AddMessage("/pcm refresh - Removes frames no longer in existence");
end

local function SlashCommands(msg)

        -- Separate msg into argument list
        local args = {};
        for word in string.gmatch(msg,"[^%s]+") do
                table.insert(args,word);
        end
       
        -- Turn command into lower case
        if ( args[1] ) then args[1] = string.lower(args[1]); end

        if ( args[1] == "list" ) then
                DisplayList();
        elseif ( args[1] == "toggle" ) then
                ToggleMoverFrames();
        elseif ( args[1] == "refresh" ) then
                RefreshList();
        elseif ( args[1] == "clear" ) then
                ClearList();
        elseif ( args[1] == "restore" ) then
                RestoreList();
        elseif ( args[1] == "add" and args[2] ~= nil ) then
                AddFrameToList(args[2]);
        elseif ( args[1] == "remove" and args[2] ~= nil ) then
                RemoveFrameFromList(args[2]);
        else
                ListCommands();
        end
       
end

local function InitialiseAddon(self)
        SLASH_PTMCmd1 = '/pcm';
        SlashCmdList['PCMCmd'] = SlashCommands;
        DEFAULT_CHAT_FRAME:AddMessage("nUI: Plugin (Custom Movers) loaded.  Use /pcm to list options available");
end

local function OnEvent(self,event,...)
        local arg1,arg2,arg3,arg4,arg5,arg6 = ...;
        if ( event == "ADDON_LOADED" and arg1 == addonName ) then
                InitialiseAddon(self);
        elseif ( event == "PLAYER_ENTERING_WORLD" ) then               
                InitialiseList(self);
                self:UnregisterEvent(event);
        end
end

--[[ Register the events we want to watch ]]--
f:SetScript( "OnEvent", OnEvent );
f:RegisterEvent( "ADDON_LOADED" );
f:RegisterEvent( "PLAYER_ENTERING_WORLD" );

4. Save the files if you haven't already and log into WoW. You should see the addon listed.

Chancellor 02-11-11 08:20 AM

so i have the custom playerpower bar alt, installed succesfully, but when i hit /nui movers the icon similar to yours on your post does not show up.

Xrystal 02-11-11 10:08 AM

Hmm it might have got hidden behind another frame. If you can remember where it usually appears when it comes up on the screen is there another movers frame around that spot ? If so try moving it to see if another one is underneath it.

Chancellor 02-11-11 10:18 AM

Nothing underneath it, checked a few times, even went back in to wipe a few times with atramedes to see where the frame was and couldnt move it. tried /nui movers while in combat as well

Xrystal 02-12-11 07:14 AM

Anyone else that has done that fight had problems getting it to work with the Atramedes bar ? I haven't managed to kill a boss yet in a single raid to know who is let alone get to him rofl so haven't been able to test particular bars personally.

The testing I did was from the highlands acid quest which I have been able to test several times as I level my girls up to 85.. have another at 83 and another sitting at 82 at the moment and a fresh 85 that has only started highlands questing after hitting 85 rofl.

cdahman 05-12-11 11:20 AM

I've had a real bad problem with the Atramedes bar it shows up right on top of my main spell cast bar. I'm a button pusher/clicker healer and it causes a lot of grief on that fight. Is there any work around?

spiel2001 05-12-11 03:38 PM

http://www.wowinterface.com/forums/s...ad.php?t=38529


All times are GMT -6. The time now is 11:54 AM.

vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC