Quantcast

Fixed bad aurabar filter crashes and colorpicker crashes

Steven Jackson [03-05-15 - 14:08]
Fixed bad aurabar filter crashes and colorpicker crashes
Filename
SVUI_!Core/Changelog-SVUI_!Core-r20150305030106.txt
SVUI_!Core/SVUI_!Core.toc
SVUI_!Core/filtering/defaults.lua
SVUI_!Core/system/media.lua
SVUI_!Core/system/overrides.lua
SVUI_!Options/SVUI_!Options.toc
SVUI_!Options/UnitFrames.lua
SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/AceGUI-3.0-SharedMediaWidgets.toc
SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/Libs/LibStub/LibStub.toc
diff --git a/SVUI_!Core/Changelog-SVUI_!Core-r20150305030106.txt b/SVUI_!Core/Changelog-SVUI_!Core-r20150305030106.txt
new file mode 100644
index 0000000..c29d6c8
--- /dev/null
+++ b/SVUI_!Core/Changelog-SVUI_!Core-r20150305030106.txt
@@ -0,0 +1,39 @@
+Steven Jackson:
+	- 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 4794424..6ae699b 100644
--- a/SVUI_!Core/SVUI_!Core.toc
+++ b/SVUI_!Core/SVUI_!Core.toc
@@ -1,6 +1,6 @@
 ## Interface: 60100
 ## Author: Munglunch
-## Version: 1.0.09
+## Version: 1.0.092
 ## Title: |cffFF9900SuperVillain UI: |r|cff00FF00!Core|r
 ## Notes: SVUI [|cff9911FFCore Framework|r].
 ## SavedVariables: SVUI_Global, SVUI_Errors, SVUI_Filters, SVUI_Media
@@ -21,7 +21,7 @@
 ## X-Curse-Project-Name: SuperVillain UI: Core
 ## X-Curse-Project-ID: supervillain-ui
 ## X-Curse-Repository-ID: wow/supervillain-ui/mainline
-## X-Curse-Packaged-Version: r20150305001852
+## X-Curse-Packaged-Version: r20150305030106
 ## X-Curse-Project-Name: SuperVillain UI: Core
 ## X-Curse-Project-ID: supervillain-ui
 ## X-Curse-Repository-ID: wow/supervillain-ui/mainline
diff --git a/SVUI_!Core/filtering/defaults.lua b/SVUI_!Core/filtering/defaults.lua
index de43eac..1f1b263 100644
--- a/SVUI_!Core/filtering/defaults.lua
+++ b/SVUI_!Core/filtering/defaults.lua
@@ -95,6 +95,17 @@ local function SanitizeFilters()
             SV.filters.PetBuffWatch[id] = nil
         end
     end
+
+    filter = SV.filters.AuraBars
+    for id, colorData in pairs(filter) do
+        if(type(id) ~= 'string') then
+            local newID = tostring(id)
+            SV.filters.AuraBars[id] = nil
+            if(newID) then
+                SV.filters.AuraBars[newID] = {0.98, 0.57, 0.11}
+            end
+        end
+    end
 end

 SV:NewScript(SanitizeFilters);
\ No newline at end of file
diff --git a/SVUI_!Core/system/media.lua b/SVUI_!Core/system/media.lua
index d2fd42f..139881d 100644
--- a/SVUI_!Core/system/media.lua
+++ b/SVUI_!Core/system/media.lua
@@ -506,6 +506,20 @@ do
 			        bottom = 0,
 			    },
 			},
+			["darkened"] = {
+				bgFile = [[Interface\AddOns\SVUI_!Core\assets\backgrounds\DARK]],
+			    tile = false,
+			    tileSize = 0,
+			    edgeFile = [[Interface\AddOns\SVUI_!Core\assets\borders\SHADOW]],
+			    edgeSize = 3,
+			    insets =
+			    {
+			        left = 0,
+			        right = 0,
+			        top = 0,
+			        bottom = 0,
+			    },
+			},
 		}
 	};
 end
diff --git a/SVUI_!Core/system/overrides.lua b/SVUI_!Core/system/overrides.lua
index 7e5bde8..6988b2d 100644
--- a/SVUI_!Core/system/overrides.lua
+++ b/SVUI_!Core/system/overrides.lua
@@ -1005,8 +1005,8 @@ local function SetOverrides()
 		LootingEventFrame:SetScript("OnEvent", LootFrame_OnEvent);
 	end

