WoWInterface SVN KharthussHunterTimers

Compare Revisions

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

Rev 62 → Rev 61

KHunterTimers/KHunterTimers.xml
226,7 → 226,7
</OnClick>
</Scripts>
</CheckButton>
<Frame name="KHunterTimersAnchor" hidden="true" parent="UIParent" movable="true" enableMouse="true" inherits="BackdropTemplate">
<Frame name="KHunterTimersAnchor" hidden="true" parent="UIParent" movable="true" enableMouse="true">
<Size>
<AbsDimension x="25" y="25"/>
</Size>
237,11 → 237,19
</Offset>
</Anchor>
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_KHARTHUS_25_25" type="global"/>
</KeyValues>
<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>
<Scripts>
<OnLoad inherit="prepend">
<OnLoad>
self:RegisterForDrag("LeftButton");
</OnLoad>
<OnDragStart>
261,7 → 269,7
</OnLeave>
</Scripts>
</Frame>
<Frame name="KHunterTimersFrame" parent="UIParent" hidden="true" enableMouse="false" inherits="BackdropTemplate">
<Frame name="KHunterTimersFrame" parent="UIParent" hidden="true" enableMouse="false">
<Size>
<AbsDimension x="240" y="30"/>
</Size>
272,11 → 280,19
</Offset>
</Anchor>
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_16_16_5555" type="global"/>
</KeyValues>
<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>
<Scripts>
<OnLoad inherit="prepend">
<OnLoad>
KHunterTimers_OnLoad(self);
self.updateTime = 0;
</OnLoad>
396,7 → 412,7
</GameTooltip>
 
-- Main GUI Screen
<Frame name="KHunterTimersOptions" hidden="true" movable="true" enableKeyboard="true" inherits="BackdropTemplate">
<Frame name="KHunterTimersOptions" hidden="true" movable="true" enableKeyboard="true">
<Size>
<AbsDimension x="910" y="581" />
</Size>
407,9 → 423,17
</Offset>
</Anchor>
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_DIALOG_32_32" type="global"/>
</KeyValues>
<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>
<Layers>
<Layer>
<Texture name="$parentTitleBorder" file="Interface\DialogFrame\UI-DialogBox-Header">
661,7 → 685,7
<PushedTextOffset x="0" y="0" />
</Button>
 
<Frame name="$parentTimers" inherits="BackdropTemplate">
<Frame name="$parentTimers">
<Size>
<AbsDimension x="385" y="462" />
</Size>
672,11 → 696,19
</Offset>
</Anchor>
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_16_16_5555" type="global"/>
</KeyValues>
<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>
<Scripts>
<OnLoad inherit="prepend">
<OnLoad>
self.elapsed = 0;
PanelTemplates_SetNumTabs(KHunterTimersOptionsTimers, 5);
PanelTemplates_SetTab(KHunterTimersOptionsTimers, 1);
1420,7 → 1452,7
</Frames>
</Frame>
 
