Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-16-12, 08:29 PM   #1
reddrumjay
A Black Drake
Join Date: Apr 2009
Posts: 85
nUI 5 Code Patches

Since Scott is mainly working on getting nUI 6 going and not doing major revisions to anything in nUI 5, I thought I would compile all the current code mods/user hot fixes in one place. These are just the ones I use, so I would encourage others to add to it if you think it is something that would be widely used. I will update the main post if others are added.


Heroic Will Button Missing
There's no good fix for getting this to show up in the UI. The quickest and easiest solution to to make a new macro and put it on your bar. The macro is very simple:

Code:
/click ExtraActionButton1
Source Thread: http://www.wowinterface.com/forums/s...ghlight=debuff


Buff/Debuff Mouseover Tooltips
Use a plain text editor to open [ Interface > AddOns > nUI > Layouts > Default > HUDLayouts > {hud mode} > nUI_HUDSkin_{hud mode}_{unit id}.lua ] where {hud mode} is the HUD mode you use (PlayerTarget, HealthPower, etc.) and {unit id} is the unit you want the mouseover to work for {Player, Target, etc.)

Locate the ["Aura"] section that for the "harm" auras and change "clickable = false" to "clickable = true" and save the file then do a '/nui rl' -- you should be all set.

Code:
aura_type        = "harm",
					origin           = "TOPRIGHT",
					player_auras     = false,
					dispellable      = false,
					horizontal       = false,
					highlight_player = false,
					aura_types       = true,
					cooldown_anim    = false,
					flash_expire     = true,
					clickable        = true,
					rows             = 3,
					cols             = 4,
					expire_time      = 10,
					hGap             = 5,
					vGap             = 20,
Note that because auras are now protected frames, I cannot show/hide them, I can only make them transparent. That means that even when the aura is not visible, it is still on the screen and therefore interacting with your mouse. That will mean you cannot click in the field of play anywhere an aura is positioned... which is why the mouseover tooltips are current disabled by default. However, as long as that doesn't bother you, it will work.

Source Thread: http://www.wowinterface.com/forums/s...ghlight=debuff

Moving the BG Icon

If you are like me and end up accidentally clicking the BG icon while in combat, this code will move the button away from the action bar as shown here:



Find the MiniMapBattlefieldFrame 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( "TOPLEFT", Minimap, "TOPLEFT", -25, -18  );
MiniMapBattlefieldFrame:SetFrameStrata( Minimap:GetFrameStrata() );
MiniMapBattlefieldFrame:SetFrameLevel( Minimap:GetFrameLevel()+5 );
Replace this
Code:
MiniMapBattlefieldFrame:SetPoint( "BOTTOMRIGHT", MiniMapWorldMapButton, "TOPLEFT", 2, -12 );
With this:
Code:
MiniMapBattlefieldFrame:SetPoint( "TOPLEFT", Minimap, "TOPLEFT", -25, -18  );
Source Thread: http://www.wowinterface.com/forums/s...ad.php?t=42243
__________________
Murphy's Law of Combat: Always remember your weapon was made by the lowest bidder.


Last edited by reddrumjay : 01-16-12 at 08:42 PM.
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Bug Reports » nUI 5 Code Patches


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