Default skin updates
This commit is contained in:
@@ -904,7 +904,8 @@ local default_profile = {
|
|||||||
fontsize_title = 10,
|
fontsize_title = 10,
|
||||||
fontcolor = {1, 1, 1, 1},
|
fontcolor = {1, 1, 1, 1},
|
||||||
fontcolor_right = {1, 0.7, 0, 1}, --{1, 0.9254, 0.6078, 1}
|
fontcolor_right = {1, 0.7, 0, 1}, --{1, 0.9254, 0.6078, 1}
|
||||||
fontshadow = false,
|
fontshadow = true,
|
||||||
|
fontcontour = {0, 0, 0, 1},
|
||||||
bar_color = {0.3960, 0.3960, 0.3960, 0.8700},
|
bar_color = {0.3960, 0.3960, 0.3960, 0.8700},
|
||||||
background = {0.0941, 0.0941, 0.0941, 0.8},
|
background = {0.0941, 0.0941, 0.0941, 0.8},
|
||||||
divisor_color = {1, 1, 1, 1},
|
divisor_color = {1, 1, 1, 1},
|
||||||
@@ -1277,10 +1278,10 @@ local default_global_data = {
|
|||||||
font_color = {0.9, 0.9, 0.9, 0.923},
|
font_color = {0.9, 0.9, 0.9, 0.923},
|
||||||
font_outline = "NONE",
|
font_outline = "NONE",
|
||||||
font_face = "DEFAULT",
|
font_face = "DEFAULT",
|
||||||
bar_texture = "Skyline",
|
bar_texture = "You Are the Best!",
|
||||||
},
|
},
|
||||||
|
|
||||||
frame_background_color = {0.1215, 0.1176, 0.1294, 0.8},
|
frame_background_color = {0.0549, 0.0549, 0.0549, 0.934},
|
||||||
|
|
||||||
--/run Details.breakdown_spell_tab.spellcontainer_height = 311 --352
|
--/run Details.breakdown_spell_tab.spellcontainer_height = 311 --352
|
||||||
--breakdown spell tab
|
--breakdown spell tab
|
||||||
|
|||||||
+178
-178
@@ -31,12 +31,12 @@ local addonName, Details222 = ...
|
|||||||
Details:Msg("cannot install a skin without 'skin.no_cache' before 'Details.IsLoaded()' is true.")
|
Details:Msg("cannot install a skin without 'skin.no_cache' before 'Details.IsLoaded()' is true.")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
skin_table.author = skin_table.author or ""
|
skin_table.author = skin_table.author or ""
|
||||||
skin_table.version = skin_table.version or ""
|
skin_table.version = skin_table.version or ""
|
||||||
skin_table.site = skin_table.site or ""
|
skin_table.site = skin_table.site or ""
|
||||||
skin_table.desc = skin_table.desc or ""
|
skin_table.desc = skin_table.desc or ""
|
||||||
|
|
||||||
_detalhes.skins [skin_name] = skin_table
|
_detalhes.skins [skin_name] = skin_table
|
||||||
|
|
||||||
--check instances waiting for a skin
|
--check instances waiting for a skin
|
||||||
@@ -54,11 +54,11 @@ local addonName, Details222 = ...
|
|||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
function _detalhes:GetSkin (skin_name)
|
function _detalhes:GetSkin (skin_name)
|
||||||
return _detalhes.skins [skin_name]
|
return _detalhes.skins [skin_name]
|
||||||
end
|
end
|
||||||
|
|
||||||
local reset_tooltip = function()
|
local reset_tooltip = function()
|
||||||
_detalhes:SetTooltipBackdrop("Blizzard Tooltip", 16, {1, 1, 1, 1})
|
_detalhes:SetTooltipBackdrop("Blizzard Tooltip", 16, {1, 1, 1, 1})
|
||||||
_detalhes:DelayOptionsRefresh()
|
_detalhes:DelayOptionsRefresh()
|
||||||
@@ -71,21 +71,21 @@ local addonName, Details222 = ...
|
|||||||
_detalhes:SetTooltipBackdrop("Blizzard Tooltip", 16, {1, 1, 1, 0})
|
_detalhes:SetTooltipBackdrop("Blizzard Tooltip", 16, {1, 1, 1, 0})
|
||||||
_detalhes:DelayOptionsRefresh()
|
_detalhes:DelayOptionsRefresh()
|
||||||
end
|
end
|
||||||
|
|
||||||
--install wow interface skin:
|
--install wow interface skin:
|
||||||
_detalhes:InstallSkin ("WoW Interface", {
|
_detalhes:InstallSkin ("WoW Interface", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\default_skin.blp]],
|
file = [[Interface\AddOns\Details\images\skins\default_skin.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "This was the first skin made for Details!, inspired in the standard wow interface",
|
desc = "This was the first skin made for Details!, inspired in the standard wow interface",
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
can_change_alpha_head = false,
|
can_change_alpha_head = false,
|
||||||
icon_anchor_main = {-1, 1},
|
icon_anchor_main = {-1, 1},
|
||||||
icon_anchor_plugins = {-9, -7},
|
icon_anchor_plugins = {-9, -7},
|
||||||
icon_plugins_size = {19, 19},
|
icon_plugins_size = {19, 19},
|
||||||
|
|
||||||
-- the four anchors:
|
-- the four anchors:
|
||||||
icon_point_anchor = {-37, 0},
|
icon_point_anchor = {-37, 0},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
@@ -94,12 +94,12 @@ local addonName, Details222 = ...
|
|||||||
icon_point_anchor_bottom = {-37, 0},
|
icon_point_anchor_bottom = {-37, 0},
|
||||||
left_corner_anchor_bottom = {-107, 0},
|
left_corner_anchor_bottom = {-107, 0},
|
||||||
right_corner_anchor_bottom = {96, 0},
|
right_corner_anchor_bottom = {96, 0},
|
||||||
|
|
||||||
attribute_icon_anchor = {34, -6},
|
attribute_icon_anchor = {34, -6},
|
||||||
attribute_icon_size = 24,
|
attribute_icon_size = 24,
|
||||||
|
|
||||||
micro_frames = {left = "DETAILS_STATUSBAR_PLUGIN_THREAT"},
|
micro_frames = {left = "DETAILS_STATUSBAR_PLUGIN_THREAT"},
|
||||||
|
|
||||||
instance_cprops = {
|
instance_cprops = {
|
||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
["menu_icons_size"] = 0.85,
|
["menu_icons_size"] = 0.85,
|
||||||
@@ -278,7 +278,7 @@ local addonName, Details222 = ...
|
|||||||
["hide_icon"] = false,
|
["hide_icon"] = false,
|
||||||
["bg_b"] = 0.0941,
|
["bg_b"] = 0.0941,
|
||||||
},
|
},
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
@@ -286,14 +286,14 @@ local addonName, Details222 = ...
|
|||||||
})
|
})
|
||||||
|
|
||||||
local Minimalistic_Shadow = function()
|
local Minimalistic_Shadow = function()
|
||||||
|
|
||||||
local instance = _G.DetailsOptionsWindow and _G.DetailsOptionsWindow.instance
|
local instance = _G.DetailsOptionsWindow and _G.DetailsOptionsWindow.instance
|
||||||
|
|
||||||
if (instance) then
|
if (instance) then
|
||||||
instance:ToolbarMenuSetButtonsOptions (nil, true)
|
instance:ToolbarMenuSetButtonsOptions (nil, true)
|
||||||
instance:AttributeMenu (nil, nil, nil, nil, nil, nil, nil, true)
|
instance:AttributeMenu (nil, nil, nil, nil, nil, nil, nil, true)
|
||||||
instance:AttributeMenu (nil, nil, 4)
|
instance:AttributeMenu (nil, nil, 4)
|
||||||
|
|
||||||
if (_detalhes.options_group_edit) then
|
if (_detalhes.options_group_edit) then
|
||||||
for _, this_instance in ipairs(instance:GetInstanceGroup()) do
|
for _, this_instance in ipairs(instance:GetInstanceGroup()) do
|
||||||
if (this_instance ~= instance) then
|
if (this_instance ~= instance) then
|
||||||
@@ -303,33 +303,33 @@ local addonName, Details222 = ...
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
_detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance)
|
_detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
_detalhes:InstallSkin ("Minimalistic", {
|
_detalhes:InstallSkin ("Minimalistic", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\classic_skin_v1.blp]],
|
file = [[Interface\AddOns\Details\images\skins\classic_skin_v1]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "Simple skin with soft gray color and half transparent frames.", --\n
|
desc = "Simple skin with soft gray color and half transparent frames.", --\n
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
--micro frames
|
--micro frames
|
||||||
micro_frames = {
|
micro_frames = {
|
||||||
color = {1, 1, 1, 1},
|
color = {1, 1, 1, 1},
|
||||||
font = "Accidental Presidency",
|
font = "Accidental Presidency",
|
||||||
size = 10,
|
size = 10,
|
||||||
textymod = 1,
|
textymod = 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
can_change_alpha_head = true,
|
can_change_alpha_head = true,
|
||||||
icon_anchor_main = {-1, -5},
|
icon_anchor_main = {-1, -5},
|
||||||
icon_anchor_plugins = {-7, -13},
|
icon_anchor_plugins = {-7, -13},
|
||||||
icon_plugins_size = {19, 18},
|
icon_plugins_size = {19, 18},
|
||||||
|
|
||||||
--anchors:
|
--anchors:
|
||||||
icon_point_anchor = {-37, 0},
|
icon_point_anchor = {-37, 0},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
@@ -347,10 +347,10 @@ local addonName, Details222 = ...
|
|||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
["menu_icons_size"] = 0.82,
|
["menu_icons_size"] = 0.82,
|
||||||
["color"] = {
|
["color"] = {
|
||||||
0.1215,
|
0.1137,
|
||||||
0.1176,
|
0.1098,
|
||||||
0.1294,
|
0.12156,
|
||||||
0.91,
|
0.9571,
|
||||||
},
|
},
|
||||||
["menu_anchor"] = {
|
["menu_anchor"] = {
|
||||||
20,
|
20,
|
||||||
@@ -360,7 +360,7 @@ local addonName, Details222 = ...
|
|||||||
["bg_r"] = 0.243,
|
["bg_r"] = 0.243,
|
||||||
["bg_g"] = 0.2352,
|
["bg_g"] = 0.2352,
|
||||||
["bg_b"] = 0.2588,
|
["bg_b"] = 0.2588,
|
||||||
["bg_alpha"] = 0.6,
|
["bg_alpha"] = 0.6901,
|
||||||
["color_buttons"] = {
|
["color_buttons"] = {
|
||||||
1, -- [1]
|
1, -- [1]
|
||||||
1, -- [2]
|
1, -- [2]
|
||||||
@@ -421,7 +421,7 @@ local addonName, Details222 = ...
|
|||||||
1, -- [2]
|
1, -- [2]
|
||||||
},
|
},
|
||||||
["toolbar_side"] = 1,
|
["toolbar_side"] = 1,
|
||||||
|
|
||||||
["backdrop_texture"] = "Details Ground",
|
["backdrop_texture"] = "Details Ground",
|
||||||
["show_statusbar"] = false,
|
["show_statusbar"] = false,
|
||||||
["show_sidebars"] = false,
|
["show_sidebars"] = false,
|
||||||
@@ -474,7 +474,7 @@ local addonName, Details222 = ...
|
|||||||
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
["textL_custom_text"] = "{data1}. {data3}{data2}",
|
||||||
["font_size"] = 16,
|
["font_size"] = 16,
|
||||||
["height"] = 21,
|
["height"] = 21,
|
||||||
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_hyanda",
|
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_textures\\bar_best.png",
|
||||||
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
|
||||||
["textR_bracket"] = "(",
|
["textR_bracket"] = "(",
|
||||||
["textR_enable_custom_text"] = false,
|
["textR_enable_custom_text"] = false,
|
||||||
@@ -485,7 +485,7 @@ local addonName, Details222 = ...
|
|||||||
},
|
},
|
||||||
["textL_show_number"] = true,
|
["textL_show_number"] = true,
|
||||||
["textR_custom_text"] = "{data1} ({data2}, {data3}%)",
|
["textR_custom_text"] = "{data1} ({data2}, {data3}%)",
|
||||||
["texture"] = "Details Hyanda",
|
["texture"] = "You Are the Best!",
|
||||||
["use_spec_icons"] = true,
|
["use_spec_icons"] = true,
|
||||||
["textR_class_colors"] = false,
|
["textR_class_colors"] = false,
|
||||||
["textL_class_colors"] = false,
|
["textL_class_colors"] = false,
|
||||||
@@ -525,40 +525,40 @@ local addonName, Details222 = ...
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
callback = function(skin, instance, just_updating)
|
callback = function(skin, instance, just_updating)
|
||||||
--none
|
--none
|
||||||
end,
|
end,
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{spacement = true, type = "button", name = "Shadowy Title Bar", func = Minimalistic_Shadow, desc = "Adds shadow on title bar components."},
|
{spacement = true, type = "button", name = "Shadowy Title Bar", func = Minimalistic_Shadow, desc = "Adds shadow on title bar components."},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
_detalhes:InstallSkin ("Minimalistic v2", {
|
_detalhes:InstallSkin ("Minimalistic v2", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\classic_skin.blp]],
|
file = [[Interface\AddOns\Details\images\skins\classic_skin.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "Same as the first Minimalistic, but this one is more darker and less transparent.",
|
desc = "Same as the first Minimalistic, but this one is more darker and less transparent.",
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
--micro frames
|
--micro frames
|
||||||
micro_frames = {
|
micro_frames = {
|
||||||
color = {1, 1, 1, 0.7},
|
color = {1, 1, 1, 0.7},
|
||||||
font = "Friz Quadrata TT",
|
font = "Friz Quadrata TT",
|
||||||
size = 9,
|
size = 9,
|
||||||
textymod = 0,
|
textymod = 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
can_change_alpha_head = true,
|
can_change_alpha_head = true,
|
||||||
icon_anchor_main = {-1, -5},
|
icon_anchor_main = {-1, -5},
|
||||||
icon_anchor_plugins = {-7, -13},
|
icon_anchor_plugins = {-7, -13},
|
||||||
icon_plugins_size = {19, 18},
|
icon_plugins_size = {19, 18},
|
||||||
|
|
||||||
--anchors:
|
--anchors:
|
||||||
icon_point_anchor = {-37, 0},
|
icon_point_anchor = {-37, 0},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
@@ -567,11 +567,11 @@ local addonName, Details222 = ...
|
|||||||
icon_point_anchor_bottom = {-37, 12},
|
icon_point_anchor_bottom = {-37, 12},
|
||||||
left_corner_anchor_bottom = {-107, 0},
|
left_corner_anchor_bottom = {-107, 0},
|
||||||
right_corner_anchor_bottom = {96, 0},
|
right_corner_anchor_bottom = {96, 0},
|
||||||
|
|
||||||
icon_on_top = true,
|
icon_on_top = true,
|
||||||
icon_ignore_alpha = true,
|
icon_ignore_alpha = true,
|
||||||
icon_titletext_position = {5, 4},
|
icon_titletext_position = {5, 4},
|
||||||
|
|
||||||
--overwrites
|
--overwrites
|
||||||
instance_cprops = {
|
instance_cprops = {
|
||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
@@ -748,41 +748,41 @@ local addonName, Details222 = ...
|
|||||||
},
|
},
|
||||||
["bg_b"] = 0.0941,
|
["bg_b"] = 0.0941,
|
||||||
},
|
},
|
||||||
|
|
||||||
callback = function(skin, instance, just_updating)
|
callback = function(skin, instance, just_updating)
|
||||||
--none
|
--none
|
||||||
end,
|
end,
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
_detalhes:InstallSkin ("Serenity", {
|
_detalhes:InstallSkin ("Serenity", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\flat_skin.blp]],
|
file = [[Interface\AddOns\Details\images\skins\flat_skin.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "Light blue, this skin fits on almost all interfaces.\n\nFor ElvUI interfaces, change the window color to black to get an compatible visual.",
|
desc = "Light blue, this skin fits on almost all interfaces.\n\nFor ElvUI interfaces, change the window color to black to get an compatible visual.",
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
--micro frames
|
--micro frames
|
||||||
micro_frames = {
|
micro_frames = {
|
||||||
left = "DETAILS_STATUSBAR_PLUGIN_PATTRIBUTE",
|
left = "DETAILS_STATUSBAR_PLUGIN_PATTRIBUTE",
|
||||||
color = {1, 1, 1, 0.7},
|
color = {1, 1, 1, 0.7},
|
||||||
font = "Accidental Presidency",
|
font = "Accidental Presidency",
|
||||||
size = 10,
|
size = 10,
|
||||||
textymod = 0,
|
textymod = 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
can_change_alpha_head = true,
|
can_change_alpha_head = true,
|
||||||
|
|
||||||
icon_anchor_main = {-1, -5},
|
icon_anchor_main = {-1, -5},
|
||||||
icon_anchor_plugins = {-7, -13},
|
icon_anchor_plugins = {-7, -13},
|
||||||
icon_plugins_size = {19, 18},
|
icon_plugins_size = {19, 18},
|
||||||
|
|
||||||
-- the four anchors:
|
-- the four anchors:
|
||||||
icon_point_anchor = {-37, 0},
|
icon_point_anchor = {-37, 0},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
@@ -795,7 +795,7 @@ local addonName, Details222 = ...
|
|||||||
icon_on_top = true,
|
icon_on_top = true,
|
||||||
icon_ignore_alpha = true,
|
icon_ignore_alpha = true,
|
||||||
icon_titletext_position = {1, 2},
|
icon_titletext_position = {1, 2},
|
||||||
|
|
||||||
instance_cprops = {
|
instance_cprops = {
|
||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
["show_statusbar"] = false,
|
["show_statusbar"] = false,
|
||||||
@@ -995,22 +995,22 @@ local addonName, Details222 = ...
|
|||||||
["hide_icon"] = true,
|
["hide_icon"] = true,
|
||||||
["bg_b"] = 0.454901960784314,
|
["bg_b"] = 0.454901960784314,
|
||||||
},
|
},
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
local align_right_chat = function()
|
local align_right_chat = function()
|
||||||
|
|
||||||
if (not RightChatPanel or not RightChatPanel:IsShown()) then
|
if (not RightChatPanel or not RightChatPanel:IsShown()) then
|
||||||
_detalhes:Msg("Right Chat Panel isn't shown.")
|
_detalhes:Msg("Right Chat Panel isn't shown.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local wight, height = RightChatPanel:GetSize()
|
local wight, height = RightChatPanel:GetSize()
|
||||||
|
|
||||||
local instance1 = _detalhes.tabela_instancias [1]
|
local instance1 = _detalhes.tabela_instancias [1]
|
||||||
local instance2 = _detalhes.tabela_instancias [2]
|
local instance2 = _detalhes.tabela_instancias [2]
|
||||||
local instance3 = _detalhes.tabela_instancias [3]
|
local instance3 = _detalhes.tabela_instancias [3]
|
||||||
@@ -1022,51 +1022,51 @@ local addonName, Details222 = ...
|
|||||||
instance2:AtivarInstancia()
|
instance2:AtivarInstancia()
|
||||||
instance2:ChangeSkin (instance1.skin)
|
instance2:ChangeSkin (instance1.skin)
|
||||||
end
|
end
|
||||||
|
|
||||||
if (instance3 and instance3:IsEnabled() and instance3.baseframe) then
|
if (instance3 and instance3:IsEnabled() and instance3.baseframe) then
|
||||||
instance3:ShutDown()
|
instance3:ShutDown()
|
||||||
end
|
end
|
||||||
|
|
||||||
instance1:UngroupInstance()
|
instance1:UngroupInstance()
|
||||||
instance2:UngroupInstance()
|
instance2:UngroupInstance()
|
||||||
|
|
||||||
instance1.baseframe:ClearAllPoints()
|
instance1.baseframe:ClearAllPoints()
|
||||||
instance2.baseframe:ClearAllPoints()
|
instance2.baseframe:ClearAllPoints()
|
||||||
|
|
||||||
local statusbar_enabled1 = instance1.show_statusbar
|
local statusbar_enabled1 = instance1.show_statusbar
|
||||||
local statusbar_enabled2 = instance2.show_statusbar
|
local statusbar_enabled2 = instance2.show_statusbar
|
||||||
|
|
||||||
local ElvUIRightChatDataPanel = RightChatDataPanel and RightChatDataPanel:IsShown()
|
local ElvUIRightChatDataPanel = RightChatDataPanel and RightChatDataPanel:IsShown()
|
||||||
|
|
||||||
if (instance1.skin == "Forced Square") then
|
if (instance1.skin == "Forced Square") then
|
||||||
instance1.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled1 and 14 or 0))
|
instance1.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled1 and 14 or 0))
|
||||||
instance2.baseframe:SetSize(wight/2 - 4 + 2, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled2 and 14 or 0))
|
instance2.baseframe:SetSize(wight/2 - 4 + 2, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled2 and 14 or 0))
|
||||||
|
|
||||||
elseif (instance1.skin == "ElvUI Frame Style") then
|
elseif (instance1.skin == "ElvUI Frame Style") then
|
||||||
instance1.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled1 and 14 or 0))
|
instance1.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled1 and 14 or 0))
|
||||||
instance2.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled2 and 14 or 0))
|
instance2.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled2 and 14 or 0))
|
||||||
|
|
||||||
elseif (instance1.skin == "ElvUI Style II") then
|
elseif (instance1.skin == "ElvUI Style II") then
|
||||||
instance1.baseframe:SetSize(wight/2 - 4 - 2, height - 20 - 2 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled1 and 14 or 0))
|
instance1.baseframe:SetSize(wight/2 - 4 - 2, height - 20 - 2 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled1 and 14 or 0))
|
||||||
instance2.baseframe:SetSize(wight/2 - 4 - 2, height - 20 - 2 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled2 and 14 or 0))
|
instance2.baseframe:SetSize(wight/2 - 4 - 2, height - 20 - 2 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled2 and 14 or 0))
|
||||||
|
|
||||||
else
|
else
|
||||||
instance1.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled1 and 14 or 0))
|
instance1.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled1 and 14 or 0))
|
||||||
instance2.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled2 and 14 or 0))
|
instance2.baseframe:SetSize(wight/2 - 4, height-20 - (ElvUIRightChatDataPanel and 21 or 0) - 8 - (statusbar_enabled2 and 14 or 0))
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Details:Destroy(instance1.snap)
|
Details:Destroy(instance1.snap)
|
||||||
Details:Destroy(instance2.snap)
|
Details:Destroy(instance2.snap)
|
||||||
instance1.snap [3] = 2; instance2.snap [1] = 1;
|
instance1.snap [3] = 2; instance2.snap [1] = 1;
|
||||||
instance1.horizontalSnap = true; instance2.horizontalSnap = true
|
instance1.horizontalSnap = true; instance2.horizontalSnap = true
|
||||||
|
|
||||||
instance1.baseframe:SetPoint("bottomleft", RightChatDataPanel, "topleft", 1 - (instance1.skin == "Forced Square" and 1 or 0), 1 + (statusbar_enabled1 and 14 or 0) - (ElvUIRightChatDataPanel and 0 or 22))
|
instance1.baseframe:SetPoint("bottomleft", RightChatDataPanel, "topleft", 1 - (instance1.skin == "Forced Square" and 1 or 0), 1 + (statusbar_enabled1 and 14 or 0) - (ElvUIRightChatDataPanel and 0 or 22))
|
||||||
instance2.baseframe:SetPoint("bottomright", RightChatToggleButton, "topright", -1, 1 + (statusbar_enabled2 and 14 or 0) - (ElvUIRightChatDataPanel and 0 or 22))
|
instance2.baseframe:SetPoint("bottomright", RightChatToggleButton, "topright", -1, 1 + (statusbar_enabled2 and 14 or 0) - (ElvUIRightChatDataPanel and 0 or 22))
|
||||||
|
|
||||||
instance1:LockInstance (true)
|
instance1:LockInstance (true)
|
||||||
instance2:LockInstance (true)
|
instance2:LockInstance (true)
|
||||||
|
|
||||||
instance1:SaveMainWindowPosition()
|
instance1:SaveMainWindowPosition()
|
||||||
instance2:SaveMainWindowPosition()
|
instance2:SaveMainWindowPosition()
|
||||||
|
|
||||||
@@ -1074,38 +1074,38 @@ local addonName, Details222 = ...
|
|||||||
_detalhes.move_janela_func(instance1.baseframe, false, instance1)
|
_detalhes.move_janela_func(instance1.baseframe, false, instance1)
|
||||||
_detalhes.move_janela_func(instance2.baseframe, true, instance2)
|
_detalhes.move_janela_func(instance2.baseframe, true, instance2)
|
||||||
_detalhes.move_janela_func(instance2.baseframe, false, instance2)
|
_detalhes.move_janela_func(instance2.baseframe, false, instance2)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
_detalhes:InstallSkin ("Forced Square", {
|
_detalhes:InstallSkin ("Forced Square", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\simplygray_skin.blp]],
|
file = [[Interface\AddOns\Details\images\skins\simplygray_skin.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "Very clean skin without textures and only with a black contour.",
|
desc = "Very clean skin without textures and only with a black contour.",
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
--general
|
--general
|
||||||
can_change_alpha_head = true,
|
can_change_alpha_head = true,
|
||||||
|
|
||||||
--icon anchors
|
--icon anchors
|
||||||
icon_anchor_main = {-1, -5},
|
icon_anchor_main = {-1, -5},
|
||||||
icon_anchor_plugins = {-7, -13},
|
icon_anchor_plugins = {-7, -13},
|
||||||
icon_plugins_size = {19, 18},
|
icon_plugins_size = {19, 18},
|
||||||
|
|
||||||
--micro frames
|
--micro frames
|
||||||
micro_frames = {
|
micro_frames = {
|
||||||
color = {.7, .7, .7, 0.7},
|
color = {.7, .7, .7, 0.7},
|
||||||
font = "FORCED SQUARE",
|
font = "FORCED SQUARE",
|
||||||
size = 10,
|
size = 10,
|
||||||
textymod = 1,
|
textymod = 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- the four anchors (for when the toolbar is on the top side)
|
-- the four anchors (for when the toolbar is on the top side)
|
||||||
icon_point_anchor = {-37, 0},
|
icon_point_anchor = {-37, 0},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
right_corner_anchor = {96, 0},
|
right_corner_anchor = {96, 0},
|
||||||
|
|
||||||
-- the four anchors (for when the toolbar is on the bottom side)
|
-- the four anchors (for when the toolbar is on the bottom side)
|
||||||
icon_point_anchor_bottom = {-37, 12},
|
icon_point_anchor_bottom = {-37, 12},
|
||||||
left_corner_anchor_bottom = {-107, 0},
|
left_corner_anchor_bottom = {-107, 0},
|
||||||
@@ -1117,10 +1117,10 @@ local addonName, Details222 = ...
|
|||||||
--[[ control_script_on_start run before the control_script, use it to reset values if needed --]]
|
--[[ control_script_on_start run before the control_script, use it to reset values if needed --]]
|
||||||
control_script_on_start = nil,
|
control_script_on_start = nil,
|
||||||
control_script = nil,
|
control_script = nil,
|
||||||
|
|
||||||
icon_ignore_alpha = true,
|
icon_ignore_alpha = true,
|
||||||
icon_titletext_position = {3, 4},
|
icon_titletext_position = {3, 4},
|
||||||
|
|
||||||
--instance overwrites
|
--instance overwrites
|
||||||
--[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]]
|
--[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]]
|
||||||
--[[ for the complete cprop list see the file classe_instancia_include.lua]]
|
--[[ for the complete cprop list see the file classe_instancia_include.lua]]
|
||||||
@@ -1330,25 +1330,25 @@ local addonName, Details222 = ...
|
|||||||
["bg_alpha"] = 0.0491309501230717,
|
["bg_alpha"] = 0.0491309501230717,
|
||||||
["bg_b"] = 0,
|
["bg_b"] = 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{spacement = true, type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1"], func = align_right_chat, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1_DESC"]},
|
{spacement = true, type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1"], func = align_right_chat, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
_detalhes:InstallSkin ("ElvUI Frame Style", {
|
_detalhes:InstallSkin ("ElvUI Frame Style", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\elvui.blp]],
|
file = [[Interface\AddOns\Details\images\skins\elvui.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "This skin is based on ElvUI's addons, relying with black and transparent frames.",
|
desc = "This skin is based on ElvUI's addons, relying with black and transparent frames.",
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
--general
|
--general
|
||||||
can_change_alpha_head = true,
|
can_change_alpha_head = true,
|
||||||
|
|
||||||
--icon anchors
|
--icon anchors
|
||||||
icon_anchor_main = {-4, -5},
|
icon_anchor_main = {-4, -5},
|
||||||
@@ -1358,16 +1358,16 @@ local addonName, Details222 = ...
|
|||||||
--micro frames
|
--micro frames
|
||||||
micro_frames = {
|
micro_frames = {
|
||||||
color = {1, 1, 1, 0.7},
|
color = {1, 1, 1, 0.7},
|
||||||
font = "FORCED SQUARE",
|
font = "FORCED SQUARE",
|
||||||
size = 10,
|
size = 10,
|
||||||
textymod = 1,
|
textymod = 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- the four anchors (for when the toolbar is on the top side)
|
-- the four anchors (for when the toolbar is on the top side)
|
||||||
icon_point_anchor = {-35, -0.5},
|
icon_point_anchor = {-35, -0.5},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
right_corner_anchor = {96, 0},
|
right_corner_anchor = {96, 0},
|
||||||
|
|
||||||
-- the four anchors (for when the toolbar is on the bottom side)
|
-- the four anchors (for when the toolbar is on the bottom side)
|
||||||
icon_point_anchor_bottom = {-37, 12},
|
icon_point_anchor_bottom = {-37, 12},
|
||||||
left_corner_anchor_bottom = {-107, 0},
|
left_corner_anchor_bottom = {-107, 0},
|
||||||
@@ -1379,15 +1379,15 @@ local addonName, Details222 = ...
|
|||||||
--[[ control_script_on_start run before the control_script, use it to reset values if needed --]]
|
--[[ control_script_on_start run before the control_script, use it to reset values if needed --]]
|
||||||
control_script_on_start = nil,
|
control_script_on_start = nil,
|
||||||
control_script = nil,
|
control_script = nil,
|
||||||
|
|
||||||
--instance overwrites
|
--instance overwrites
|
||||||
--[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]]
|
--[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]]
|
||||||
--[[ for the complete cprop list see the file classe_instancia_include.lua]]
|
--[[ for the complete cprop list see the file classe_instancia_include.lua]]
|
||||||
|
|
||||||
icon_on_top = true,
|
icon_on_top = true,
|
||||||
icon_ignore_alpha = true,
|
icon_ignore_alpha = true,
|
||||||
icon_titletext_position = {2, 5},
|
icon_titletext_position = {2, 5},
|
||||||
|
|
||||||
instance_cprops = {
|
instance_cprops = {
|
||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
["menu_icons_size"] = 0.899999976158142,
|
["menu_icons_size"] = 0.899999976158142,
|
||||||
@@ -1519,9 +1519,9 @@ local addonName, Details222 = ...
|
|||||||
["texture"] = "Details BarBorder 2",
|
["texture"] = "Details BarBorder 2",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
["show_sidebars_need_resize_by"] = 1,
|
["show_sidebars_need_resize_by"] = 1,
|
||||||
|
|
||||||
["auto_hide_menu"] = {
|
["auto_hide_menu"] = {
|
||||||
["left"] = false,
|
["left"] = false,
|
||||||
["right"] = false,
|
["right"] = false,
|
||||||
@@ -1582,43 +1582,43 @@ local addonName, Details222 = ...
|
|||||||
["hide_icon"] = true,
|
["hide_icon"] = true,
|
||||||
["bg_b"] = 0.3294,
|
["bg_b"] = 0.3294,
|
||||||
},
|
},
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{spacement = true, type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1"], func = align_right_chat, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1_DESC"]},
|
{spacement = true, type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1"], func = align_right_chat, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2"], func = set_tooltip_elvui1, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2"], func = set_tooltip_elvui1, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
_detalhes:InstallSkin ("ElvUI Style II", {
|
_detalhes:InstallSkin ("ElvUI Style II", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\elvui_opaque.blp]],
|
file = [[Interface\AddOns\Details\images\skins\elvui_opaque.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "based on AddonSkins for ElvUI, this skin has opaque title bar and background.",
|
desc = "based on AddonSkins for ElvUI, this skin has opaque title bar and background.",
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
--general
|
--general
|
||||||
can_change_alpha_head = true,
|
can_change_alpha_head = true,
|
||||||
|
|
||||||
--icon anchors
|
--icon anchors
|
||||||
icon_anchor_main = {-4, -5},
|
icon_anchor_main = {-4, -5},
|
||||||
icon_anchor_plugins = {-7, -13},
|
icon_anchor_plugins = {-7, -13},
|
||||||
icon_plugins_size = {19, 18},
|
icon_plugins_size = {19, 18},
|
||||||
|
|
||||||
--micro frames
|
--micro frames
|
||||||
micro_frames = {
|
micro_frames = {
|
||||||
color = {0.525490, 0.525490, 0.525490, 1},
|
color = {0.525490, 0.525490, 0.525490, 1},
|
||||||
font = "FORCED SQUARE",
|
font = "FORCED SQUARE",
|
||||||
size = 11,
|
size = 11,
|
||||||
textymod = 1,
|
textymod = 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- the four anchors (for when the toolbar is on the top side)
|
-- the four anchors (for when the toolbar is on the top side)
|
||||||
icon_point_anchor = {-35, -0.5},
|
icon_point_anchor = {-35, -0.5},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
right_corner_anchor = {96, 0},
|
right_corner_anchor = {96, 0},
|
||||||
|
|
||||||
-- the four anchors (for when the toolbar is on the bottom side)
|
-- the four anchors (for when the toolbar is on the bottom side)
|
||||||
icon_point_anchor_bottom = {-37, 12},
|
icon_point_anchor_bottom = {-37, 12},
|
||||||
left_corner_anchor_bottom = {-107, 0},
|
left_corner_anchor_bottom = {-107, 0},
|
||||||
@@ -1630,15 +1630,15 @@ local addonName, Details222 = ...
|
|||||||
--[[ control_script_on_start run before the control_script, use it to reset values if needed --]]
|
--[[ control_script_on_start run before the control_script, use it to reset values if needed --]]
|
||||||
control_script_on_start = nil,
|
control_script_on_start = nil,
|
||||||
control_script = nil,
|
control_script = nil,
|
||||||
|
|
||||||
--instance overwrites
|
--instance overwrites
|
||||||
--[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]]
|
--[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]]
|
||||||
--[[ for the complete cprop list see the file classe_instancia_include.lua]]
|
--[[ for the complete cprop list see the file classe_instancia_include.lua]]
|
||||||
|
|
||||||
icon_on_top = true,
|
icon_on_top = true,
|
||||||
icon_ignore_alpha = true,
|
icon_ignore_alpha = true,
|
||||||
icon_titletext_position = {2, 5},
|
icon_titletext_position = {2, 5},
|
||||||
|
|
||||||
instance_cprops = {
|
instance_cprops = {
|
||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
["show_statusbar"] = false,
|
["show_statusbar"] = false,
|
||||||
@@ -1766,14 +1766,14 @@ local addonName, Details222 = ...
|
|||||||
},
|
},
|
||||||
["bg_b"] = 0.517647058823529,
|
["bg_b"] = 0.517647058823529,
|
||||||
},
|
},
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{spacement = true, type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1"], func = align_right_chat, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1_DESC"]},
|
{spacement = true, type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1"], func = align_right_chat, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2"], func = set_tooltip_elvui1, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2"], func = set_tooltip_elvui1, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
_detalhes:InstallSkin ("Dark Theme", {
|
_detalhes:InstallSkin ("Dark Theme", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\darktheme.blp]],
|
file = [[Interface\AddOns\Details\images\skins\darktheme.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
@@ -1801,12 +1801,12 @@ local addonName, Details222 = ...
|
|||||||
["right"] = "DETAILS_STATUSBAR_PLUGIN_PDURABILITY",
|
["right"] = "DETAILS_STATUSBAR_PLUGIN_PDURABILITY",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
-- the four anchors (for when the toolbar is on the top side)
|
-- the four anchors (for when the toolbar is on the top side)
|
||||||
icon_point_anchor = {-35, -0.5},
|
icon_point_anchor = {-35, -0.5},
|
||||||
left_corner_anchor = {-106, 0},
|
left_corner_anchor = {-106, 0},
|
||||||
right_corner_anchor = {95, 0},
|
right_corner_anchor = {95, 0},
|
||||||
|
|
||||||
-- the four anchors (for when the toolbar is on the bottom side)
|
-- the four anchors (for when the toolbar is on the bottom side)
|
||||||
icon_point_anchor_bottom = {-37, 12},
|
icon_point_anchor_bottom = {-37, 12},
|
||||||
left_corner_anchor_bottom = {-106, 0},
|
left_corner_anchor_bottom = {-106, 0},
|
||||||
@@ -1818,15 +1818,15 @@ local addonName, Details222 = ...
|
|||||||
--[[ control_script_on_start run before the control_script, use it to reset values if needed --]]
|
--[[ control_script_on_start run before the control_script, use it to reset values if needed --]]
|
||||||
control_script_on_start = nil,
|
control_script_on_start = nil,
|
||||||
control_script = nil,
|
control_script = nil,
|
||||||
|
|
||||||
--instance overwrites
|
--instance overwrites
|
||||||
--[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]]
|
--[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]]
|
||||||
--[[ for the complete cprop list see the file classe_instancia_include.lua]]
|
--[[ for the complete cprop list see the file classe_instancia_include.lua]]
|
||||||
|
|
||||||
icon_on_top = true,
|
icon_on_top = true,
|
||||||
icon_ignore_alpha = true,
|
icon_ignore_alpha = true,
|
||||||
icon_titletext_position = {1, 2},
|
icon_titletext_position = {1, 2},
|
||||||
|
|
||||||
instance_cprops = {
|
instance_cprops = {
|
||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
["hide_in_combat_type"] = 1,
|
["hide_in_combat_type"] = 1,
|
||||||
@@ -2255,7 +2255,7 @@ local addonName, Details222 = ...
|
|||||||
},
|
},
|
||||||
["skin"] = "Dark Theme",
|
["skin"] = "Dark Theme",
|
||||||
},
|
},
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{spacement = true, type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1"], func = align_right_chat, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1_DESC"]},
|
{spacement = true, type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1"], func = align_right_chat, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON1_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2"], func = set_tooltip_elvui1, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2"], func = set_tooltip_elvui1, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON2_DESC"]},
|
||||||
@@ -2265,25 +2265,25 @@ local addonName, Details222 = ...
|
|||||||
|
|
||||||
_detalhes:InstallSkin ("New Gray", {
|
_detalhes:InstallSkin ("New Gray", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\classic_skin_v1.blp]],
|
file = [[Interface\AddOns\Details\images\skins\classic_skin_v1.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "Simple skin with soft gray color and half transparent frames.", --\n
|
desc = "Simple skin with soft gray color and half transparent frames.", --\n
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
--micro frames
|
--micro frames
|
||||||
micro_frames = {
|
micro_frames = {
|
||||||
color = {1, 1, 1, 1},
|
color = {1, 1, 1, 1},
|
||||||
font = "Accidental Presidency",
|
font = "Accidental Presidency",
|
||||||
size = 10,
|
size = 10,
|
||||||
textymod = 1,
|
textymod = 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
can_change_alpha_head = true,
|
can_change_alpha_head = true,
|
||||||
icon_anchor_main = {-1, -5},
|
icon_anchor_main = {-1, -5},
|
||||||
icon_anchor_plugins = {-7, -13},
|
icon_anchor_plugins = {-7, -13},
|
||||||
icon_plugins_size = {19, 18},
|
icon_plugins_size = {19, 18},
|
||||||
|
|
||||||
--anchors:
|
--anchors:
|
||||||
icon_point_anchor = {-37, 0},
|
icon_point_anchor = {-37, 0},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
@@ -2292,11 +2292,11 @@ local addonName, Details222 = ...
|
|||||||
icon_point_anchor_bottom = {-37, 12},
|
icon_point_anchor_bottom = {-37, 12},
|
||||||
left_corner_anchor_bottom = {-107, 0},
|
left_corner_anchor_bottom = {-107, 0},
|
||||||
right_corner_anchor_bottom = {96, 0},
|
right_corner_anchor_bottom = {96, 0},
|
||||||
|
|
||||||
icon_on_top = true,
|
icon_on_top = true,
|
||||||
icon_ignore_alpha = true,
|
icon_ignore_alpha = true,
|
||||||
icon_titletext_position = {3, 3},
|
icon_titletext_position = {3, 3},
|
||||||
|
|
||||||
--overwrites
|
--overwrites
|
||||||
instance_cprops = {
|
instance_cprops = {
|
||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
@@ -2510,41 +2510,41 @@ local addonName, Details222 = ...
|
|||||||
},
|
},
|
||||||
["bars_inverted"] = false,
|
["bars_inverted"] = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
callback = function(skin, instance, just_updating)
|
callback = function(skin, instance, just_updating)
|
||||||
--none
|
--none
|
||||||
end,
|
end,
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{spacement = true, type = "button", name = "Shadowy Title Bar", func = Minimalistic_Shadow, desc = "Adds shadow on title bar components."},
|
{spacement = true, type = "button", name = "Shadowy Title Bar", func = Minimalistic_Shadow, desc = "Adds shadow on title bar components."},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
_detalhes:InstallSkin ("Safe Skin Legion Beta", {
|
_detalhes:InstallSkin ("Safe Skin Legion Beta", {
|
||||||
file = [[Interface\AddOns\Details\images\skins\classic_skin_v1.blp]],
|
file = [[Interface\AddOns\Details\images\skins\classic_skin_v1.blp]],
|
||||||
author = "Details!",
|
author = "Details!",
|
||||||
version = "1.0",
|
version = "1.0",
|
||||||
site = "unknown",
|
site = "unknown",
|
||||||
desc = "Simple skin with soft gray color and half transparent frames.", --\n
|
desc = "Simple skin with soft gray color and half transparent frames.", --\n
|
||||||
no_cache = true,
|
no_cache = true,
|
||||||
|
|
||||||
--micro frames
|
--micro frames
|
||||||
micro_frames = {
|
micro_frames = {
|
||||||
color = {1, 1, 1, 1},
|
color = {1, 1, 1, 1},
|
||||||
font = "Accidental Presidency",
|
font = "Accidental Presidency",
|
||||||
size = 10,
|
size = 10,
|
||||||
textymod = 1,
|
textymod = 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
can_change_alpha_head = true,
|
can_change_alpha_head = true,
|
||||||
icon_anchor_main = {-1, -5},
|
icon_anchor_main = {-1, -5},
|
||||||
icon_anchor_plugins = {-7, -13},
|
icon_anchor_plugins = {-7, -13},
|
||||||
icon_plugins_size = {19, 18},
|
icon_plugins_size = {19, 18},
|
||||||
|
|
||||||
--anchors:
|
--anchors:
|
||||||
icon_point_anchor = {-37, 0},
|
icon_point_anchor = {-37, 0},
|
||||||
left_corner_anchor = {-107, 0},
|
left_corner_anchor = {-107, 0},
|
||||||
@@ -2553,11 +2553,11 @@ local addonName, Details222 = ...
|
|||||||
icon_point_anchor_bottom = {-37, 12},
|
icon_point_anchor_bottom = {-37, 12},
|
||||||
left_corner_anchor_bottom = {-107, 0},
|
left_corner_anchor_bottom = {-107, 0},
|
||||||
right_corner_anchor_bottom = {96, 0},
|
right_corner_anchor_bottom = {96, 0},
|
||||||
|
|
||||||
icon_on_top = true,
|
icon_on_top = true,
|
||||||
icon_ignore_alpha = true,
|
icon_ignore_alpha = true,
|
||||||
icon_titletext_position = {3, 3},
|
icon_titletext_position = {3, 3},
|
||||||
|
|
||||||
--overwrites
|
--overwrites
|
||||||
instance_cprops = {
|
instance_cprops = {
|
||||||
menu_icons_alpha = 0.92,
|
menu_icons_alpha = 0.92,
|
||||||
@@ -2795,17 +2795,17 @@ local addonName, Details222 = ...
|
|||||||
},
|
},
|
||||||
["bars_sort_direction"] = 1,
|
["bars_sort_direction"] = 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
callback = function(skin, instance, just_updating)
|
callback = function(skin, instance, just_updating)
|
||||||
--none
|
--none
|
||||||
end,
|
end,
|
||||||
|
|
||||||
skin_options = {
|
skin_options = {
|
||||||
{spacement = true, type = "button", name = "Shadowy Title Bar", func = Minimalistic_Shadow, desc = "Adds shadow on title bar components."},
|
{spacement = true, type = "button", name = "Shadowy Title Bar", func = Minimalistic_Shadow, desc = "Adds shadow on title bar components."},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP"], func = reset_tooltip, desc = Loc ["STRING_OPTIONS_SKIN_RESET_TOOLTIP_DESC"]},
|
||||||
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
{type = "button", name = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3"], func = set_tooltip_elvui2, desc = Loc ["STRING_OPTIONS_SKIN_ELVUI_BUTTON3_DESC"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 4.0 MiB |
Reference in New Issue
Block a user