Thread Tools Display Modes
Old 08-18-13, 11:10 AM   #21
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
woot, thanks Scott.
__________________
Xrystal is offline  
Old 08-18-13, 11:11 AM   #22
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Check the macro condition [shapeshift]

You should be able to use that to handle the temp shapeshift bar
__________________

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 08-18-13, 11:16 AM   #23
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
Will do, thanks.
__________________
Xrystal is offline  
Old 08-18-13, 11:18 AM   #24
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I haven't played with it yet, but it may be necessary to create a special case on the buttons to handle the special shapeshift bar functions correctly using the macro as the trigger. It just has to be "pre-defined" behavior and selected by the state engine when the macro conditional is met.
__________________

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 08-18-13, 12:00 PM   #25
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
Good News:

This mini addon worked great, as long as it was a special bar, then again, like I said I have yet been able to figure out page swapping properly yet even with the druid forms. Now to check to see if the page idea will work with nUI.

edit: Added screenshots of mini addon working alongside regular blizz and with nUI 5 and as you can see nUI 5 isn't switching with the page switching macro conditional.

Lua Code:
  1. local addonName,addonData = ...
  2.  
  3. local actionBarFrame = CreateFrame("Frame","XUI_ActionBar_Frame",UIParent,"SecureHandlerStateTemplate,SecureHandlerAttributeTemplate,SecureHandlerShowHideTemplate")
  4. local eventFrame = CreateFrame("Frame","XUI_ActionBar_Events")
  5.  
  6. local function CheckEvents(self,event,...)
  7.     local args = { ... }
  8.    
  9.     if ( event == "ADDON_LOADED" and args[1] == addonName ) then
  10.         actionBarFrame:SetPoint("CENTER",UIParent,"CENTER",0,0)
  11.         actionBarFrame:SetAttribute( "XUI_ActionType","ACTIONBUTTON" )
  12.        
  13.         -- As a standalone Action Bar
  14.         actionBarFrame:SetAttribute( "actionpage", GetTempShapeshiftBarIndex() );
  15.        
  16.         -- As a page on the Main Action Bar
  17.         --actionBarFrame:SetAttribute( "actionpage", 1 );
  18.        
  19.         actionBarFrame.Buttons = { }
  20.         local lastButton = nil
  21.         for i = 1,12 do
  22.             actionBarFrame.Buttons[i] = CreateFrame("CheckButton","$parent_Button_"..i,actionBarFrame,"SecureActionButtonTemplate,ActionBarButtonTemplate")
  23.             actionBarFrame.Buttons[i]:SetID(i)
  24.             actionBarFrame.Buttons[i]:SetAttribute("action", i );
  25.             actionBarFrame.Buttons[i]:Show()
  26.             if ( lastButton ) then
  27.                 actionBarFrame.Buttons[i]:SetPoint("TOPLEFT",actionBarFrame.Buttons[i-1],"TOPRIGHT",1,0)
  28.             else
  29.                 actionBarFrame.Buttons[i]:SetPoint("TOPLEFT",actionBarFrame,"TOPLEFT",1,0)
  30.             end
  31.             lastButton = actionBarFrame.Buttons[i]
  32.             ActionButton_UpdateAction(lastButton);
  33.         end
  34.        
  35.         -- As a standalone Action Bar
  36.         RegisterStateDriver( actionBarFrame, "visibility", "[petbattle] hide; [shapeshift] show" );
  37.        
  38.         -- As a page on the Main Action Bar
  39.         --RegisterStateDriver( actionBarFrame, "visibility", "[petbattle] hide; show" );
  40.  
  41.         actionBarFrame:Execute(
  42.             [[
  43.                 ChildList     = newtable( self:GetChildren() );
  44.                 ActionButtons = newtable();
  45.                 actionType    = self:GetAttribute( "XUI_ActionType" );
  46.                
  47.                 local j = 1;
  48.                
  49.                 for i, child in ipairs( ChildList ) do
  50.                     if child:GetAttribute( "XUI_ActionType" ) then
  51.                         ActionButtons[j] = child;
  52.                         j = j+1;
  53.                     end
  54.                 end
  55.             ]]
  56.         );
  57.  
  58.         -- As a page on the Main Action Bar
  59.         --RegisterStateDriver(actionBarFrame, "page", "[vehicleui] GetVehicleBarIndex(); [shapeshift] GetTempShapeshiftBarIndex(); [extrabar] GetExtraBarIndex(); [overridebar] GetOverrideBarIndex(); [bar:2] 2; [bar:3] 3; [bar:4] 4; [bar:5] 5; [bar:6] 6; [bonusbar:1] 7; [bonusbar:2] 8; [bonusbar:3] 9; [bonusbar:4] 10; [bonusbar:5] 11;1" );
  60.        
  61.         actionBarFrame:Show()
  62.  
  63.     end
  64.    
  65. end
  66.  
  67. eventFrame:RegisterEvent("ACTIONBAR_UPDATE_STATE")
  68. eventFrame:RegisterEvent("ADDON_LOADED")
  69. eventFrame:RegisterEvent("ACTIONBAR_PAGE_CHANGED")
  70. eventFrame:RegisterEvent("UPDATE_BONUS_ACTIONBAR")
  71. eventFrame:RegisterEvent("UPDATE_VEHICLE_ACTIONBAR")
  72. eventFrame:RegisterEvent("UPDATE_OVERRIDE_ACTIONBAR")
  73. eventFrame:RegisterEvent("UPDATE_SHAPESHIFT_FORM")
  74. eventFrame:RegisterEvent("UPDATE_POSSESS_BAR")
  75. eventFrame:RegisterEvent("UPDATE_EXTRA_ACTIONBAR")
  76.  
  77. eventFrame:SetScript("OnEvent",CheckEvents)
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_081813_185625.jpg
Views:	139
Size:	221.4 KB
ID:	7812  Click image for larger version

