mirror of
https://github.com/brues-code/Vanilla_MikScrollingBattleText.git
synced 2026-10-16 02:10:49 +00:00
Added stance requirement for every triggers
This commit is contained in:
@@ -107,6 +107,12 @@ ICON_CACHE["pierre de soins"] = "Interface\\Icons\\inv_stone_04"
|
||||
ICON_CACHE["capturer un esprit"] = "Interface\\Icons\\Spell_Shadow_Haunting"
|
||||
ICON_CACHE["récupération du mana"] = "Interface\\Icons\\inv_misc_gem_ruby_01"
|
||||
ICON_CACHE["maître des éléments"] = "Interface\\Icons\\spell_fire_masterofelements"
|
||||
ICON_CACHE["tribu zandalar"] = "Interface\\Icons\\inv_misc_coin_08"
|
||||
ICON_CACHE["crachat venimeux"] = "Interface\\Icons\\spell_nature_corrosivebreath"
|
||||
ICON_CACHE["morsure fatale"] = "Interface\\Icons\\ability_backstab"
|
||||
ICON_CACHE["explosion sonore"] = "Interface\\Icons\\spell_shadow_teleport"
|
||||
ICON_CACHE["flammes"] = "Interface\\Icons\\spell_fire_fire"
|
||||
ICON_CACHE["effet inferno"] = "Interface\\Icons\\spell_fire_incinerate"
|
||||
|
||||
|
||||
-- Cache des spells dont l'icone n'a pas été trouvée
|
||||
@@ -652,6 +658,16 @@ function MikSBT.TriggerHandler(triggerEvent)
|
||||
-- Get a recycled table from the events recycler object.
|
||||
local animationEvent = eventsRecycler:AcquireTable();
|
||||
|
||||
-- Check if the trigger require a stance
|
||||
if (MikSBT.CurrentProfile.Triggers[triggerEvent.TriggerKey].TriggerSettings.Stance) then
|
||||
local _,_,isActive = GetShapeshiftFormInfo(MikSBT.CurrentProfile.Triggers[triggerEvent.TriggerKey].TriggerSettings.Stance)
|
||||
if not isActive then
|
||||
-- Reclaim the animation event table to the table recycler.
|
||||
eventsRecycler:ReclaimTable(animationEvent);
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
-- Check if there is profile data for the trigger.
|
||||
if (MikSBT.CurrentProfile.Triggers[triggerEvent.TriggerKey].EventSettings) then
|
||||
-- Set the scroll area, event settings, and output text.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
## Interface: 11200
|
||||
## Version: 4.42
|
||||
## Version: 4.43
|
||||
## Title: Mik's Scrolling Battle Text
|
||||
## Notes: Scrolls battle information around the character model.
|
||||
## OptionalDeps: SW_FixLogStrings
|
||||
|
||||
@@ -12,8 +12,8 @@ MikSBT = {};
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
MikSBT.MOD_NAME = "MikScrollingBattleText"
|
||||
MikSBT.VERSION_NUMBER = 4.42;
|
||||
MikSBT.VERSION_STRING = "v4.42";
|
||||
MikSBT.VERSION_NUMBER = 4.43;
|
||||
MikSBT.VERSION_STRING = "v4.43 beta";
|
||||
MikSBT.WINDOW_TITLE = "Mik's Scrolling Battle Text " .. MikSBT.VERSION_STRING .. " - \124cffF58CBA\124hAthene Edit\124h\124r";
|
||||
|
||||
MikSBT.COMMAND = "/msbt";
|
||||
@@ -155,6 +155,22 @@ MikSBT.AVAILABLE_TRIGGER_TYPES = {
|
||||
};
|
||||
|
||||
|
||||
------------------------------
|
||||
-- Stances info
|
||||
------------------------------
|
||||
|
||||
-- Holds the available stances.
|
||||
MikSBT.AVAILABLE_STANCES = {
|
||||
[1] = {Name="|cffC79C6EBattle Stance|r/|cffFF7D0ABear Form|r/|cffFFF569Stealth|r/|cffF58CBADevotion Aura"},
|
||||
[2] = {Name="|cffC79C6EDefensive Stance|r/|cffFF7D0AAquatic Form|r/|cffF58CBARetribution Aura"},
|
||||
[3] = {Name="|cffC79C6EBeserker Stance|r/|cffFF7D0ACat Form|r/|cffF58CBAConcentration Aura"},
|
||||
[4] = {Name="|cffFF7D0ATravel Form|r/|cffF58CBAShadow Resistance Aura"},
|
||||
[5] = {Name="|cffFF7D0AMoonkin Form|r/|cffF58CBAFrost Resistance Aura"},
|
||||
[6] = {Name="|cffF58CBAFire Resistance Aura"},
|
||||
[7] = {Name="Any"},
|
||||
};
|
||||
|
||||
|
||||
------------------------------
|
||||
-- Defaults
|
||||
------------------------------
|
||||
|
||||
Reference in New Issue
Block a user