Thread Tools Display Modes
Old 12-29-11, 04:37 PM   #1
reddrumjay
A Black Drake
Join Date: Apr 2009
Posts: 85
Modding PvP icon

Scott, where in the code can I find the placement of the PvP icon at the top of the minimap? It slightly overlaps the action bar, and I click it all the time during PvP combat. It is driving me nuts. I want to move it down and over to the side.
__________________
Murphy's Law of Combat: Always remember your weapon was made by the lowest bidder.

reddrumjay is offline  
Old 12-29-11, 05:03 PM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Look for this code block in [ Interface > AddOns > nUI > Integration > nUI_Minimap.lua ]

Code:
        MiniMapBattlefieldFrame:SetParent( Minimap );
        MiniMapBattlefieldFrame:SetScale( 0.8 );
        MiniMapBattlefieldFrame:ClearAllPoints();
        MiniMapBattlefieldFrame:RegisterForDrag();
        MiniMapBattlefieldFrame:SetScript( "OnDragStart", nil );
        MiniMapBattlefieldFrame:SetScript( "OnDragStop", nil );
        MiniMapBattlefieldFrame:SetPoint( "BOTTOMRIGHT", MiniMapWorldMapButton, "TOPLEFT", 2, -12 );
        MiniMapBattlefieldFrame:SetFrameStrata( Minimap:GetFrameStrata() );
        MiniMapBattlefieldFrame:SetFrameLevel( Minimap:GetFrameLevel()+5 );

        MiniMapLFGFrame:SetParent( Minimap );
        MiniMapLFGFrame:SetScale( 0.8 );
        MiniMapLFGFrame:ClearAllPoints();
        MiniMapLFGFrame:RegisterForDrag();
        MiniMapLFGFrame:SetScript( "OnDragStart", nil );
        MiniMapLFGFrame:SetScript( "OnDragStop", nil );
        MiniMapLFGFrame:SetPoint( "BOTTOM", Minimap, "TOP", 0, -10 );
        MiniMapLFGFrame:SetFrameStrata( Minimap:GetFrameStrata() );
        MiniMapLFGFrame:SetFrameLevel( Minimap:GetFrameLevel()+5 );

__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Old 01-11-12, 12:39 AM   #3
reddrumjay
A Black Drake
Join Date: Apr 2009
Posts: 85
OK... so I went one step further and made it draggable. MUCH easier than trying to figure out what numbers to put in. Posting here so I can find it easily to replace code in future patches:

Code:
MiniMapBattlefieldFrame:SetParent( Minimap );
MiniMapBattlefieldFrame:SetScale( 0.8 );
MiniMapBattlefieldFrame:ClearAllPoints();
MiniMapBattlefieldFrame:SetMovable(true)
MiniMapBattlefieldFrame:EnableMouse(true)
MiniMapBattlefieldFrame:RegisterForDrag("LeftButton");
MiniMapBattlefieldFrame:SetScript( "OnDragStart", frame.StartMoving );
MiniMapBattlefieldFrame:SetScript( "OnDragStop", frame.StopMovingOrSizing );
MiniMapBattlefieldFrame:SetPoint( "BOTTOMRIGHT", MiniMapWorldMapButton, "TOPLEFT", 2, -12 );
MiniMapBattlefieldFrame:SetFrameStrata( Minimap:GetFrameStrata() );
MiniMapBattlefieldFrame:SetFrameLevel( Minimap:GetFrameLevel()+5 );
__________________
Murphy's Law of Combat: Always remember your weapon was made by the lowest bidder.

reddrumjay is offline  
Old 01-16-12, 04:06 PM   #4
reddrumjay
A Black Drake
Join Date: Apr 2009
Posts: 85
ok, my click and drag is a quick fix but not too elegant since if you drop it behind the minimap it is gone.

Is there a quick/easy way to make it so it is not clickable while in combat? that would fix my problem of having it pop up and block my entire field of vision if I mis-click it.
__________________
Murphy's Law of Combat: Always remember your weapon was made by the lowest bidder.

reddrumjay is offline  
Old 01-16-12, 05:10 PM   #5
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yeah... don't click the bottom of your buttons (I'm kidding ~smile~) or, if I wanted to be an extra smartalec I'd say learn to use keybinds ~evil grin~

That said and all teasing aside, I would say just modify the position of the button a little so it doesn't overlap with the buttons you're trying to mouse-click. Just edit this line and change the highlighted values (blue to move it left/right or purple to move it up/down)

Code:
MiniMapBattlefieldFrame:SetPoint( "BOTTOMRIGHT", MiniMapWorldMapButton, "TOPLEFT", 2, -12 );

__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Old 01-16-12, 06:54 PM   #6
reddrumjay
A Black Drake
Join Date: Apr 2009
Posts: 85
Originally Posted by spiel2001 View Post
if I wanted to be an extra smartalec I'd say learn to use keybinds ~evil grin~
IDK what the deal is - I guess I'm too damn old - but I've never been able to adjust to full-on keybinds.

/sigh
__________________
Murphy's Law of Combat: Always remember your weapon was made by the lowest bidder.

reddrumjay is offline  
Old 01-17-12, 04:22 PM   #7
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Unless you significantly eclipse my 53 years, I'm afraid I'm gonna have to deny your request to apply the age debuff.

~grin~
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Old 01-24-12, 11:01 PM   #8
reddrumjay
A Black Drake
Join Date: Apr 2009
Posts: 85
Oh, so you're gonna pop the +10 Years trink to try to pwn me??

Hax
__________________
Murphy's Law of Combat: Always remember your weapon was made by the lowest bidder.

reddrumjay is offline  
Old 01-25-12, 04:48 PM   #9
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Like a boss!

__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
 

Go BackWoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Technical Support » Modding PvP icon

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off