-	ColorPickerFrame:RemoveTextures()
-	ColorPickerFrame:SetBackdrop(SV.media.backdrop.pattern)
+	ColorPickerFrame:SetFrameStrata("FULLSCREEN_DIALOG")
+	ColorPickerFrame:SetBackdrop(SV.media.backdrop.darkened)
 	ColorPickerFrame:SetFrameLevel(999)

 	AlterBlizzMainBar()
diff --git a/SVUI_!Options/SVUI_!Options.toc b/SVUI_!Options/SVUI_!Options.toc
index 84b05ea..8aaf6ba 100644
--- a/SVUI_!Options/SVUI_!Options.toc
+++ b/SVUI_!Options/SVUI_!Options.toc
@@ -19,7 +19,7 @@
 ## X-Curse-Project-Name: SuperVillain UI: Core
 ## X-Curse-Project-ID: supervillain-ui
 ## X-Curse-Repository-ID: wow/supervillain-ui/mainline
-## X-Curse-Packaged-Version: r20150305001852
+## X-Curse-Packaged-Version: r20150305030106
 ## X-Curse-Project-Name: SuperVillain UI: Core
 ## X-Curse-Project-ID: supervillain-ui
 ## X-Curse-Repository-ID: wow/supervillain-ui/mainline
diff --git a/SVUI_!Options/UnitFrames.lua b/SVUI_!Options/UnitFrames.lua
index 64531ae..d85cb42 100644
--- a/SVUI_!Options/UnitFrames.lua
+++ b/SVUI_!Options/UnitFrames.lua
@@ -1781,7 +1781,7 @@ end
 SV:GenerateFontOptionGroup("UnitFrame", 6, "Fonts used in unit frames.", unitFonts)

 SVUIOptions.FilterOptionGroups['AuraBars'] = function(selectedSpell)
