diff --git a/SVUI_!Core/Changelog-SVUI_!Core-r20150326011010.txt b/SVUI_!Core/Changelog-SVUI_!Core-r20150326011010.txt new file mode 100644 index 0000000..1afe5f3 --- /dev/null +++ b/SVUI_!Core/Changelog-SVUI_!Core-r20150326011010.txt @@ -0,0 +1,67 @@ +Steven Jackson: + - mail minion update + - rep bar and event changes + - rep bar and event changes + - AceGUI updates + - Changes for new Aura Procs + - revision 1.1.08 + - small updates + - Some unit aura and basic frame adjustments + - ActionBar fix + - customClassColor and debugging fixes + - time report fixed + - time report fixed + - odd errors fixed, filters saving again + - datatext updates + - datatext updates + - updated some presets, fixed auras by count, fixed totembars + - Changes for transfer wizard are now set + - update to data cleaning functions, reset and fix of report texts + - final touchup to libs + - Final revision of the Ace overrides + - Update to Ace hacks + - lib changes + - rollback on embedded libdatabroker + - rollback on embedded libdatabroker + - lib changes + - fixed dockable options + - minor version update, revised profiles and data + - Fixed bad aurabar filter crashes and colorpicker crashes + - toc update + - Last minute adjustments to default presets + - toc update + - Cleaning bad globals and option lua errors + - updates + - Updated chat, maps and more + - Updated chat, maps and more + - toc update + - fixes for automations, and custom profiles + - toc update + - ace modifications + - Fixed exp bug and custom profiles + - Fixed profiles, filters and lua errors + - Fixed profiles, filters and vendoring + - api updates + - transfer wizard code added + - api updates + - api updates + - Styling update of quest items and garrison panels + - build update + - issue #60 and #61 fixed + - release 1.0.04 + - fixed more installer issues, visual adjustments + - Combat closing of anchors fixed + - toc updates + - colors, installer, profiles updated + - installer issues fixed + - more updates + - toc update + - pkgmeta update + - fix for struct part 2 + - fix for file struct + - changing for packager + - Updating to the new core + - Cleaning up +Munglunch: + - 5.4.2 + - First Commit diff --git a/SVUI_!Core/SVUI_!Core.toc b/SVUI_!Core/SVUI_!Core.toc index f538f3e..392c6ee 100644 --- a/SVUI_!Core/SVUI_!Core.toc +++ b/SVUI_!Core/SVUI_!Core.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cff00FF00!Core|r ## Notes: SVUI [|cff9911FFCore Framework|r]. ## SavedVariables: SVUI_Global, SVUI_Errors, SVUI_Filters, SVUI_Media diff --git a/SVUI_!Core/libs/_SVUI_Lib/LUA.lua b/SVUI_!Core/libs/_SVUI_Lib/LUA.lua index d882c72..6ed615d 100644 --- a/SVUI_!Core/libs/_SVUI_Lib/LUA.lua +++ b/SVUI_!Core/libs/_SVUI_Lib/LUA.lua @@ -36,13 +36,6 @@ local math = _G.math; local floor = math.floor; local huge = math.huge; ------------------------------------------------------------------- ---FILE UTILITY - -function file_exists(name) - local f = io.open(name, "r") - if f ~= nil then io.close(f) return true else return false end -end -------------------------------------------------------------------- --MATH METHODS function math.parsefloat(value, decimal) diff --git a/SVUI_!Core/system/damage_text.lua b/SVUI_!Core/system/damage_text.lua index 4a0af0d..c200cfc 100644 --- a/SVUI_!Core/system/damage_text.lua +++ b/SVUI_!Core/system/damage_text.lua @@ -6,7 +6,7 @@ LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- -local _G = _G; +local _G = _G; local type = type; --[[ ########################################################## @@ -20,27 +20,12 @@ local BASE_DIR = "Interface\\AddOns\\SVUI_!Core\\%s.ttf"; local FONT_DIR = "Interface\\AddOns\\SVUI_!Core\\assets\\fonts\\%s.ttf"; --local FONTSIZE = 32; -local USER_FONT1 = BASE_DIR:format(FONT_NAME); -local USER_FONT2 = MAIN_DIR:format(FONT_NAME); -local SVUI_FONT = FONT_DIR:format(FONT_NAME); -local FALLBACK = DEFAULT_FONT_DIR:format(DEFAULT_FONT_NAME); +--local USER_FONT1 = BASE_DIR:format(FONT_NAME); +--local USER_FONT2 = MAIN_DIR:format(FONT_NAME); -local function ForceDamageFont() - local NEW_DAMAGE_FONT; - if(file_exists and type(file_exists) == 'function') then - if(file_exists(SVUI_FONT)) then - NEW_DAMAGE_FONT = SVUI_FONT; - elseif(file_exists(USER_FONT1)) then - NEW_DAMAGE_FONT = USER_FONT1; - elseif(file_exists(USER_FONT2)) then - NEW_DAMAGE_FONT = USER_FONT2; - end - - if(not NEW_DAMAGE_FONT) then return end - else - NEW_DAMAGE_FONT = "Interface\\AddOns\\SVUI_!Core\\assets\\fonts\\DAMAGE_TEXT_FONT.ttf" - end +local NEW_DAMAGE_FONT = FONT_DIR:format(FONT_NAME); +local function ForceDamageFont() _G.DAMAGE_TEXT_FONT = NEW_DAMAGE_FONT _G.COMBAT_TEXT_CRIT_SCALE_TIME = 0.7; _G.COMBAT_TEXT_SPACING = 15; diff --git a/SVUI_!Core/system/mail.lua b/SVUI_!Core/system/mail.lua index 992e41a..c55e37d 100644 --- a/SVUI_!Core/system/mail.lua +++ b/SVUI_!Core/system/mail.lua @@ -2,7 +2,7 @@ ############################################################################## S V U I By: Munglunch ############################################################################## ---]] +]]-- --[[ GLOBALS ]]-- local _G = _G; --LUA diff --git a/SVUI_!Options/SVUI_!Options.toc b/SVUI_!Options/SVUI_!Options.toc index 23c0d46..bba42cc 100644 --- a/SVUI_!Options/SVUI_!Options.toc +++ b/SVUI_!Options/SVUI_!Options.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cff00FF00!Options|r ## Notes: SVUI [|cff9911FFConfig Options|r] ## RequiredDeps: SVUI_!Core diff --git a/SVUI_!Options/UnitFrames.lua b/SVUI_!Options/UnitFrames.lua index b3b3a4e..1f85048 100644 --- a/SVUI_!Options/UnitFrames.lua +++ b/SVUI_!Options/UnitFrames.lua @@ -154,6 +154,7 @@ HELPER FUNCTIONS ########################################################## ]]-- function SVUIOptions:SetSizeConfigGroup(gridMode, unitName) + local sizeGroup = { order = 2, guiInline = true, @@ -4896,63 +4897,64 @@ SV.Options.args[Schema] = { name = L["Tank"], type = "group", order = 15, - childGroups = "tab", + childGroups = "select", get = function(l)return SV.db.UnitFrames["tank"][l[#l]]end, set = function(l, m)MOD:ChangeDBVar(m, l[#l], "tank");MOD:SetGroupFrame("tank")end, args = { enable = {type = "toggle", order = 1, name = L["Enable"]}, resetSettings = {type = "execute", order = 2, name = L["Restore Defaults"], func = function(l, m)MOD:ResetUnitOptions("tank")end}, - tabGroups = { + spacer1 = { order = 3, + name = "", + type = "description", + width = "full", + }, + spacer2 = { + order = 4, + name = "", + type = "description", + width = "full", + }, + commonGroup = { + order = 5, type = "group", - name = L["Unit Options"], - childGroups = "tree", + name = L["General Layout"], args = { - general = { + enable = { order = 1, - name = L["General Layout"], - type = "group", - guiInline = true, - args = { - enable = { - order = 1, - name = L["Enable Grid Mode"], - desc = L["Converts frames into symmetrical squares. Ideal for healers."], - type = "toggle", - get = function(key) return SV.db.UnitFrames["tank"].grid.enable end, - set = function(key, value) - MOD:ChangeDBVar(value, key[#key], "tank", "grid"); - MOD:SetGroupFrame("tank"); - SV.Options.args.UnitFrames.args.commonGroup.args.tank.args.tabGroups.args.sizing = SVUIOptions:SetSizeConfigGroup(value, "tank"); - end, - }, - invertGroupingOrder = { - order = 2, - type = "toggle", - name = L["Invert Grouping Order"], - desc = L["Enabling this inverts the grouping order."], - disabled = function() return not SV.db.UnitFrames["tank"].customSorting end, - }, - } + name = L["Enable Grid Mode"], + desc = L["Converts frames into symmetrical squares. Ideal for healers."], + type = "toggle", + get = function(key) return SV.db.UnitFrames["tank"].grid.enable end, + set = function(key, value) + MOD:ChangeDBVar(value, key[#key], "tank", "grid"); + MOD:SetGroupFrame("tank"); + SV.Options.args.UnitFrames.args.commonGroup.args.tank.args.tabGroups.args.sizing = SVUIOptions:SetSizeConfigGroup(value, "tank"); + end, }, - sizing = SVUIOptions:SetSizeConfigGroup(SV.db.UnitFrames.tank.grid.enable, "tank"), - name = SVUIOptions:SetNameConfigGroup(MOD.SetGroupFrame, "tank"), - targetsGroup = { + invertGroupingOrder = { order = 2, - type = "group", - name = L["Tank Target"], - guiInline = true, - get = function(l)return SV.db.UnitFrames["tank"]["targetsGroup"][l[#l]]end, - set = function(l, m)MOD:ChangeDBVar(m, l[#l], "tank", "targetsGroup");MOD:SetGroupFrame("tank")end, - args = { - enable = {type = "toggle", name = L["Enable"], order = 1}, - width = {order = 2, name = L["Width"], type = "range", min = 10, max = 500, step = 1}, - height = {order = 3, name = L["Height"], type = "range", min = 10, max = 250, step = 1}, - anchorPoint = {type = "select", order = 5, name = L["Anchor Point"], desc = L["What point to anchor to the frame you set to attach to."], values = {TOPLEFT = "TOPLEFT", LEFT = "LEFT", BOTTOMLEFT = "BOTTOMLEFT", RIGHT = "RIGHT", TOPRIGHT = "TOPRIGHT", BOTTOMRIGHT = "BOTTOMRIGHT", CENTER = "CENTER", TOP = "TOP", BOTTOM = "BOTTOM"}}, - xOffset = {order = 6, type = "range", name = L["xOffset"], desc = L["An X offset (in pixels) to be used when anchoring new frames."], min = -500, max = 500, step = 1}, - yOffset = {order = 7, type = "range", name = L["yOffset"], desc = L["An Y offset (in pixels) to be used when anchoring new frames."], min = -500, max = 500, step = 1} - } - } + type = "toggle", + name = L["Invert Grouping Order"], + desc = L["Enabling this inverts the grouping order."], + disabled = function() return not SV.db.UnitFrames["tank"].customSorting end, + }, + sizing = SVUIOptions:SetSizeConfigGroup(SV.db.UnitFrames.tank.grid.enable, "tank"), + } + }, + name = SVUIOptions:SetNameConfigGroup(MOD.SetGroupFrame, "tank"), + targetsGroup = { + type = "group", + name = L["Tank Target"], + get = function(l)return SV.db.UnitFrames["tank"]["targetsGroup"][l[#l]]end, + set = function(l, m)MOD:ChangeDBVar(m, l[#l], "tank", "targetsGroup");MOD:SetGroupFrame("tank")end, + args = { + enable = {type = "toggle", name = L["Enable"], order = 1}, + width = {order = 2, name = L["Width"], type = "range", min = 10, max = 500, step = 1}, + height = {order = 3, name = L["Height"], type = "range", min = 10, max = 250, step = 1}, + anchorPoint = {type = "select", order = 5, name = L["Anchor Point"], desc = L["What point to anchor to the frame you set to attach to."], values = {TOPLEFT = "TOPLEFT", LEFT = "LEFT", BOTTOMLEFT = "BOTTOMLEFT", RIGHT = "RIGHT", TOPRIGHT = "TOPRIGHT", BOTTOMRIGHT = "BOTTOMRIGHT", CENTER = "CENTER", TOP = "TOP", BOTTOM = "BOTTOM"}}, + xOffset = {order = 6, type = "range", name = L["xOffset"], desc = L["An X offset (in pixels) to be used when anchoring new frames."], min = -500, max = 500, step = 1}, + yOffset = {order = 7, type = "range", name = L["yOffset"], desc = L["An Y offset (in pixels) to be used when anchoring new frames."], min = -500, max = 500, step = 1} } } } @@ -4961,63 +4963,64 @@ SV.Options.args[Schema] = { name = L["Assist"], type = "group", order = 16, - childGroups = "tab", + childGroups = "select", get = function(l)return SV.db.UnitFrames["assist"][l[#l]]end, set = function(l, m)MOD:ChangeDBVar(m, l[#l], "assist");MOD:SetGroupFrame("assist")end, args = { enable = {type = "toggle", order = 1, name = L["Enable"]}, resetSettings = {type = "execute", order = 2, name = L["Restore Defaults"], func = function(l, m)MOD:ResetUnitOptions("assist")end}, - tabGroups = { + spacer1 = { order = 3, + name = "", + type = "description", + width = "full", + }, + spacer2 = { + order = 4, + name = "", + type = "description", + width = "full", + }, + commonGroup = { + order = 5, type = "group", - name = L["Unit Options"], - childGroups = "tree", + name = L["General Layout"], args = { - general = { + enable = { order = 1, - name = L["General Layout"], - type = "group", - guiInline = true, - args = { - enable = { - order = 1, - name = L["Enable Grid Mode"], - desc = L["Converts frames into symmetrical squares. Ideal for healers."], - type = "toggle", - get = function(key) return SV.db.UnitFrames["assist"].grid.enable end, - set = function(key, value) - MOD:ChangeDBVar(value, key[#key], "assist", "grid"); - MOD:SetGroupFrame("assist"); - SV.Options.args.UnitFrames.args.commonGroup.args.assist.args.tabGroups.args.sizing = SVUIOptions:SetSizeConfigGroup(value, "assist"); - end, - }, - invertGroupingOrder = { - order = 2, - type = "toggle", - name = L["Invert Grouping Order"], - desc = L["Enabling this inverts the grouping order."], - disabled = function() return not SV.db.UnitFrames["assist"].customSorting end, - }, - } + name = L["Enable Grid Mode"], + desc = L["Converts frames into symmetrical squares. Ideal for healers."], + type = "toggle", + get = function(key) return SV.db.UnitFrames["assist"].grid.enable end, + set = function(key, value) + MOD:ChangeDBVar(value, key[#key], "assist", "grid"); + MOD:SetGroupFrame("assist"); + SV.Options.args.UnitFrames.args.commonGroup.args.assist.args.tabGroups.args.sizing = SVUIOptions:SetSizeConfigGroup(value, "assist"); + end, }, - sizing = SVUIOptions:SetSizeConfigGroup(SV.db.UnitFrames.assist.grid.enable, "assist"), - name = SVUIOptions:SetNameConfigGroup(MOD.SetGroupFrame, "assist"), - targetsGroup = { + invertGroupingOrder = { order = 2, - type = "group", - name = L["Assist Target"], - guiInline = true, - get = function(l)return SV.db.UnitFrames["assist"]["targetsGroup"][l[#l]]end, - set = function(l, m)MOD:ChangeDBVar(m, l[#l], "assist", "targetsGroup");MOD:SetGroupFrame("assist")end, - args = { - enable = {type = "toggle", name = L["Enable"], order = 1}, - width = {order = 2, name = L["Width"], type = "range", min = 10, max = 500, step = 1}, - height = {order = 3, name = L["Height"], type = "range", min = 10, max = 250, step = 1}, - anchorPoint = {type = "select", order = 5, name = L["Anchor Point"], desc = L["What point to anchor to the frame you set to attach to."], values = {TOPLEFT = "TOPLEFT", LEFT = "LEFT", BOTTOMLEFT = "BOTTOMLEFT", RIGHT = "RIGHT", TOPRIGHT = "TOPRIGHT", BOTTOMRIGHT = "BOTTOMRIGHT", CENTER = "CENTER", TOP = "TOP", BOTTOM = "BOTTOM"}}, - xOffset = {order = 6, type = "range", name = L["xOffset"], desc = L["An X offset (in pixels) to be used when anchoring new frames."], min = -500, max = 500, step = 1}, - yOffset = {order = 7, type = "range", name = L["yOffset"], desc = L["An Y offset (in pixels) to be used when anchoring new frames."], min = -500, max = 500, step = 1} - } - } + type = "toggle", + name = L["Invert Grouping Order"], + desc = L["Enabling this inverts the grouping order."], + disabled = function() return not SV.db.UnitFrames["assist"].customSorting end, + }, + sizing = SVUIOptions:SetSizeConfigGroup(SV.db.UnitFrames.assist.grid.enable, "assist"), + } + }, + name = SVUIOptions:SetNameConfigGroup(MOD.SetGroupFrame, "assist"), + targetsGroup = { + type = "group", + name = L["Assist Target"], + get = function(l)return SV.db.UnitFrames["assist"]["targetsGroup"][l[#l]]end, + set = function(l, m)MOD:ChangeDBVar(m, l[#l], "assist", "targetsGroup");MOD:SetGroupFrame("assist")end, + args = { + enable = {type = "toggle", name = L["Enable"], order = 1}, + width = {order = 2, name = L["Width"], type = "range", min = 10, max = 500, step = 1}, + height = {order = 3, name = L["Height"], type = "range", min = 10, max = 250, step = 1}, + anchorPoint = {type = "select", order = 5, name = L["Anchor Point"], desc = L["What point to anchor to the frame you set to attach to."], values = {TOPLEFT = "TOPLEFT", LEFT = "LEFT", BOTTOMLEFT = "BOTTOMLEFT", RIGHT = "RIGHT", TOPRIGHT = "TOPRIGHT", BOTTOMRIGHT = "BOTTOMRIGHT", CENTER = "CENTER", TOP = "TOP", BOTTOM = "BOTTOM"}}, + xOffset = {order = 6, type = "range", name = L["xOffset"], desc = L["An X offset (in pixels) to be used when anchoring new frames."], min = -500, max = 500, step = 1}, + yOffset = {order = 7, type = "range", name = L["yOffset"], desc = L["An Y offset (in pixels) to be used when anchoring new frames."], min = -500, max = 500, step = 1} } } } diff --git a/SVUI_ActionBars/SVUI_ActionBars.toc b/SVUI_ActionBars/SVUI_ActionBars.toc index e4587bc..0b0ba73 100644 --- a/SVUI_ActionBars/SVUI_ActionBars.toc +++ b/SVUI_ActionBars/SVUI_ActionBars.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00Action Bars|r ## Notes: Action Bar Plugin for [|cff9911FFSVUI|r]. ## OptionalDeps: LibSharedMedia-3.0, LibActionButton-1.0 diff --git a/SVUI_Auras/SVUI_Auras.toc b/SVUI_Auras/SVUI_Auras.toc index 4d48b85..60d24e1 100644 --- a/SVUI_Auras/SVUI_Auras.toc +++ b/SVUI_Auras/SVUI_Auras.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00Auras|r ## Notes: Aura Plugin for [|cff9911FFSVUI|r]. ## OptionalDeps: LibSharedMedia-3.0 diff --git a/SVUI_Chat/Changelog-SVUI_Chat-r20150324231744.txt b/SVUI_Chat/Changelog-SVUI_Chat-r20150324231744.txt new file mode 100644 index 0000000..53d4a06 --- /dev/null +++ b/SVUI_Chat/Changelog-SVUI_Chat-r20150324231744.txt @@ -0,0 +1,16 @@ +Steven Jackson: + - AceGUI updates + - revision 1.1.08 + - short channel adjustment + - chat expanding from docks fixed + - minor version update, revised profiles and data + - Cleaning bad globals and optimizing code + - updates + - added shortening option + - new features + - fixed twitter functionality + - build update + - updating with core + - toc update + - fix for file struct + - First commit diff --git a/SVUI_Chat/SVUI_Chat.toc b/SVUI_Chat/SVUI_Chat.toc index 3e4f137..deab735 100644 --- a/SVUI_Chat/SVUI_Chat.toc +++ b/SVUI_Chat/SVUI_Chat.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00Chat|r ## Notes: Chat Plugin for [|cff9911FFSVUI|r]. ## SavedVariablesPerCharacter: SVUI_Private_ChatCache diff --git a/SVUI_CraftOMatic/Changelog-SVUI_CraftOMatic-r20150326011154.txt b/SVUI_CraftOMatic/Changelog-SVUI_CraftOMatic-r20150326011154.txt new file mode 100644 index 0000000..d134936 --- /dev/null +++ b/SVUI_CraftOMatic/Changelog-SVUI_CraftOMatic-r20150326011154.txt @@ -0,0 +1,13 @@ +Steven Jackson: + - archaeology mode fixed + - revision 1.1.08 + - archaeology mode fixed + - updates + - minor version update, revised profiles and data + - Cleaning bad globals and optimizing code + - updates + - build update + - release 1.0.04 + - updating with core + - toc update + - first commit diff --git a/SVUI_Inventory/SVUI_Inventory.lua b/SVUI_Inventory/SVUI_Inventory.lua index 2c1ad96..b4b3f2e 100644 --- a/SVUI_Inventory/SVUI_Inventory.lua +++ b/SVUI_Inventory/SVUI_Inventory.lua @@ -1596,6 +1596,7 @@ end local function _openBags() + --print('_openBags') GameTooltip:Hide() MOD.BagFrame:Show() MOD.BagFrame:RefreshBags() @@ -1606,6 +1607,7 @@ local function _openBags() end local function _closeBags() + --print('_closeBags') GameTooltip:Hide() MOD.BagFrame:Hide() if(MOD.BankFrame) then @@ -1624,8 +1626,9 @@ local function _closeBags() end local function _toggleBags(id) + --print('_toggleBags') if(IsOptionFrameOpen() or (id and (GetContainerNumSlots(id) == 0))) then return end - if(MOD.BagFrame:IsShown() or (not IsBagOpen(0))) then + if(MOD.BagFrame:IsShown()) then _closeBags() else _openBags() diff --git a/SVUI_Inventory/SVUI_Inventory.toc b/SVUI_Inventory/SVUI_Inventory.toc index 6482cd8..748cc9e 100644 --- a/SVUI_Inventory/SVUI_Inventory.toc +++ b/SVUI_Inventory/SVUI_Inventory.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00Inventory|r ## Notes: Inventory Plugin for [|cff9911FFSVUI|r]. ## SavedVariables: SVUI_LootCache diff --git a/SVUI_Maps/SVUI_Maps.toc b/SVUI_Maps/SVUI_Maps.toc index 2493c99..da2674b 100644 --- a/SVUI_Maps/SVUI_Maps.toc +++ b/SVUI_Maps/SVUI_Maps.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00Maps|r ## Notes: Maps Plugin for [|cff9911FFSVUI|r]. ## OptionalDeps: LibSharedMedia-3.0 diff --git a/SVUI_NamePlates/SVUI_NamePlates.toc b/SVUI_NamePlates/SVUI_NamePlates.toc index 1bacc38..8bb6571 100644 --- a/SVUI_NamePlates/SVUI_NamePlates.toc +++ b/SVUI_NamePlates/SVUI_NamePlates.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00NamePlates|r ## Notes: NamePlates Plugin for [|cff9911FFSVUI|r]. ## OptionalDeps: LibSharedMedia-3.0 diff --git a/SVUI_QuestTracker/SVUI_QuestTracker.toc b/SVUI_QuestTracker/SVUI_QuestTracker.toc index 2b9c198..fefee03 100644 --- a/SVUI_QuestTracker/SVUI_QuestTracker.toc +++ b/SVUI_QuestTracker/SVUI_QuestTracker.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00QuestTracker|r ## Notes: QuestTracker Plugin for [|cff9911FFSVUI|r]. ## OptionalDeps: LibSharedMedia-3.0 diff --git a/SVUI_Skins/Changelog-SVUI_Skins-r20150324231800.txt b/SVUI_Skins/Changelog-SVUI_Skins-r20150324231800.txt new file mode 100644 index 0000000..fced307 --- /dev/null +++ b/SVUI_Skins/Changelog-SVUI_Skins-r20150324231800.txt @@ -0,0 +1,30 @@ +Steven Jackson: + - AceGUI updates + - revision 1.1.08 + - garrison button skins update + - several failing skins fixed + - odd errors fixed, cooldown addons skinned better + - tradeskill change + - update to data cleaning functions + - several failing skins fixed + - lib changes + - fixed dockable options + - minor version update, revised profiles and data + - Battle pet list shows levels again + - Cleaning bad globals and optimizing code + - updates + - misc bug fixed + - fixes for automations, and custom profiles + - ace modifications, petbattle adjustments + - Fixed profiles, filters and lua errors + - updated styles in interface options + - api updates + - Styling update of quest items and garrison panels + - build update + - 6.1 style update + - updating with core + - toc update + - DBM fix + - more updates + - fix for file struct + - First Commit diff --git a/SVUI_Skins/SVUI_Skins.toc b/SVUI_Skins/SVUI_Skins.toc index 1685d01..04cbd81 100644 --- a/SVUI_Skins/SVUI_Skins.toc +++ b/SVUI_Skins/SVUI_Skins.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch, Azilroka, Sortokk -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00Skins|r ## Notes: SVUI [|cff9911FFSkins System and AddOn Frames|r]. ## SavedVariables: SVUIUI_STYLE_GLOBAL diff --git a/SVUI_Skins/components/blizzard/character.lua b/SVUI_Skins/components/blizzard/character.lua index b066e9e..6d71ca5 100644 --- a/SVUI_Skins/components/blizzard/character.lua +++ b/SVUI_Skins/components/blizzard/character.lua @@ -198,6 +198,7 @@ local function PaperDollTitlesPane_OnShow() btn.BgTop:SetTexture("") btn.BgBottom:SetTexture("") btn.BgMiddle:SetTexture("") + SV:FontManager(btn.text, "default") end end PaperDollTitlesPane_Update() diff --git a/SVUI_Skins/components/blizzard/dressup.lua b/SVUI_Skins/components/blizzard/dressup.lua new file mode 100644 index 0000000..49f70b6 --- /dev/null +++ b/SVUI_Skins/components/blizzard/dressup.lua @@ -0,0 +1,47 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +DRESSUP MODR +########################################################## +]]-- +local function DressUpStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.dressingroom ~= true then + return + end + + DressUpFrame:ModSize(500, 600) + SV.API:Set("Window", DressUpFrame, true, true) + + DressUpModel:ClearAllPoints() + DressUpModel:ModPoint("TOPLEFT", DressUpFrame, "TOPLEFT", 12, -76) + DressUpModel:ModPoint("BOTTOMRIGHT", DressUpFrame, "BOTTOMRIGHT", -12, 36) + + DressUpModel:SetStyle("!_Frame", "Model") + + DressUpFrameCancelButton:ModPoint("BOTTOMRIGHT", DressUpFrame, "BOTTOMRIGHT", -12, 12) + DressUpFrameCancelButton:SetStyle("Button") + + DressUpFrameResetButton:ModPoint("RIGHT", DressUpFrameCancelButton, "LEFT", -12, 0) + DressUpFrameResetButton:SetStyle("Button") + + SV.API:Set("CloseButton", DressUpFrameCloseButton, DressUpFrame.Panel) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(DressUpStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/gossip.lua b/SVUI_Skins/components/blizzard/gossip.lua new file mode 100644 index 0000000..3991830 --- /dev/null +++ b/SVUI_Skins/components/blizzard/gossip.lua @@ -0,0 +1,75 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +local ipairs = _G.ipairs; +local pairs = _G.pairs; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +GOSSIP MODR +########################################################## +]]-- +local function GossipStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.gossip ~= true then return end + + SV.API:Set("Window", GossipFrame, true, true) + + ItemTextFrame:RemoveTextures(true) + ItemTextScrollFrame:RemoveTextures() + SV.API:Set("CloseButton", GossipFrameCloseButton) + SV.API:Set("PageButton", ItemTextPrevPageButton) + SV.API:Set("PageButton", ItemTextNextPageButton) + ItemTextPageText:SetTextColor(1, 1, 1) + hooksecurefunc(ItemTextPageText, "SetTextColor", function(q, k, l, m) + if k ~= 1 or l ~= 1 or m ~= 1 then + ItemTextPageText:SetTextColor(1, 1, 1) + end + end) + ItemTextFrame:SetStyle("Frame", "Pattern") + ItemTextFrameInset:Die() + SV.API:Set("ScrollFrame", ItemTextScrollFrameScrollBar) + SV.API:Set("CloseButton", ItemTextFrameCloseButton) + local r = {"GossipFrameGreetingPanel", "GossipFrameInset", "GossipGreetingScrollFrame"} + SV.API:Set("ScrollFrame", GossipGreetingScrollFrameScrollBar, 5) + for s, t in pairs(r)do + _G[t]:RemoveTextures() + end + GossipFrame:SetStyle("Frame", "Window") + GossipGreetingScrollFrame:SetStyle("!_Frame", "Inset", true) + GossipGreetingScrollFrame.spellTex = GossipGreetingScrollFrame:CreateTexture(nil, "ARTWORK") + GossipGreetingScrollFrame.spellTex:SetTexture([[Interface\QuestFrame\QuestBG]]) + GossipGreetingScrollFrame.spellTex:SetPoint("TOPLEFT", 2, -2) + GossipGreetingScrollFrame.spellTex:ModSize(506, 615) + GossipGreetingScrollFrame.spellTex:SetTexCoord(0, 1, 0.02, 1) + _G["GossipFramePortrait"]:Die() + _G["GossipFrameGreetingGoodbyeButton"]:RemoveTextures() + _G["GossipFrameGreetingGoodbyeButton"]:SetStyle("Button") + SV.API:Set("CloseButton", GossipFrameCloseButton, GossipFrame.Panel) + + NPCFriendshipStatusBar:RemoveTextures() + NPCFriendshipStatusBar:SetStatusBarTexture(SV.media.statusbar.default) + NPCFriendshipStatusBar:SetStyle("Frame", "Bar") + + NPCFriendshipStatusBar:ClearAllPoints() + NPCFriendshipStatusBar:SetPoint("TOPLEFT", GossipFrame, "TOPLEFT", 58, -34) + + NPCFriendshipStatusBar.icon:ModSize(32,32) + NPCFriendshipStatusBar.icon:ClearAllPoints() + NPCFriendshipStatusBar.icon:SetPoint("RIGHT", NPCFriendshipStatusBar, "LEFT", 0, -2) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(GossipStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/loothistory.lua b/SVUI_Skins/components/blizzard/loothistory.lua new file mode 100644 index 0000000..72b197a --- /dev/null +++ b/SVUI_Skins/components/blizzard/loothistory.lua @@ -0,0 +1,150 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +local math = _G.math; +--[[ MATH METHODS ]]-- +local ceil = math.ceil; -- Basic +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +HELPERS +########################################################## +]]-- +local MissingLootFrame_OnShow = function(self) + local numMissing = GetNumMissingLootItems() + for i = 1, numMissing do + local slot = _G["MissingLootFrameItem"..i] + local icon = slot.icon; + SV.API:Set("ItemButton", slot, true) + local texture, name, count, quality = GetMissingLootItemInfo(i); + local r,g,b,hex = GetItemQualityColor(quality) + if(not r) then + r,g,b = 0,0,0 + end + icon:SetTexture(texture) + _G.MissingLootFrame:SetBackdropBorderColor(r,g,b) + end + local calc = (ceil(numMissing * 0.5) * 43) + 38 + _G.MissingLootFrame:SetHeight(calc + _G.MissingLootFrameLabel:GetHeight()) +end + +local LootHistoryFrame_OnUpdate = function(self) + local numItems = _G.C_LootHistory.GetNumItems() + for i = 1, numItems do + local frame = _G.LootHistoryFrame.itemFrames[i] + if not frame.isStyled then + local Icon = frame.Icon:GetTexture() + frame:RemoveTextures() + frame.Icon:SetTexture(Icon) + frame.Icon:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + + frame:SetStyle("!_Frame", "Button") + frame.Panel:WrapPoints(frame.Icon) + frame.Icon:SetParent(frame.Panel) + + frame.isStyled = true + end + end +end + +local _hook_MasterLootFrame_OnShow = function() + local MasterLooterFrame = _G.MasterLooterFrame; + local item = MasterLooterFrame.Item; + local LootFrame = _G.LootFrame; + if item then + local icon = item.Icon; + local tex = icon:GetTexture() + local colors = ITEM_QUALITY_COLORS[LootFrame.selectedQuality] + item:RemoveTextures() + icon:SetTexture(tex) + icon:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + item:SetStyle("Frame", "Pattern") + item.Panel:WrapPoints(icon) + item:SetBackdropBorderColor(colors.r, colors.g, colors.b) + end + for i = 1, MasterLooterFrame:GetNumChildren()do + local child = select(i, MasterLooterFrame:GetChildren()) + if child and not child.isStyled and not child:GetName() then + if child:GetObjectType() == "Button" then + if child:GetPushedTexture() then + SV.API:Set("CloseButton", child) + else + child:SetStyle("!_Frame") + child:SetStyle("Button") + end + child.isStyled = true + end + end + end +end +--[[ +########################################################## +LOOTHISTORY MODR +########################################################## +]]-- +local function LootHistoryStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.loot ~= true then return end + + local MasterLooterFrame = _G.MasterLooterFrame; + local MissingLootFrame = _G.MissingLootFrame; + local LootHistoryFrame = _G.LootHistoryFrame; + local BonusRollFrame = _G.BonusRollFrame; + local MissingLootFramePassButton = _G.MissingLootFramePassButton; + + LootHistoryFrame:SetFrameStrata('HIGH') + + MissingLootFrame:RemoveTextures() + MissingLootFrame:SetStyle("Frame", "Pattern") + + SV.API:Set("CloseButton", MissingLootFramePassButton) + hooksecurefunc("MissingLootFrame_Show", MissingLootFrame_OnShow) + LootHistoryFrame:RemoveTextures() + SV.API:Set("CloseButton", LootHistoryFrame.CloseButton) + LootHistoryFrame:RemoveTextures() + LootHistoryFrame:SetStyle("!_Frame", 'Transparent') + SV.API:Set("CloseButton", LootHistoryFrame.ResizeButton) + LootHistoryFrame.ResizeButton:SetStyle("!_Frame") + LootHistoryFrame.ResizeButton:ModWidth(LootHistoryFrame:GetWidth()) + LootHistoryFrame.ResizeButton:ModHeight(19) + LootHistoryFrame.ResizeButton:ClearAllPoints() + LootHistoryFrame.ResizeButton:ModPoint("TOP", LootHistoryFrame, "BOTTOM", 0, -2) + LootHistoryFrame.ResizeButton:SetNormalTexture("") + + local txt = LootHistoryFrame.ResizeButton:CreateFontString(nil,"OVERLAY") + txt:SetFont(SV.media.font.default, 14, "NONE") + txt:SetAllPoints(LootHistoryFrame.ResizeButton) + txt:SetJustifyH("CENTER") + txt:SetText("RESIZE") + + LootHistoryFrameScrollFrame:RemoveTextures() + SV.API:Set("ScrollFrame", LootHistoryFrameScrollFrameScrollBar) + hooksecurefunc("LootHistoryFrame_FullUpdate", LootHistoryFrame_OnUpdate) + + MasterLooterFrame:RemoveTextures() + MasterLooterFrame:SetStyle("!_Frame") + MasterLooterFrame:SetFrameStrata('FULLSCREEN_DIALOG') + + hooksecurefunc("MasterLooterFrame_Show", _hook_MasterLootFrame_OnShow) + + BonusRollFrame:RemoveTextures() + SV.API:Set("Alert", BonusRollFrame) + BonusRollFrame.PromptFrame.Icon:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + BonusRollFrame.PromptFrame.Timer.Bar:SetTexture(SV.media.statusbar.default) + BonusRollFrame.PromptFrame.Timer.Bar:SetVertexColor(0.1, 1, 0.1) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(LootHistoryStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/lossofcontrol.lua b/SVUI_Skins/components/blizzard/lossofcontrol.lua new file mode 100644 index 0000000..c0a609b --- /dev/null +++ b/SVUI_Skins/components/blizzard/lossofcontrol.lua @@ -0,0 +1,57 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +LOSSOFCONTROL MODR +########################################################## +]]-- +local _hook_LossOfControl = function(self, ...) + self.Icon:ClearAllPoints() + self.Icon:SetPoint("CENTER", self, "CENTER", 0, 0) + self.AbilityName:ClearAllPoints() + self.AbilityName:SetPoint("BOTTOM", self, 0, -28) + self.AbilityName.scrollTime = nil; + self.AbilityName:SetFont(SV.media.font.dialog, 20, 'OUTLINE') + self.TimeLeft.NumberText:ClearAllPoints() + self.TimeLeft.NumberText:SetPoint("BOTTOM", self, 4, -58) + self.TimeLeft.NumberText.scrollTime = nil; + self.TimeLeft.NumberText:SetFont(SV.media.font.number, 20, 'OUTLINE') + self.TimeLeft.SecondsText:ClearAllPoints() + self.TimeLeft.SecondsText:SetPoint("BOTTOM", self, 0, -80) + self.TimeLeft.SecondsText.scrollTime = nil; + self.TimeLeft.SecondsText:SetFont(SV.media.font.default, 20, 'OUTLINE') + if self.Anim:IsPlaying() then + self.Anim:Stop() + end +end + +local function LossOfControlStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.losscontrol ~= true then return end + local IconBackdrop = CreateFrame("Frame", nil, LossOfControlFrame) + IconBackdrop:WrapPoints(LossOfControlFrame.Icon) + IconBackdrop:SetFrameLevel(LossOfControlFrame:GetFrameLevel()-1) + IconBackdrop:SetStyle("Frame", "Icon") + LossOfControlFrame.Icon:SetTexCoord(.1, .9, .1, .9) + LossOfControlFrame:RemoveTextures() + LossOfControlFrame.AbilityName:ClearAllPoints() + --local bg = CreateFrame("Frame", nil, LossOfControlFrame) + hooksecurefunc("LossOfControlFrame_SetUpDisplay", _hook_LossOfControl) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(LossOfControlStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/mailbox.lua b/SVUI_Skins/components/blizzard/mailbox.lua new file mode 100644 index 0000000..052ad42 --- /dev/null +++ b/SVUI_Skins/components/blizzard/mailbox.lua @@ -0,0 +1,139 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +HELPERS +########################################################## +]]-- +local function MailFrame_OnUpdate() + for b = 1, ATTACHMENTS_MAX_SEND do + local d = _G["SendMailAttachment"..b] + if not d.styled then + d:RemoveTextures()d:SetStyle("!_Frame", "Default") + d:SetStyle("Button") + d.styled = true + end + local e = d:GetNormalTexture() + if e then + e:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + e:InsetPoints() + end + end +end +--[[ +########################################################## +MAILBOX MODR +########################################################## +]]-- +local function MailBoxStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.mail ~= true then return end + + SV.API:Set("Window", MailFrame) + + for b = 1, INBOXITEMS_TO_DISPLAY do + local i = _G["MailItem"..b] + i:RemoveTextures() + i:SetStyle("Frame", "Inset") + i.Panel:ModPoint("TOPLEFT", 2, 1) + i.Panel:ModPoint("BOTTOMRIGHT", -2, 2) + local d = _G["MailItem"..b.."Button"] + d:RemoveTextures() + d:SetStyle("Button") + local e = _G["MailItem"..b.."ButtonIcon"] + e:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + e:InsetPoints() + end + SV.API:Set("CloseButton", MailFrameCloseButton) + SV.API:Set("PageButton", InboxPrevPageButton) + SV.API:Set("PageButton", InboxNextPageButton) + MailFrameTab1:RemoveTextures() + MailFrameTab2:RemoveTextures() + SV.API:Set("Tab", MailFrameTab1) + SV.API:Set("Tab", MailFrameTab2) + SendMailScrollFrame:RemoveTextures(true) + SendMailScrollFrame:SetStyle("!_Frame", "Inset") + SV.API:Set("ScrollFrame", SendMailScrollFrameScrollBar) + SendMailNameEditBox:SetStyle("Editbox") + SendMailSubjectEditBox:SetStyle("Editbox") + SendMailMoneyGold:SetStyle("Editbox") + SendMailMoneySilver:SetStyle("Editbox") + SendMailMoneyCopper:SetStyle("Editbox") + SendMailMoneyBg:Die() + SendMailMoneyInset:RemoveTextures() + + _G["SendMailMoneySilver"]:SetStyle("Editbox") + _G["SendMailMoneySilver"].Panel:ModPoint("TOPLEFT", -2, 1) + _G["SendMailMoneySilver"].Panel:ModPoint("BOTTOMRIGHT", -12, -1) + _G["SendMailMoneySilver"]:SetTextInsets(-1, -1, -2, -2) + + _G["SendMailMoneyCopper"]:SetStyle("Editbox") + _G["SendMailMoneyCopper"].Panel:ModPoint("TOPLEFT", -2, 1) + _G["SendMailMoneyCopper"].Panel:ModPoint("BOTTOMRIGHT", -12, -1) + _G["SendMailMoneyCopper"]:SetTextInsets(-1, -1, -2, -2) + + SendMailNameEditBox.Panel:ModPoint("BOTTOMRIGHT", 2, 4) + SendMailSubjectEditBox.Panel:ModPoint("BOTTOMRIGHT", 2, 0) + SendMailFrame:RemoveTextures() + + hooksecurefunc("SendMailFrame_Update", MailFrame_OnUpdate) + SendMailMailButton:SetStyle("Button") + SendMailCancelButton:SetStyle("Button") + OpenMailFrame:RemoveTextures(true) + OpenMailFrame:SetStyle("!_Frame", "Transparent", true) + OpenMailFrameInset:Die() + SV.API:Set("CloseButton", OpenMailFrameCloseButton) + OpenMailReportSpamButton:SetStyle("Button") + OpenMailReplyButton:SetStyle("Button") + OpenMailDeleteButton:SetStyle("Button") + OpenMailCancelButton:SetStyle("Button") + InboxFrame:RemoveTextures() + MailFrameInset:Die() + OpenMailScrollFrame:RemoveTextures(true) + OpenMailScrollFrame:SetStyle("!_Frame", "Default") + SV.API:Set("ScrollFrame", OpenMailScrollFrameScrollBar) + SendMailBodyEditBox:SetTextColor(1, 1, 1) + OpenMailBodyText:SetTextColor(1, 1, 1) + InvoiceTextFontNormal:SetTextColor(1, 1, 1) + OpenMailArithmeticLine:Die() + OpenMailLetterButton:RemoveTextures() + OpenMailLetterButton:SetStyle("!_Frame", "Default") + OpenMailLetterButton:SetStyle("Button") + OpenMailLetterButtonIconTexture:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + OpenMailLetterButtonIconTexture:InsetPoints() + OpenMailMoneyButton:RemoveTextures() + OpenMailMoneyButton:SetStyle("!_Frame", "Default") + OpenMailMoneyButton:SetStyle("Button") + OpenMailMoneyButtonIconTexture:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + OpenMailMoneyButtonIconTexture:InsetPoints() + for b = 1, ATTACHMENTS_MAX_SEND do + local d = _G["OpenMailAttachmentButton"..b] + d:RemoveTextures() + d:SetStyle("Button") + local e = _G["OpenMailAttachmentButton"..b.."IconTexture"] + if e then + e:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + e:InsetPoints() + end + end + OpenMailReplyButton:ModPoint("RIGHT", OpenMailDeleteButton, "LEFT", -2, 0) + OpenMailDeleteButton:ModPoint("RIGHT", OpenMailCancelButton, "LEFT", -2, 0) + SendMailMailButton:ModPoint("RIGHT", SendMailCancelButton, "LEFT", -2, 0) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(MailBoxStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/merchant.lua b/SVUI_Skins/components/blizzard/merchant.lua new file mode 100644 index 0000000..3e0389e --- /dev/null +++ b/SVUI_Skins/components/blizzard/merchant.lua @@ -0,0 +1,86 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +FRAME MODR +########################################################## +]]-- +local function MerchantStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.merchant ~= true then return end + MerchantFrame:RemoveTextures(true) + MerchantFrame:SetStyle("Frame", "Window", false, nil, 2, 4) + local level = MerchantFrame:GetFrameLevel() + if(level > 0) then + MerchantFrame:SetFrameLevel(level - 1) + else + MerchantFrame:SetFrameLevel(0) + end + MerchantBuyBackItem:RemoveTextures(true) + MerchantBuyBackItem:SetStyle("Frame", "Inset", true, 2, 2, 3) + MerchantBuyBackItem.Panel:SetFrameLevel(MerchantBuyBackItem.Panel:GetFrameLevel() + 1) + MerchantBuyBackItemItemButton:RemoveTextures() + MerchantBuyBackItemItemButton:SetStyle("Button") + MerchantExtraCurrencyInset:RemoveTextures() + MerchantExtraCurrencyBg:RemoveTextures() + MerchantFrameInset:RemoveTextures() + MerchantMoneyBg:RemoveTextures() + MerchantMoneyInset:RemoveTextures() + MerchantFrameInset:SetStyle("Frame", "Inset") + MerchantFrameInset.Panel:SetFrameLevel(MerchantFrameInset.Panel:GetFrameLevel() + 1) + SV.API:Set("DropDown", MerchantFrameLootFilter) + for b = 1, 2 do + SV.API:Set("Tab", _G["MerchantFrameTab"..b]) + end + for b = 1, 12 do + local d = _G["MerchantItem"..b.."ItemButton"] + local e = _G["MerchantItem"..b.."ItemButtonIconTexture"] + local o = _G["MerchantItem"..b]o:RemoveTextures(true) + o:SetStyle("!_Frame", "Inset") + d:RemoveTextures() + d:SetStyle("Button") + d:ModPoint("TOPLEFT", o, "TOPLEFT", 4, -4) + e:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + e:InsetPoints() + _G["MerchantItem"..b.."MoneyFrame"]:ClearAllPoints() + _G["MerchantItem"..b.."MoneyFrame"]:ModPoint("BOTTOMLEFT", d, "BOTTOMRIGHT", 3, 0) + end + MerchantBuyBackItemItemButton:RemoveTextures() + MerchantBuyBackItemItemButton:SetStyle("Button") + MerchantBuyBackItemItemButtonIconTexture:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + MerchantBuyBackItemItemButtonIconTexture:InsetPoints() + MerchantRepairItemButton:SetStyle("Button") + for b = 1, MerchantRepairItemButton:GetNumRegions()do + local p = select(b, MerchantRepairItemButton:GetRegions()) + if p:GetObjectType() == "Texture"then + p:SetTexCoord(0.04, 0.24, 0.06, 0.5) + p:InsetPoints() + end + end MerchantGuildBankRepairButton:SetStyle("Button") + MerchantGuildBankRepairButtonIcon:SetTexCoord(0.61, 0.82, 0.1, 0.52) + MerchantGuildBankRepairButtonIcon:InsetPoints() + MerchantRepairAllButton:SetStyle("Button") + MerchantRepairAllIcon:SetTexCoord(0.34, 0.1, 0.34, 0.535, 0.535, 0.1, 0.535, 0.535) + MerchantRepairAllIcon:InsetPoints() + MerchantFrame:ModWidth(360) + SV.API:Set("CloseButton", MerchantFrameCloseButton, MerchantFrame.Panel) + SV.API:Set("PageButton", MerchantNextPageButton) + SV.API:Set("PageButton", MerchantPrevPageButton) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(MerchantStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/petition.lua b/SVUI_Skins/components/blizzard/petition.lua new file mode 100644 index 0000000..bfd8bc8 --- /dev/null +++ b/SVUI_Skins/components/blizzard/petition.lua @@ -0,0 +1,59 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +PETITIONFRAME MODR +########################################################## +]]-- +local function PetitionFrameStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.petition ~= true then + return + end + + SV.API:Set("Window", PetitionFrame, nil, true) + PetitionFrameInset:Die() + + PetitionFrameSignButton:SetStyle("Button") + PetitionFrameRequestButton:SetStyle("Button") + PetitionFrameRenameButton:SetStyle("Button") + PetitionFrameCancelButton:SetStyle("Button") + + SV.API:Set("CloseButton", PetitionFrameCloseButton) + + PetitionFrameCharterTitle:SetTextColor(1, 1, 0) + PetitionFrameCharterName:SetTextColor(1, 1, 1) + PetitionFrameMasterTitle:SetTextColor(1, 1, 0) + PetitionFrameMasterName:SetTextColor(1, 1, 1) + PetitionFrameMemberTitle:SetTextColor(1, 1, 0) + + for i=1, 9 do + local frameName = ("PetitionFrameMemberName%d"):format(i) + local frame = _G[frameName]; + if(frame) then + frame:SetTextColor(1, 1, 1) + end + end + + PetitionFrameInstructions:SetTextColor(1, 1, 1) + + PetitionFrameRenameButton:ModPoint("LEFT", PetitionFrameRequestButton, "RIGHT", 3, 0) + PetitionFrameRenameButton:ModPoint("RIGHT", PetitionFrameCancelButton, "LEFT", -3, 0) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(PetitionFrameStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/petstable.lua b/SVUI_Skins/components/blizzard/petstable.lua new file mode 100644 index 0000000..a16cbc3 --- /dev/null +++ b/SVUI_Skins/components/blizzard/petstable.lua @@ -0,0 +1,46 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +PETSTABLE MODR +########################################################## +]]-- +local function PetStableStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.stable ~= true then return end + PetStableFrame:RemoveTextures() + PetStableFrameInset:RemoveTextures() + PetStableLeftInset:RemoveTextures() + PetStableBottomInset:RemoveTextures() + PetStableFrame:SetStyle("Frame", "Window") + PetStableFrameInset:SetStyle("!_Frame", 'Inset') + SV.API:Set("CloseButton", PetStableFrameCloseButton) + PetStablePrevPageButton:SetStyle("Button") + PetStableNextPageButton:SetStyle("Button") + SV.API:Set("PageButton", PetStablePrevPageButton) + SV.API:Set("PageButton", PetStableNextPageButton) + for j = 1, NUM_PET_ACTIVE_SLOTS do + SV.API:Set("ItemButton", _G['PetStableActivePet'..j], true) + end + for j = 1, NUM_PET_STABLE_SLOTS do + SV.API:Set("ItemButton", _G['PetStableStabledPet'..j], true) + end + PetStableSelectedPetIcon:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(PetStableStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/quest.lua b/SVUI_Skins/components/blizzard/quest.lua index 517095c..b0adc5a 100644 --- a/SVUI_Skins/components/blizzard/quest.lua +++ b/SVUI_Skins/components/blizzard/quest.lua @@ -1,10 +1,8 @@ -l--[[ +--[[ ############################################################################## S V U I By: Munglunch ############################################################################## -credit: Elv. original logic from ElvUI. Adapted to SVUI # -############################################################################## ---]] +]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; diff --git a/SVUI_Skins/components/blizzard/tabard.lua b/SVUI_Skins/components/blizzard/tabard.lua new file mode 100644 index 0000000..832ed2f --- /dev/null +++ b/SVUI_Skins/components/blizzard/tabard.lua @@ -0,0 +1,91 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +local ipairs = _G.ipairs; +local pairs = _G.pairs; +local type = _G.type; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +HELPERS +########################################################## +]]-- +local function cleanT(a,b) + for c=1,a:GetNumRegions()do + local d=select(c,a:GetRegions()) + if d and d:GetObjectType()=="Texture"then + local n=d:GetName(); + if n=='TabardFrameEmblemTopRight' or n=='TabardFrameEmblemTopLeft' or n=='TabardFrameEmblemBottomRight' or n=='TabardFrameEmblemBottomLeft' then return end + if b and type(b)=='boolean'then + d:Die() + elseif d:GetDrawLayer()==b then + d:SetTexture("") + elseif b and type(b)=='string'and d:GetTexture()~=b then + d:SetTexture("") + else + d:SetTexture("") + end + end + end +end +--[[ +########################################################## +TABARDFRAME MODR +########################################################## +]]-- +local function TabardFrameStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.tabard ~= true then + return + end + cleanT(TabardFrame, true) + TabardFrame:SetStyle("Frame", "Window2", false) + TabardModel:SetStyle("!_Frame", "Transparent") + TabardFrameCancelButton:SetStyle("Button") + TabardFrameAcceptButton:SetStyle("Button") + SV.API:Set("CloseButton", TabardFrameCloseButton) + TabardFrameCostFrame:RemoveTextures() + TabardFrameCustomizationFrame:RemoveTextures() + TabardFrameInset:Die() + TabardFrameMoneyInset:Die() + TabardFrameMoneyBg:RemoveTextures() + for b = 1, 5 do + local c = "TabardFrameCustomization"..b;_G[c]:RemoveTextures() + SV.API:Set("PageButton", _G[c.."LeftButton"]) + SV.API:Set("PageButton", _G[c.."RightButton"]) + if b > 1 then + _G[c]:ClearAllPoints() + _G[c]:ModPoint("TOP", _G["TabardFrameCustomization"..b-1], "BOTTOM", 0, -6) + else + local d, e, f, g, h = _G[c]:GetPoint() + _G[c]:ModPoint(d, e, f, g, h + 4) + end + end + TabardCharacterModelRotateLeftButton:SetPoint("BOTTOMLEFT", 4, 4) + TabardCharacterModelRotateRightButton:SetPoint("TOPLEFT", TabardCharacterModelRotateLeftButton, "TOPRIGHT", 4, 0) + hooksecurefunc(TabardCharacterModelRotateLeftButton, "SetPoint", function(self, d, j, k, l, m) + if d ~= "BOTTOMLEFT" or l ~= 4 or m ~= 4 then + self:SetPoint("BOTTOMLEFT", 4, 4) + end + end) + hooksecurefunc(TabardCharacterModelRotateRightButton, "SetPoint", function(self, d, j, k, l, m) + if d ~= "TOPLEFT" or l ~= 4 or m ~= 0 then + self:SetPoint("TOPLEFT", _G.TabardCharacterModelRotateLeftButton, "TOPRIGHT", 4, 0) + end + end) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(TabardFrameStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/taxi.lua b/SVUI_Skins/components/blizzard/taxi.lua new file mode 100644 index 0000000..b20d4ba --- /dev/null +++ b/SVUI_Skins/components/blizzard/taxi.lua @@ -0,0 +1,37 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +TAXIFRAME MODR +########################################################## +]]-- +local function TaxiStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.taxi ~= true then + return + end + + SV.API:Set("Window", TaxiFrame) + + --TaxiRouteMap:SetStyle("Frame", "Blackout") + --TaxiRouteMap.Panel:WrapPoints(TaxiRouteMap, 4, 4) + + SV.API:Set("CloseButton", TaxiFrame.CloseButton) +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(TaxiStyle) \ No newline at end of file diff --git a/SVUI_Skins/components/blizzard/trade.lua b/SVUI_Skins/components/blizzard/trade.lua new file mode 100644 index 0000000..454356c --- /dev/null +++ b/SVUI_Skins/components/blizzard/trade.lua @@ -0,0 +1,110 @@ +--[[ +############################################################################## +S V U I By: Munglunch +############################################################################## +--]] +--[[ GLOBALS ]]-- +local _G = _G; +local unpack = _G.unpack; +local select = _G.select; +local ipairs = _G.ipairs; +local pairs = _G.pairs; +local type = _G.type; +--[[ ADDON ]]-- +local SV = _G['SVUI']; +local L = SV.L; +local MOD = SV.Skins; +local Schema = MOD.Schema; +--[[ +########################################################## +TRADEFRAME MODR +########################################################## +]]-- +local function TradeFrameStyle() + if SV.db.Skins.blizzard.enable ~= true or SV.db.Skins.blizzard.trade ~= true then + return + end + + SV.API:Set("Window", TradeFrame, true) + + TradeFrameInset:Die() + TradeFrameTradeButton:SetStyle("Button") + TradeFrameCancelButton:SetStyle("Button") + SV.API:Set("CloseButton", TradeFrameCloseButton, TradeFrame.Panel) + TradePlayerInputMoneyFrameGold:SetStyle("Editbox") + TradePlayerInputMoneyFrameSilver:SetStyle("Editbox") + TradePlayerInputMoneyFrameCopper:SetStyle("Editbox") + TradeRecipientItemsInset:Die() + TradePlayerItemsInset:Die() + TradePlayerInputMoneyInset:Die() + TradePlayerEnchantInset:Die() + TradeRecipientEnchantInset:Die() + TradeRecipientMoneyInset:Die() + TradeRecipientMoneyBg:Die() + local inputs = { + "TradePlayerInputMoneyFrameSilver", + "TradePlayerInputMoneyFrameCopper" + } + for _,frame in pairs(inputs)do + _G[frame]:SetStyle("Editbox") + _G[frame].Panel:ModPoint("TOPLEFT", -2, 1) + _G[frame].Panel:ModPoint("BOTTOMRIGHT", -12, -1) + _G[frame]:SetTextInsets(-1, -1, -2, -2) + end + for i = 1, 7 do + local W = _G["TradePlayerItem"..i] + local X = _G["TradeRecipientItem"..i] + local Y = _G["TradePlayerItem"..i.."ItemButton"] + local Z = _G["TradeRecipientItem"..i.."ItemButton"] + local b = _G["TradePlayerItem"..i.."ItemButtonIconTexture"] + local z = _G["TradeRecipientItem"..i.."ItemButtonIconTexture"] + if Y and Z then + W:RemoveTextures() + X:RemoveTextures() + Y:RemoveTextures() + Z:RemoveTextures() + b:InsetPoints(Y) + b:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + Y:SetStyle("!_Frame", "Button", true) + Y:SetStyle("Button") + Y.bg = CreateFrame("Frame", nil, Y) + Y.bg:SetStyle("Frame", "Inset") + Y.bg:SetPoint("TOPLEFT", Y, "TOPRIGHT", 4, 0) + Y.bg:SetPoint("BOTTOMRIGHT", _G["TradePlayerItem"..i.."NameFrame"], "BOTTOMRIGHT", 0, 14) + Y.bg:SetFrameLevel(Y:GetFrameLevel()-3) + Y:SetFrameLevel(Y:GetFrameLevel()-1) + z:InsetPoints(Z) + z:SetTexCoord(unpack(_G.SVUI_ICON_COORDS)) + Z:SetStyle("!_Frame", "Button", true) + Z:SetStyle("Button") + Z.bg = CreateFrame("Frame", nil, Z) + Z.bg:SetStyle("Frame", "Inset") + Z.bg:SetPoint("TOPLEFT", Z, "TOPRIGHT", 4, 0) + Z.bg:SetPoint("BOTTOMRIGHT", _G["TradeRecipientItem"..i.."NameFrame"], "BOTTOMRIGHT", 0, 14) + Z.bg:SetFrameLevel(Z:GetFrameLevel()-3) + Z:SetFrameLevel(Z:GetFrameLevel()-1) + end + end + TradeHighlightPlayerTop:SetTexture(0, 1, 0, 0.2) + TradeHighlightPlayerBottom:SetTexture(0, 1, 0, 0.2) + TradeHighlightPlayerMiddle:SetTexture(0, 1, 0, 0.2) + TradeHighlightPlayer:SetFrameStrata("HIGH") + TradeHighlightPlayerEnchantTop:SetTexture(0, 1, 0, 0.2) + TradeHighlightPlayerEnchantBottom:SetTexture(0, 1, 0, 0.2) + TradeHighlightPlayerEnchantMiddle:SetTexture(0, 1, 0, 0.2) + TradeHighlightPlayerEnchant:SetFrameStrata("HIGH") + TradeHighlightRecipientTop:SetTexture(0, 1, 0, 0.2) + TradeHighlightRecipientBottom:SetTexture(0, 1, 0, 0.2) + TradeHighlightRecipientMiddle:SetTexture(0, 1, 0, 0.2) + TradeHighlightRecipient:SetFrameStrata("HIGH") + TradeHighlightRecipientEnchantTop:SetTexture(0, 1, 0, 0.2) + TradeHighlightRecipientEnchantBottom:SetTexture(0, 1, 0, 0.2) + TradeHighlightRecipientEnchantMiddle:SetTexture(0, 1, 0, 0.2) + TradeHighlightRecipientEnchant:SetFrameStrata("HIGH") +end +--[[ +########################################################## +MOD LOADING +########################################################## +]]-- +MOD:SaveCustomStyle(TradeFrameStyle) \ No newline at end of file diff --git a/SVUI_Tooltip/SVUI_Tooltip.toc b/SVUI_Tooltip/SVUI_Tooltip.toc index bc1053b..77eaabf 100644 --- a/SVUI_Tooltip/SVUI_Tooltip.toc +++ b/SVUI_Tooltip/SVUI_Tooltip.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00Tooltip|r ## Notes: Tooltip Plugin for [|cff9911FFSVUI|r]. ## OptionalDeps: LibSharedMedia-3.0 diff --git a/SVUI_UnitFrames/Changelog-SVUI_UnitFrames-r20150326011057.txt b/SVUI_UnitFrames/Changelog-SVUI_UnitFrames-r20150326011057.txt new file mode 100644 index 0000000..c6ee562 --- /dev/null +++ b/SVUI_UnitFrames/Changelog-SVUI_UnitFrames-r20150326011057.txt @@ -0,0 +1,25 @@ +Steven Jackson: + - totems and framelevel adjustments + - Some aura fixes for filtering + - revision 1.1.08 + - health bg update + - Some unit aura and basic frame adjustments + - customClassColor and debugging fixes + - All bugs squashed + - oUF_ActionPanel bug fixed + - border changes + - updated some presets, fixed auras by count, fixed totembars + - adjusted portrait and power element styling + - minor version update, revised profiles and data + - power bars hide when not needed + - Cleaning bad globals and optimizing code + - updates + - Fixed profiles, filters and lua errors + - api updates + - build update + - release 1.0.04 + - updating with core + - toc update + - color updates + - fix for file struct + - First commit diff --git a/SVUI_UnitFrames/SVUI_UnitFrames.toc b/SVUI_UnitFrames/SVUI_UnitFrames.toc index 68b2ef8..72f79a1 100644 --- a/SVUI_UnitFrames/SVUI_UnitFrames.toc +++ b/SVUI_UnitFrames/SVUI_UnitFrames.toc @@ -1,6 +1,6 @@ ## Interface: 60100 ## Author: Munglunch -## Version: 1.1.2 +## Version: 1.1.3 ## Title: |cffFF9900SuperVillain UI: |r|cffFFEF00UnitFrames|r ## Notes: UnitFrames Plugin for [|cff9911FFSVUI|r]. ## OptionalDeps: LibSharedMedia-3.0