WoWInterface SVN KharthussHunterTimers

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 61 to Rev 62
    Reverse comparison

Rev 61 → Rev 62

KHunterTimers/KHunterTimers.xml
226,7 → 226,7
</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>
237,19 → 237,11
</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>
269,7 → 261,7
</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>
280,19 → 272,11
</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>
412,7 → 396,7
</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>
423,17 → 407,9
</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">
685,7 → 661,7
<PushedTextOffset x="0" y="0" />
</Button>
 
<Frame name="$parentTimers">
<Frame name="$parentTimers" inherits="BackdropTemplate">
<Size>
<AbsDimension x="385" y="462" />
</Size>
696,19 → 672,11
</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);
1452,7 → 1420,7
</Frames>
</Frame>
 
<Frame name="$parentBars">
<Frame name="$parentBars" inherits="BackdropTemplate">
<Size>
<AbsDimension x="474" y="500" />
</Size>
1463,17 → 1431,9
</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>
1795,7 → 1755,7
</Layer>
</Layers>
</Frame>
<Frame name="$parentSlider1">
<Frame name="$parentSlider1" inherits="BackdropTemplate">
<Size>
<AbsDimension x="128" y="50" />
</Size>
1815,17 → 1775,9
<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">
1895,7 → 1847,7
</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>
1903,17 → 1855,9
<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">
1983,7 → 1927,7
</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>
1991,17 → 1935,9
<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">
2071,7 → 2007,7
</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>
2079,17 → 2015,9
<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">
2159,7 → 2087,7
</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>
2167,17 → 2095,9
<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">
2247,7 → 2167,7
</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>
2255,17 → 2175,9
<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">
2387,7 → 2299,7
</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>
2395,17 → 2307,9
<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">
3132,7 → 3036,7
 
</Frames>
<Scripts>
<OnLoad>
<OnLoad inherit="prepend">
self:RegisterForDrag("LeftButton");
</OnLoad>
<OnDragStart>
KHunterTimers/KHunterTimers.lua
28,6 → 28,16
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
1203,7 → 1213,7
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
KHunterTimers/version history.txt
1,4 → 1,6
Version History
v4.4.0
- Updates to support Shadowlands Pre-Patch
v4.3.4
- TOC update for 8.3 patch
v4.3.3
KHunterTimers/KHunterTimers.toc
1,7 → 1,7
## 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
KHunterTimers/localization.lua
20,7 → 20,7
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