Name:	WoWScrnShot_081813_190306.jpg
Views:	138
Size:	249.4 KB
ID:	7813  
__________________

Last edited by Xrystal : 08-18-13 at 12:06 PM.
Xrystal is offline  
Old 08-18-13, 01:04 PM   #26
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I'll see what I can sort out.

Is 5.4 live this Tuesday or next?
__________________

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 08-18-13, 01:54 PM   #27
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
All I've seen is that it is soon. Guess we won't know until Monday night at the earliest.
__________________
Xrystal is offline  
Old 08-18-13, 06:57 PM   #28
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I think I have nUI6 ready to play with 5.4 -- I haven't looked at nUI5 on the 5.4 PTR. Have you?
__________________

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 08-19-13, 04:51 AM   #29
Daveo77
A Flamescale Wyrmkin
 
Daveo77's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 138
From what I've heard, 5.4 is looking to go live on Tuesday 27th (US)/Wednesday 28th (EU).
Daveo77 is offline  
Old 08-19-13, 12:43 PM   #30
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
I tried with nui5 but I have no idea how the bars work in nui. My mini addon worked as a separate bar that was visible when the shapeshifter occurred. Tried to use the possess file as a guide to get it to work inside nui5 but no joy on first attempt. I suspect for the moment it will have to be a separate bar as so far I haven't figured out how to get it to shift pages when the macro condition is met. No real examples around that I can understand.
__________________
Xrystal is offline  
Old 08-21-13, 04:39 PM   #31
Daveo77
A Flamescale Wyrmkin
 
Daveo77's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 138
Update to my last post. Blizzard has announced date for Patch 5.4 to go live.

US: Tuesday 10th September
EU: Wednesday 11th September

See here for full info.

