Thread Tools Display Modes
11/10/16, 02:31 PM   #1
Havin
AddOn Author - Click to view addons
Join Date: Oct 2016
Posts: 2
Sloted Abilites in all Bars

Hi, i am Havin and currently working/experimenting on an addon.

I`d like to see, which of my Ultimates is ready.

So i have to find out which Ultimate i got in Front Bar and which in Back-Bar.

Currently i use GetSlotAbilityCost(8), but this only shows me the Ultimate of the currently active SlotBar.


Any idea hot to "read out" the Ability Costs of the other Slot Bar?

Thanks
  Reply With Quote
11/10/16, 02:36 PM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Hi and welcome to the ESOUI forums.

Unfortunately the answer to your question is "it's not possible".
You cannot access the backbar while it is not the active bar.

You can find some suggestions how to solve the issue in a different way here.
  Reply With Quote
11/10/16, 02:54 PM   #3
Havin
AddOn Author - Click to view addons
Join Date: Oct 2016
Posts: 2
so, which bar is active?

First, thank you, for the quick answer

So, im gonna "sniff" it then. Thats not a perfect solution, but it may do the job also.

Besides that, does a value exist to find out which of the bars is currently active? That would help to save the Ultimate Costs and to position that information in the screen.
  Reply With Quote
11/11/16, 09:21 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,960
Originally Posted by Havin View Post
First, thank you, for the quick answer

So, im gonna "sniff" it then. Thats not a perfect solution, but it may do the job also.

Besides that, does a value exist to find out which of the bars is currently active? That would help to save the Ultimate Costs and to position that information in the screen.
You can use the event if a weapon pair changes:

Lua Code:
  1. --Register callback function if the weapon bars change
  2.     EVENT_MANAGER:RegisterForEvent(myAddon.Name .. "_WeaponPairChanged", EVENT_ACTIVE_WEAPON_PAIR_CHANGED, ActiveWeaponPairChanged)

In the callback function "ActiveWeaponPairChanged" you can save the active weapon pair to a variable in your addon:

Lua Code:
  1. --Fires each time you change your weapon bars
  2. local function ActiveWeaponPairChanged(eventCode, activeWeaponPair, locked)
  3.     myAddon.activeWeaponBar = activeWeaponPair
  4. end


This event will trigger multiple times if the weapon pair changes!
If I remember right it was something like
-One time for the "form-bar" with locked = true
-One time for the "to-bar" with locked = false
-One time for the "form-bar" with locked = false

Locked is the state as the abilities on the bar get locked. They get grayed out and you're not able to use them during the switch happens.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Sloted Abilites in all Bars

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