- Merged the left and right menus into only one with 6 icons.
- Removed window button and added a new option for manage window under Mode Menu. - Few changes on 'Default Skin' and 'ElvUI Frame Style BW'.
This commit is contained in:
@@ -310,10 +310,25 @@ function _detalhes:ApplyProfile (profile_name, nosave, is_copy)
|
||||
break
|
||||
end
|
||||
|
||||
--> fix for the old flat skin
|
||||
if (skin.skin == "Flat Color") then
|
||||
skin.skin = "Serenity"
|
||||
end
|
||||
|
||||
--> fix for old left and right menus
|
||||
if (skin.menu_icons and type (skin.menu_icons[5]) ~= "boolean") then
|
||||
skin.menu_icons[5] = true
|
||||
skin.menu_icons[6] = true
|
||||
|
||||
local skin_profile = _detalhes.skins [skin.skin] and _detalhes.skins [skin.skin].instance_cprops
|
||||
if (skin_profile) then
|
||||
skin.menu_icons_size = skin_profile.menu_icons_size
|
||||
skin.menu_anchor = table_deepcopy (skin_profile.menu_anchor)
|
||||
--print (skin.menu_anchor[1], skin.menu_anchor[2], skin.menu_anchor.side)
|
||||
skin.menu_anchor_down = table_deepcopy (skin_profile.menu_anchor_down)
|
||||
end
|
||||
end
|
||||
|
||||
--> get the instance
|
||||
local instance = _detalhes:GetInstance (index)
|
||||
if (not instance) then
|
||||
|
||||
Reference in New Issue
Block a user