-	local FILTER = SV.filters.AuraBars or {};
+	if(not SV.filters.AuraBars) then SV.filters.AuraBars = {} end;

 	local RESULT = {
 		type = "group",
@@ -1802,8 +1802,8 @@ SVUIOptions.FilterOptionGroups['AuraBars'] = function(selectedSpell)
 						SV:AddonMessage(L["Value must be a number"])
 					elseif(not GetSpellInfo(spellID)) then
 						SV:AddonMessage(L["Not valid spell id"])
-					elseif not FILTER[spellID] then
-						FILTER[spellID] = false
+					elseif not SV.filters.AuraBars[value] then
+						SV.filters.AuraBars[value] = false
 						MOD:SetUnitFrame("player")
 						MOD:SetUnitFrame("target")
 						MOD:SetUnitFrame("focus")
@@ -1819,27 +1819,31 @@ SVUIOptions.FilterOptionGroups['AuraBars'] = function(selectedSpell)
 				guiInline = true,
 				disabled = function()
 					local EMPTY = true;
-					for g in pairs(FILTER) do
+					for g in pairs(SV.filters.AuraBars) do
 						EMPTY = false;
 					end
 					return EMPTY
 				end,
 				values = function()
 					wipe(tempFilterTable)
-					for id, filterData in pairs(FILTER) do
-						if(type(id) == 'string') then
-							local spellID = tonumber(id)
-							local auraName = GetSpellInfo(spellID)
-							if(auraName) then
-								tempFilterTable[id] = auraName
-							end
+					for stringID,color in pairs(SV.filters.AuraBars) do
+						local spellID
+						if(type(stringID) ~= 'number') then
+							spellID = tonumber(stringID)
+						else
+							spellID = stringID
+							stringID = tostring(stringID)
 						end
-					end
+						local auraName = GetSpellInfo(spellID)
+						tempFilterTable[stringID] = auraName
+						--print(stringID)print(auraName)print('-----')
+					end
 					return tempFilterTable
 				end,
 				get = function(key) return "" end,
 				set = function(key, value)
-					FILTER[value] = nil
+					--print(value)
+					SV.filters.AuraBars[value] = nil
 					MOD:SetUnitFrame("player")
 					MOD:SetUnitFrame("target")
 					MOD:SetUnitFrame("focus")
@@ -1858,7 +1862,7 @@ SVUIOptions.FilterOptionGroups['AuraBars'] = function(selectedSpell)
 				values = function()
 					wipe(tempFilterTable)
 					tempFilterTable[""] = NONE;
-					for stringID,color in pairs(FILTER) do
+					for stringID,color in pairs(SV.filters.AuraBars) do
 						local spellID
 						if(type(stringID) ~= 'number') then
 							spellID = tonumber(stringID)
@@ -1879,9 +1883,9 @@ SVUIOptions.FilterOptionGroups['AuraBars'] = function(selectedSpell)
 end;

 SVUIOptions.FilterOptionSpells['AuraBars'] = function(selectedSpell)
-	local FILTER = SV.filters.AuraBars;
+	if(not SV.filters.AuraBars) then SV.filters.AuraBars = {} end;
 	local RESULT;
-	if(selectedSpell and (FILTER[selectedSpell] ~= nil)) then
+	if(selectedSpell and (SV.filters.AuraBars[selectedSpell] ~= nil)) then
 		RESULT = {
 			type = "group",
 			name = selectedSpell,
@@ -1893,7 +1897,7 @@ SVUIOptions.FilterOptionSpells['AuraBars'] = function(selectedSpell)
 					type = "color",
 					order = 1,
 					get = function(key)
-						local abColor = FILTER[selectedSpell]
+						local abColor = SV.filters.AuraBars[selectedSpell]
 						if type(abColor) == "boolean" then
 							return 0, 0, 0, 1
 						else
@@ -1901,7 +1905,7 @@ SVUIOptions.FilterOptionSpells['AuraBars'] = function(selectedSpell)
 						end
 					end,
 					set = function(key, r, g, b)
-						FILTER[selectedSpell] = {r, g, b}
+						SV.filters.AuraBars[selectedSpell] = {r, g, b}
 						MOD:SetUnitFrame("player")
 						MOD:SetUnitFrame("target")
 						MOD:SetUnitFrame("focus")
@@ -1912,7 +1916,7 @@ SVUIOptions.FilterOptionSpells['AuraBars'] = function(selectedSpell)
 					order = 2,
 					name = L["Restore Defaults"],
 					func = function(key, value)
-						FILTER[selectedSpell] = false;
+						SV.filters.AuraBars[selectedSpell] = false;
 						MOD:SetUnitFrame("player")
 						MOD:SetUnitFrame("target")
 						MOD:SetUnitFrame("focus")
diff --git a/SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/AceGUI-3.0-SharedMediaWidgets.toc b/SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/AceGUI-3.0-SharedMediaWidgets.toc
index f6f69e6..12c2e86 100644
--- a/SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/AceGUI-3.0-SharedMediaWidgets.toc
+++ b/SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/AceGUI-3.0-SharedMediaWidgets.toc
@@ -43,6 +43,10 @@
 ## X-Curse-Project-Name: SuperVillain UI: Core
 ## X-Curse-Project-ID: supervillain-ui
 ## X-Curse-Repository-ID: wow/supervillain-ui/mainline
+## X-Curse-Packaged-Version: r20150305030106
+## X-Curse-Project-Name: SuperVillain UI: Core
+## X-Curse-Project-ID: supervillain-ui
+## X-Curse-Repository-ID: wow/supervillain-ui/mainline

 ## Title: Lib: AceGUI-3.0-SharedMediaWidgets
 ## Notes: Enables AceGUI-3.0 widgets for the 5 basic SharedMedia-3.0 types
diff --git a/SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/Libs/LibStub/LibStub.toc b/SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/Libs/LibStub/LibStub.toc
index 922d3ba..a1736af 100644
--- a/SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/Libs/LibStub/LibStub.toc
+++ b/SVUI_!Options/libs/AceGUI-3.0-SharedMediaWidgets/Libs/LibStub/LibStub.toc
@@ -49,5 +49,9 @@
 ## X-Curse-Project-Name: SuperVillain UI: Core
 ## X-Curse-Project-ID: supervillain-ui
 ## X-Curse-Repository-ID: wow/supervillain-ui/mainline
+## X-Curse-Packaged-Version: r20150305030106
+## X-Curse-Project-Name: SuperVillain UI: Core
+## X-Curse-Project-ID: supervillain-ui
+## X-Curse-Repository-ID: wow/supervillain-ui/mainline

 LibStub.lua