Last edited by Daveo77 : 08-22-13 at 04:27 PM. Reason: Added EU Patch 5.4 release date
Daveo77 is offline  
Old 08-21-13, 10:25 PM   #32
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
Hmm, I can't see anything official on the date of release on that page. Is there something on the Arena Season changes that mentions the date officially as all I am seeing are peoples comments on the date.
__________________
Xrystal is offline  
Old 08-21-13, 11:26 PM   #33
Seer
A Molten Giant
Join Date: Dec 2007
Posts: 649
Originally Posted by Xrystal View Post
Hmm, I can't see anything official on the date of release on that page. Is there something on the Arena Season changes that mentions the date officially as all I am seeing are peoples comments on the date.
The date is in the picture dear :-)

Else http://us.battle.net/wow/en/forum/topic/9742164156#14
__________________
Take it as you want or leave it as it is.
Seer is offline  
Old 08-22-13, 01:33 PM   #34
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
d'oh, age must be getting to me .. must be blind as a bat rofl .. thanks seer, now that you pointed it out I can clearly see it rofl
__________________
Xrystal is offline  
Old 08-24-13, 07:21 AM   #35
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
Good news.

This line in 5.4 makes the main actionbar switch in draktharon keep in the latest nUI 5.

RegisterStateDriver(nUI_ActionBar, "page", string.format("[vehicleui] %d; [overridebar] %d; [shapeshift] %d; [extrabar] %d; [bar:2] 2; [bar:3] 3; [bar:4] 4; [bar:5] 5; [bar:6] 6; [bonusbar:1] 7; [bonusbar:2] 8; [bonusbar:3] 9; [bonusbar:4] 10; [bonusbar:5] 11;1",GetVehicleBarIndex(),GetOverrideBarIndex(),GetTempShapeshiftBarIndex(),GetExtraBarIndex()) );

Whether the ExtraActionBar and OverrideBar and VehicleBar index pages switch as well I don't know yet. Will test that another time. Screen shot here though:
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_082413_141019.jpg
Views:	120
Size:	220.9 KB
ID:	7814  
__________________
Xrystal is offline  
Old 08-24-13, 07:38 AM   #36
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
The same change in 5.3 came up with the Extra Bar Button temporarily replacing the the first action bar button.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_082413_143601.jpg
Views:	135
Size:	276.6 KB
ID:	7815  
__________________
Xrystal is offline  
Old 08-24-13, 11:12 AM   #37
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
Scratch having the extra action button appear as button one .. just glitched out a heroic scenario because of it rofl.
__________________
Xrystal is offline  
Old 08-25-13, 08:49 AM   #38
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,026
Oh, and if my mini addon is anything to go by then the following line change will make nUI 5 work in 5.3.


RegisterStateDriver(nUI_ActionBar, "page", string.format("[vehicleui] %d; [overridebar] %d; [shapeshift] %d; [bar:2] 2; [bar:3] 3; [bar:4] 4; [bar:5] 5; [bar:6] 6; [bonusbar:1] 7; [bonusbar:2] 8; [bonusbar:3] 9; [bonusbar:4] 10; [bonusbar:5] 11;1",GetVehicleBarIndex(),GetOverrideBarIndex(),GetTempShapeshiftBarIndex()) );
__________________
Xrystal is offline  
Old 09-11-13, 01:22 AM   #39
Vrallox
A Deviate Faerie Dragon
Join Date: Nov 2007
Posts: 16
The updates in the last couple days have been causing problems for me as well. I've been having my main action bar replaced with the extra action button ability every time it's activated. I ran a Dragon Soul run on Monday and on the Ultraxion fight I lost all my buttons and the first ability was now the phasing ability. Today, after the new update, I've been getting it on the Timeless Isle.

Was pretty funny trying to quest while using my abilities directly from the spellbook. Hehe.
Vrallox is offline  
Old 09-11-13, 05:02 AM   #40
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
We'll get this sorted out ASAP.
__________________

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: Bug Reports » action bar wont show on last boss in dtk

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