/trunk
</OnClick> |
</Scripts> |
</CheckButton> |
<Frame name="KHunterTimersAnchor" hidden="true" parent="UIParent" movable="true" enableMouse="true"> |
<Frame name="KHunterTimersAnchor" hidden="true" parent="UIParent" movable="true" enableMouse="true" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="25" y="25"/> |
</Size> |
</Offset> |
</Anchor> |
</Anchors> |
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
<EdgeSize> |
<AbsValue val="25"/> |
</EdgeSize> |
<TileSize> |
<AbsValue val="25"/> |
</TileSize> |
<BackgroundInsets> |
<AbsInset left="5" right="5" top="5" bottom="5"/> |
</BackgroundInsets> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_KHARTHUS_25_25" type="global"/> |
</KeyValues> |
<Scripts> |
<OnLoad> |
<OnLoad inherit="prepend"> |
self:RegisterForDrag("LeftButton"); |
</OnLoad> |
<OnDragStart> |
</OnLeave> |
</Scripts> |
</Frame> |
<Frame name="KHunterTimersFrame" parent="UIParent" hidden="true" enableMouse="false"> |
<Frame name="KHunterTimersFrame" parent="UIParent" hidden="true" enableMouse="false" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="240" y="30"/> |
</Size> |
</Offset> |
</Anchor> |
</Anchors> |
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
<EdgeSize> |
<AbsValue val="16"/> |
</EdgeSize> |
<TileSize> |
<AbsValue val="16"/> |
</TileSize> |
<BackgroundInsets> |
<AbsInset left="5" right="5" top="5" bottom="5"/> |
</BackgroundInsets> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_16_16_5555" type="global"/> |
</KeyValues> |
<Scripts> |
<OnLoad> |
<OnLoad inherit="prepend"> |
KHunterTimers_OnLoad(self); |
self.updateTime = 0; |
</OnLoad> |
</GameTooltip> |
-- Main GUI Screen |
<Frame name="KHunterTimersOptions" hidden="true" movable="true" enableKeyboard="true"> |
<Frame name="KHunterTimersOptions" hidden="true" movable="true" enableKeyboard="true" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="910" y="581" /> |
</Size> |
</Offset> |
</Anchor> |
</Anchors> |
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="11" right="12" top="12" bottom="11" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="32" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="32" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_DIALOG_32_32" type="global"/> |
</KeyValues> |
<Layers> |
<Layer> |
<Texture name="$parentTitleBorder" file="Interface\DialogFrame\UI-DialogBox-Header"> |
<PushedTextOffset x="0" y="0" /> |
</Button> |
<Frame name="$parentTimers"> |
<Frame name="$parentTimers" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="385" y="462" /> |
</Size> |
</Offset> |
</Anchor> |
</Anchors> |
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="5" right="5" top="5" bottom="5" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="16" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="16" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_16_16_5555" type="global"/> |
</KeyValues> |
<Scripts> |
<OnLoad> |
<OnLoad inherit="prepend"> |
self.elapsed = 0; |
PanelTemplates_SetNumTabs(KHunterTimersOptionsTimers, 5); |
PanelTemplates_SetTab(KHunterTimersOptionsTimers, 1); |
</Frames> |
</Frame> |
<Frame name="$parentBars"> |
<Frame name="$parentBars" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="474" y="500" /> |
</Size> |
</Offset> |
</Anchor> |
</Anchors> |
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="5" right="5" top="5" bottom="5" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="16" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="16" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_16_16_5555" type="global"/> |
</KeyValues> |
<Frames> |
<Frame name="KHunterTimersOptionsBarsLabel1"> |
<Size> |
</Layer> |
</Layers> |
</Frame> |
<Frame name="$parentSlider1"> |
<Frame name="$parentSlider1" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="128" y="50" /> |
</Size> |
<Anchor point="LEFT" /> |
<Anchor point="RIGHT" /> |
</Anchors> |
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="3" right="3" top="6" bottom="6" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="8" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="8" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/> |
</KeyValues> |
<Layers> |
<Layer> |
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Distance Between Bars"> |
</Anchor> |
</Anchors> |
<Frames> |
<Slider name="$parentSlider" enableMouse="true" minValue="0.5" maxValue="1.5" defaultValue="1" valueStep="0.01" orientation="HORIZONTAL"> |
<Slider name="$parentSlider" enableMouse="true" minValue="0.5" maxValue="1.5" defaultValue="1" valueStep="0.01" orientation="HORIZONTAL" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="128" y="17" /> |
</Size> |
<Anchor point="LEFT" /> |
<Anchor point="RIGHT" /> |
</Anchors> |
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="3" right="3" top="6" bottom="6" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="8" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="8" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/> |
</KeyValues> |
<Layers> |
<Layer> |
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Scale"> |
</Anchor> |
</Anchors> |
<Frames> |
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="3" defaultValue="1" valueStep="1" orientation="HORIZONTAL"> |
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="3" defaultValue="1" valueStep="1" orientation="HORIZONTAL" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="128" y="17" /> |
</Size> |
<Anchor point="LEFT" /> |
<Anchor point="RIGHT" /> |
</Anchors> |
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="3" right="3" top="6" bottom="6" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="8" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="8" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/> |
</KeyValues> |
<Layers> |
<Layer> |
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Decimals"> |
</Anchor> |
</Anchors> |
<Frames> |
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="10" defaultValue="5" valueStep="1" orientation="HORIZONTAL"> |
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="10" defaultValue="5" valueStep="1" orientation="HORIZONTAL" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="128" y="17" /> |
</Size> |
<Anchor point="LEFT" /> |
<Anchor point="RIGHT" /> |
</Anchors> |
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="3" right="3" top="6" bottom="6" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="8" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="8" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/> |
</KeyValues> |
<Layers> |
<Layer> |
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Flash Time"> |
</Anchor> |
</Anchors> |
<Frames> |
<Slider name="$parentSlider" enableMouse="true" minValue="0.01" maxValue="0.05" defaultValue="0.05" valueStep="0.005" orientation="HORIZONTAL"> |
<Slider name="$parentSlider" enableMouse="true" minValue="0.01" maxValue="0.05" defaultValue="0.05" valueStep="0.005" orientation="HORIZONTAL" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="128" y="17" /> |
</Size> |
<Anchor point="LEFT" /> |
<Anchor point="RIGHT" /> |
</Anchors> |
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="3" right="3" top="6" bottom="6" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="8" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="8" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/> |
</KeyValues> |
<Layers> |
<Layer> |
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Flash Step"> |
</Anchor> |
</Anchors> |
<Frames> |
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="1" defaultValue="1" valueStep="0.01" orientation="HORIZONTAL"> |
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="1" defaultValue="1" valueStep="0.01" orientation="HORIZONTAL" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="128" y="17" /> |
</Size> |
<Anchor point="LEFT" /> |
<Anchor point="RIGHT" /> |
</Anchors> |
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="3" right="3" top="6" bottom="6" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="8" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="8" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/> |
</KeyValues> |
<Layers> |
<Layer> |
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Overall Opacity"> |
</Anchor> |
</Anchors> |
<Frames> |
<Slider name="$parentSlider" enableMouse="true" minValue="10" maxValue="32" defaultValue="10" valueStep="1" orientation="HORIZONTAL"> |
<Slider name="$parentSlider" enableMouse="true" minValue="10" maxValue="32" defaultValue="10" valueStep="1" orientation="HORIZONTAL" inherits="BackdropTemplate"> |
<Size> |
<AbsDimension x="128" y="17" /> |
</Size> |
<Anchor point="LEFT" /> |
<Anchor point="RIGHT" /> |
</Anchors> |
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
<BackgroundInsets> |
<AbsInset left="3" right="3" top="6" bottom="6" /> |
</BackgroundInsets> |
<TileSize> |
<AbsValue val="8" /> |
</TileSize> |
<EdgeSize> |
<AbsValue val="8" /> |
</EdgeSize> |
</Backdrop> |
<KeyValues> |
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/> |
</KeyValues> |
<Layers> |
<Layer> |
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Bar Thickness"> |
</Frames> |
<Scripts> |
<OnLoad> |
<OnLoad inherit="prepend"> |
self:RegisterForDrag("LeftButton"); |
</OnLoad> |
<OnDragStart> |
local khtDebug = false; |
local khtDebugBC = false; |
BACKDROP_KHARTHUS_25_25 = { |
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", |
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", |
tile = true, |
tileEdge = true, |
tileSize = 25, |
edgeSize = 25, |
insets = { left = 5, right = 5, top = 5, bottom = 5 }, |
}; |
function KHunterTimers_OnLoad(self) |
local playerClass, englishClass = UnitClass("player"); |
if(englishClass ~= "HUNTER") then |
if( KHTvars["skills"][KHT_ASPECT_EAGLE] and spellName == KHT_ASPECT_EAGLE ) then |
KHunterTimersFrame_add( 10000, spellName, spellId ) |
elseif( KHTvars["skills"][KHT_ASPECT_WILD] and spellName == KHT_ASPECT_WILD ) then |
KHunterTimersFrame_add( 10000, spellName, spellId ) |
KHunterTimersFrame_add( 20000, spellName, spellId ) |
elseif( KHTvars["skills"][KHT_BEAST_CLEAVE] and spellName == KHT_BEAST_CLEAVE ) then |
KHunterTimersFrame_add( 4000, spellName, spellId ) |
elseif( KHTvars["skills"][KHT_BESTIAL_WRATH] and spellName == KHT_BESTIAL_WRATH and spellId == 19574 ) then |
Version History |
v4.4.0 |
- Updates to support Shadowlands Pre-Patch |
v4.3.4 |
- TOC update for 8.3 patch |
v4.3.3 |
## Interface: 80300 |
## Interface: 90001 |
## Title: Kharthus's Hunter Timers |
## Notes: Times hunter buffs/debuffs |
## Version: 4.3.4 |
## Version: 4.4.0 |
## DefaultState: Enabled |
## LoadOnDemand: 0 |
## SavedVariables: KHTvars |
KHT_MUZZLE = GetSpellInfo(187707) -- Muzzle |
KHT_SURVIVALIST = GetSpellInfo(164856) -- Survivalist |
KHT_TAR_TRAP = GetSpellInfo(187698) -- Tar Trap |
KHT_TRUESHOT = GetSpellInfo(193526) -- Trueshot |
KHT_TRUESHOT = GetSpellInfo(288613) -- Trueshot |
KHT_WING_CLIP = GetSpellInfo(195645) -- Wing Clip |
-- Azerite Powers |