<Frame name="$parentBars" inherits="BackdropTemplate">
<Frame name="$parentBars">
<Size>
<AbsDimension x="474" y="500" />
</Size>
1431,9 → 1463,17
</Offset>
</Anchor>
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_16_16_5555" type="global"/>
</KeyValues>
<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>
<Frames>
<Frame name="KHunterTimersOptionsBarsLabel1">
<Size>
1755,7 → 1795,7
</Layer>
</Layers>
</Frame>
<Frame name="$parentSlider1" inherits="BackdropTemplate">
<Frame name="$parentSlider1">
<Size>
<AbsDimension x="128" y="50" />
</Size>
1775,9 → 1815,17
<Anchor point="LEFT" />
<Anchor point="RIGHT" />
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
</KeyValues>
<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>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Distance Between Bars">
1847,7 → 1895,7
</Anchor>
</Anchors>
<Frames>
<Slider name="$parentSlider" enableMouse="true" minValue="0.5" maxValue="1.5" defaultValue="1" valueStep="0.01" orientation="HORIZONTAL" inherits="BackdropTemplate">
<Slider name="$parentSlider" enableMouse="true" minValue="0.5" maxValue="1.5" defaultValue="1" valueStep="0.01" orientation="HORIZONTAL">
<Size>
<AbsDimension x="128" y="17" />
</Size>
1855,9 → 1903,17
<Anchor point="LEFT" />
<Anchor point="RIGHT" />
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
</KeyValues>
<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>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Scale">
1927,7 → 1983,7
</Anchor>
</Anchors>
<Frames>
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="3" defaultValue="1" valueStep="1" orientation="HORIZONTAL" inherits="BackdropTemplate">
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="3" defaultValue="1" valueStep="1" orientation="HORIZONTAL">
<Size>
<AbsDimension x="128" y="17" />
</Size>
1935,9 → 1991,17
<Anchor point="LEFT" />
<Anchor point="RIGHT" />
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
</KeyValues>
<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>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Decimals">
2007,7 → 2071,7
</Anchor>
</Anchors>
<Frames>
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="10" defaultValue="5" valueStep="1" orientation="HORIZONTAL" inherits="BackdropTemplate">
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="10" defaultValue="5" valueStep="1" orientation="HORIZONTAL">
<Size>
<AbsDimension x="128" y="17" />
</Size>
2015,9 → 2079,17
<Anchor point="LEFT" />
<Anchor point="RIGHT" />
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
</KeyValues>
<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>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Flash Time">
2087,7 → 2159,7
</Anchor>
</Anchors>
<Frames>
<Slider name="$parentSlider" enableMouse="true" minValue="0.01" maxValue="0.05" defaultValue="0.05" valueStep="0.005" orientation="HORIZONTAL" inherits="BackdropTemplate">
<Slider name="$parentSlider" enableMouse="true" minValue="0.01" maxValue="0.05" defaultValue="0.05" valueStep="0.005" orientation="HORIZONTAL">
<Size>
<AbsDimension x="128" y="17" />
</Size>
2095,9 → 2167,17
<Anchor point="LEFT" />
<Anchor point="RIGHT" />
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
</KeyValues>
<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>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Flash Step">
2167,7 → 2247,7
</Anchor>
</Anchors>
<Frames>
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="1" defaultValue="1" valueStep="0.01" orientation="HORIZONTAL" inherits="BackdropTemplate">
<Slider name="$parentSlider" enableMouse="true" minValue="0" maxValue="1" defaultValue="1" valueStep="0.01" orientation="HORIZONTAL">
<Size>
<AbsDimension x="128" y="17" />
</Size>
2175,9 → 2255,17
<Anchor point="LEFT" />
<Anchor point="RIGHT" />
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
</KeyValues>
<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>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Overall Opacity">
2299,7 → 2387,7
</Anchor>
</Anchors>
<Frames>
<Slider name="$parentSlider" enableMouse="true" minValue="10" maxValue="32" defaultValue="10" valueStep="1" orientation="HORIZONTAL" inherits="BackdropTemplate">
<Slider name="$parentSlider" enableMouse="true" minValue="10" maxValue="32" defaultValue="10" valueStep="1" orientation="HORIZONTAL">
<Size>
<AbsDimension x="128" y="17" />
</Size>
2307,9 → 2395,17
<Anchor point="LEFT" />
<Anchor point="RIGHT" />
</Anchors>
<KeyValues>
<KeyValue key="backdropInfo" value="BACKDROP_SLIDER_8_8" type="global"/>
</KeyValues>
<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>
<Layers>
<Layer>
<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Bar Thickness">
3036,7 → 3132,7
 
</Frames>
<Scripts>
<OnLoad inherit="prepend">
<OnLoad>
self:RegisterForDrag("LeftButton");
</OnLoad>
<OnDragStart>
KHunterTimers/KHunterTimers.lua
28,16 → 28,6
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
1213,7 → 1203,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( 20000, spellName, spellId )
KHunterTimersFrame_add( 10000, 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,6 → 1,4
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: 90001
## Interface: 80300
## Title: Kharthus's Hunter Timers
## Notes: Times hunter buffs/debuffs
## Version: 4.4.0
## Version: 4.3.4
## 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(288613) -- Trueshot
KHT_TRUESHOT = GetSpellInfo(193526) -- Trueshot
KHT_WING_CLIP = GetSpellInfo(195645) -- Wing Clip
 
-- Azerite Powers