Commit 5b678dba authored by Azilroka's avatar Azilroka

3.85

parent b2add48c
## Interface: 80000
## Title: |cff1784d1AddOnSkins|r
## Version: 3.84
## Version: 3.85
## Author: Azilroka, Whiro
## SavedVariables: AddOnSkinsDB, AddOnSkinsDS
## OptionalDeps: ProjectAzilroka, ElvUI, BuyEmAll, DSM, Tukui
......
......@@ -526,22 +526,22 @@ function AS:SkinNextPrevButton(Button, Vertical, Inverse)
Button:HookScript('OnMouseDown', function(self)
if self:IsEnabled() then
self.icon:SetPoint("CENTER", -1, -1);
self.icon:SetPoint("CENTER", -1, -1)
end
end)
Button:HookScript('OnMouseUp', function(self)
self.icon:SetPoint("CENTER", 0, 0);
self.icon:SetPoint("CENTER", 0, 0)
end)
Button:HookScript('OnDisable', function(self)
SetDesaturation(self.icon, true);
self.icon:SetAlpha(0.5);
SetDesaturation(self.icon, true)
self.icon:SetAlpha(0.5)
end)
Button:HookScript('OnEnable', function(self)
SetDesaturation(self.icon, false);
self.icon:SetAlpha(1.0);
SetDesaturation(self.icon, false)
self.icon:SetAlpha(1.0)
end)
if not Button:IsEnabled() then
......
......@@ -13,11 +13,11 @@ if IsAddOnLoaded('Tukui') and not IsAddOnLoaded('ProjectAzilroka') then
showAlert = 1,
maxLetters = 38,
EditBoxOnEscapePressed = function(self)
self:GetParent():Hide();
self:GetParent():Hide()
end,
OnShow = function(self)
self.editBox:SetText("https://www.tukui.org/addons.php?id=79");
self.editBox:SetFocus();
self.editBox:SetText("https://www.tukui.org/addons.php?id=79")
self.editBox:SetFocus()
end,
}
......@@ -29,7 +29,7 @@ end
local AddOn = LibStub('AceAddon-3.0'):NewAddon('AddOnSkins', 'AceEvent-3.0', 'AceHook-3.0')
Engine[1] = AddOn
Engine[2] = LibStub("AceLocale-3.0"):GetLocale('AddOnSkins', false);
Engine[2] = LibStub("AceLocale-3.0"):GetLocale('AddOnSkins', false)
_G.AddOnSkins = Engine
AddOnSkinsDS = {}
......
This diff is collapsed.
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('Ovale') then return end
function AS:Ovale()
hooksecurefunc(LibStub:GetLibrary("ovale/Icon").OvaleIcon, 'OvaleIcon_OnLoad', function(self)
AS:StripTextures(self.parent.frame)
if not self.frame.Backdrop then
AS:SkinBackdropFrame(self.frame, true)
self.frame.Backdrop:SetFrameLevel(0)
self.frame.Backdrop:SetAllPoints()
self.frame.Backdrop:SetScale(AS.UIScale)
end
if self.shortcut then
self.shortcut:ClearAllPoints()
self.shortcut:SetPoint('TOPLEFT', self.frame, 'TOPLEFT', -1, -3)
end
if self.icone then
self.icone:SetDrawLayer("ARTWORK")
AS:SkinTexture(self.icone)
self.icone:SetInside(self.Backdrop)
end
end)
end
AS:RegisterSkin('Ovale', AS.Ovale)
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('Ovale') then return end
function AS:Ovale()
hooksecurefunc(LibStub:GetLibrary("ovale/Icon").OvaleIcon, 'OvaleIcon_OnLoad', function(self)
AS:StripTextures(self.parent.frame)
if not self.frame.Backdrop then
AS:SkinBackdropFrame(self.frame, true)
self.frame.Backdrop:SetFrameLevel(0)
self.frame.Backdrop:SetAllPoints()
self.frame.Backdrop:SetScale(AS.UIScale)
end
if self.shortcut then
self.shortcut:ClearAllPoints()
self.shortcut:SetPoint('TOPLEFT', self.frame, 'TOPLEFT', -1, -3)
end
if self.icone then
self.icone:SetDrawLayer("ARTWORK")
AS:SkinTexture(self.icone)
self.icone:SetInside(self.Backdrop)
end
end)
end
AS:RegisterSkin('Ovale', AS.Ovale)
......@@ -289,44 +289,44 @@ function AS:Skillet()
_G['SkilletReagentParent']:SetScript('OnUpdate', SkinReagentIcon)
_G['SkilletPluginButton']:SetScript('PostClick', SkinPluginButtons)
local point, relativeTo, relativePoint, xOffset, yOffset;
local point, relativeTo, relativePoint, xOffset, yOffset
AS:SkinDropDownBox(SkilletFilterDropdown)
point, relativeTo, relativePoint, xOffset, yOffset = SkilletSearchBox:GetPoint();
SkilletSearchBox:SetPoint(point, relativeTo, relativePoint, xOffset-1, yOffset);
point, relativeTo, relativePoint, xOffset, yOffset = SkilletSearchBox:GetPoint()
SkilletSearchBox:SetPoint(point, relativeTo, relativePoint, xOffset-1, yOffset)
AS:SkinEditBox(SkilletSearchBox)
SkilletSearchBox:SetSize(125,18)
point, relativeTo, relativePoint, xOffset, yOffset = SkilletSearchFilterClear:GetPoint();
SkilletSearchFilterClear:SetPoint(point, relativeTo, relativePoint, xOffset+10, yOffset+2);
point, relativeTo, relativePoint, xOffset, yOffset = SkilletSearchFilterClear:GetPoint()
SkilletSearchFilterClear:SetPoint(point, relativeTo, relativePoint, xOffset+10, yOffset+2)
AS:SkinNextPrevButton(SkilletSearchFilterClear)
--SquareButton_SetIcon(SkilletSearchFilterClear, "DELETE")
SkilletSearchFilterClear:Size(18)
point, relativeTo, relativePoint, xOffset, yOffset = SkilletClearNumButton:GetPoint();
SkilletClearNumButton:SetPoint(point, relativeTo, relativePoint, xOffset+10, yOffset+2);
point, relativeTo, relativePoint, xOffset, yOffset = SkilletClearNumButton:GetPoint()
SkilletClearNumButton:SetPoint(point, relativeTo, relativePoint, xOffset+10, yOffset+2)
AS:SkinNextPrevButton(SkilletClearNumButton)
--SquareButton_SetIcon(SkilletClearNumButton, "DELETE")
SkilletClearNumButton:Size(18)
SkilletSortAscButton.text:SetText("")
point, relativeTo, relativePoint, xOffset, yOffset = SkilletSortAscButton:GetPoint();
SkilletSortAscButton:SetPoint(point, relativeTo, relativePoint, xOffset+3, yOffset);
point, relativeTo, relativePoint, xOffset, yOffset = SkilletSortAscButton:GetPoint()
SkilletSortAscButton:SetPoint(point, relativeTo, relativePoint, xOffset+3, yOffset)
AS:SkinNextPrevButton(SkilletSortAscButton, true, true)
SkilletSortAscButton:Size(18)
SkilletSortDescButton.text:SetText("")
point, relativeTo, relativePoint, xOffset, yOffset = SkilletSortDescButton:GetPoint();
SkilletSortDescButton:SetPoint(point, relativeTo, relativePoint, xOffset+3, yOffset);
point, relativeTo, relativePoint, xOffset, yOffset = SkilletSortDescButton:GetPoint()
SkilletSortDescButton:SetPoint(point, relativeTo, relativePoint, xOffset+3, yOffset)
AS:SkinNextPrevButton(SkilletSortDescButton, true, false)
SkilletSortDescButton:Size(18)
point, relativeTo, relativePoint, xOffset, yOffset = SkilletFilterOperations:GetPoint();
SkilletFilterOperations:SetPoint(point, relativeTo, relativePoint, xOffset+5, yOffset);
point, relativeTo, relativePoint, xOffset, yOffset = SkilletFilterOperations:GetPoint()
SkilletFilterOperations:SetPoint(point, relativeTo, relativePoint, xOffset+5, yOffset)
AS:SkinNextPrevButton(SkilletFilterOperations, false, false)
SkilletFilterOperations:Size(18)
point, relativeTo, relativePoint, xOffset, yOffset = SkilletRecipeGroupOperations:GetPoint();
SkilletRecipeGroupOperations:SetPoint(point, relativeTo, relativePoint, xOffset+5, yOffset);
point, relativeTo, relativePoint, xOffset, yOffset = SkilletRecipeGroupOperations:GetPoint()
SkilletRecipeGroupOperations:SetPoint(point, relativeTo, relativePoint, xOffset+5, yOffset)
AS:SkinNextPrevButton(SkilletRecipeGroupOperations, false, false)
SkilletRecipeGroupOperations:Size(18)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment