This commit is contained in:
tercio
2014-04-10 20:24:56 -03:00
parent 6ac6d7fd71
commit a569c7fbc4
11 changed files with 353 additions and 200 deletions
+8 -2
View File
@@ -95,6 +95,8 @@ function _detalhes:IsFirstRun()
end
for key, value in pairs (_detalhes.default_player_data) do
--> check if key exists
if (_detalhes_database [key] == nil) then
if (type (value) == "table") then
_detalhes_database [key] = table_deepcopy (_detalhes.default_player_data [key])
@@ -103,6 +105,7 @@ function _detalhes:IsFirstRun()
end
end
--> copy the key from saved table to details object
if (type (value) == "table") then
_detalhes [key] = table_deepcopy (_detalhes_database [key])
else
@@ -117,6 +120,8 @@ function _detalhes:IsFirstRun()
end
for key, value in pairs (_detalhes.default_global_data) do
--> check if key exists
if (_detalhes_global [key] == nil) then
if (type (value) == "table") then
_detalhes_global [key] = table_deepcopy (_detalhes.default_global_data [key])
@@ -125,6 +130,7 @@ function _detalhes:IsFirstRun()
end
end
--> copy the key from saved table to details object
if (type (value) == "table") then
_detalhes [key] = table_deepcopy (_detalhes_global [key])
else
@@ -161,14 +167,14 @@ function _detalhes:LoadCombatTables()
_detalhes.tabela_pets = _detalhes_database.tabela_pets or _detalhes.container_pets:NovoContainer()
--> if the core revision was incremented, reset all combat data
if (_detalhes.last_realversion < _detalhes.realversion) then
if (_detalhes_database.last_realversion and _detalhes_database.last_realversion < _detalhes.realversion) then
--> details was been hard upgraded
_detalhes.tabela_historico = _detalhes.historico:NovoHistorico()
_detalhes.tabela_pets = _detalhes.container_pets:NovoContainer()
_detalhes.tabela_overall = _detalhes.combate:NovaTabela()
_detalhes.tabela_vigente = _detalhes.combate:NovaTabela (_, _detalhes.tabela_overall)
end
--> re-build all indexes and metatables
_detalhes:RestauraMetaTables()
+3 -1
View File
@@ -407,7 +407,9 @@ function _detalhes:WipeConfig()
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
local b = CreateFrame ("button", nil, UIParent, "OptionsButtonTemplate")
local b = CreateFrame ("button", "DetailsResetConfigButton", UIParent, "OptionsButtonTemplate")
tinsert (UISpecialFrames, "DetailsResetConfigButton")
b:SetSize (250, 40)
b:SetText (Loc ["STRING_SLASH_WIPECONFIG_CONFIRM"])
b:SetScript ("OnClick", function() _detalhes.wipe_full_config = true; ReloadUI(); end)
+6 -4
View File
@@ -383,17 +383,19 @@ local _
instance_cprops = {
resetbutton_info = {text_color = {0.7, 0.7, 0.7, 1}, text_color_small = {0, 0, 0, 0}, text_face = "Friz Quadrata TT", text_size = 12, color_overlay = {1, 1, 1, 1}},
instancebutton_info = {text_color = {.7, .7, .7, 1}, text_face = "Friz Quadrata TT", text_size = 12, color_overlay = {1, 1, 1, 1}},
menu_anchor = {-18, 1},
menu_anchor = {-20, 1},
instance_button_anchor = {-27, 3},
hide_icon = true,
desaturated_menu = true,
bg_alpha = 0.3,
row_info = {texture = "Details D'ictum",
texture_class_colors = false,
row_info = {
texture = "Details Serenity",
texture_class_colors = true,
alpha = 1,
texture_background_class_color = false,
texture_background = "Details D'ictum",
fixed_texture_color = {0, 0, 0},
fixed_texture_background_color = {0, 0, 0, 0.30},
fixed_texture_background_color = {0, 0, 0, 0.471},
space = {left = 1, right = -2, between = 0},
},
wallpaper = {
+1
View File
@@ -1073,6 +1073,7 @@ do
[114030] = {120, 12}, -- Vigilance
[118038] = {120, 8}, -- Die by the Sword
[2565] = {90, 6}, -- Shield Block
[112048] = {90, 6}, -- Shield Barrier
["WARRIOR"] = {871, 12975, 23920, 114030, 118038}
}