- 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:
@@ -2249,15 +2249,17 @@ function _detalhes:MontaAtributosOption (instancia, func)
|
||||
|
||||
gindex = gindex + 1
|
||||
end
|
||||
|
||||
|
||||
CoolTip:SetLastSelected (2, i, instancia.sub_atributo_last [i])
|
||||
|
||||
end
|
||||
|
||||
--> custom
|
||||
|
||||
CoolTip:AddMenu (1, func, nil, 5, nil, atributos.lista[5], nil, true)
|
||||
CoolTip:AddIcon ("Interface\\AddOns\\Details\\images\\atributos_icones", 1, 1, 20, 20, p*(5-1), p*(5), 0, 1)
|
||||
|
||||
CoolTip:AddMenu (2, _detalhes.OpenCustomDisplayWindow, nil, nil, nil, Loc ["STRING_CUSTOM_NEW"], "Interface\\PaperDollInfoFrame\\Character-Plus", true)
|
||||
CoolTip:AddLine ("$div", nil, 2, nil, -6, -9)
|
||||
|
||||
for index, custom in _ipairs (_detalhes.custom) do
|
||||
if (custom.temp) then
|
||||
@@ -2267,23 +2269,27 @@ function _detalhes:MontaAtributosOption (instancia, func)
|
||||
end
|
||||
|
||||
CoolTip:AddMenu (2, func, true, 5, index)
|
||||
CoolTip:AddIcon (custom.icon, 2, 1, 16, 16)
|
||||
CoolTip:AddIcon (custom.icon, 2, 1, 20, 20)
|
||||
end
|
||||
|
||||
--> set the wallpaper on custom
|
||||
GameCooltip:SetWallpaper (2, [[Interface\TALENTFRAME\WarriorArm-TopLeft]], {1, 0, 0, 1}, {1, 1, 1, 0.1})
|
||||
|
||||
if (#_detalhes.custom == 0) then
|
||||
CoolTip:SetLastSelected (2, 5, 1)
|
||||
CoolTip:SetLastSelected (2, 5, 2)
|
||||
else
|
||||
if (instancia.atributo == 5) then
|
||||
CoolTip:SetLastSelected (2, 5, instancia.sub_atributo+1)
|
||||
CoolTip:SetLastSelected (2, 5, instancia.sub_atributo+2)
|
||||
else
|
||||
CoolTip:SetLastSelected (2, 5, instancia.sub_atributo_last [5]+1)
|
||||
CoolTip:SetLastSelected (2, 5, instancia.sub_atributo_last [5]+2)
|
||||
end
|
||||
end
|
||||
|
||||
CoolTip:SetOption ("StatusBarTexture", [[Interface\AddOns\Details\images\bar4_vidro]])
|
||||
CoolTip:SetOption ("ButtonsYMod", -7)
|
||||
CoolTip:SetOption ("ButtonsYModSub", -7)
|
||||
CoolTip:SetOption ("HeighMod", 8)
|
||||
CoolTip:SetOption ("HeighModSub", 8)
|
||||
|
||||
CoolTip:SetLastSelected (1, atributo_ativo)
|
||||
|
||||
|
||||
@@ -76,27 +76,16 @@ _detalhes.instance_defaults = {
|
||||
bars_grow_direction = 1,
|
||||
--sort direction is the direction of results on bars (1 = top to bottom 2 = bottom to top)
|
||||
bars_sort_direction = 1,
|
||||
--reset button info
|
||||
resetbutton_config = {size = {10, 16}, anchor = {2, 0}, normal_texture = [[Interface\Addons\Details\Images\reset_button]], highlight_texture = [[Interface\Addons\Details\Images\reset_button]], normal_texcoord = {0, 1, 0, 1}, highlight_texcoord = {0, 1, 0, 1}, normal_vertexcolor = {1, 1, 1, 1}, highlight_vertexcolor = {1, 1, 1, 1}},
|
||||
--instance button info
|
||||
instancebutton_config = {size = {20, 16}, anchor = {2, 0}, highlight_texture = [[Interface\Buttons\UI-Panel-MinimizeButton-Highlight]], textcolor = {1, 1, 1, 1}, textsize = 11, textfont = "Friz Quadrata TT", textshadow = false},
|
||||
--close button info
|
||||
closebutton_config = {size = {18, 18}, alpha = 1, anchor = {0, 0}, normal_texture = [[Interface\Buttons\UI-Panel-MinimizeButton-Up]], highlight_texture = [[Interface\Buttons\UI-Panel-MinimizeButton-Highlight]], pushed_texture = [[Interface\Buttons\UI-Panel-MinimizeButton-Down]]},
|
||||
--menus:
|
||||
--anchor store the anchor point of main menu
|
||||
menu_anchor = {5, 1, side = 1}, --mode segment attribute report on top position
|
||||
menu_anchor_down = {5, 1}, --mode segment attribute report on bottom position
|
||||
menu2_anchor = {14, 3}, --close instance erase on top position
|
||||
menu2_anchor_down = {14, 3}, --close instance erase on bottom position
|
||||
--blackwhiite icons
|
||||
desaturated_menu = false, --mode segment attribute report
|
||||
desaturated_menu2 = false, --reset instance close
|
||||
--icons on menu
|
||||
menu_icons = {true, true, true, true}, --mode segment attribute report
|
||||
menu2_icons = {true, true, true}, --reset instance close
|
||||
menu_icons = {true, true, true, true, true, true}, --mode segment attribute report reset close
|
||||
--menu icons size multiplicator factor
|
||||
menu_icons_size = 1.0, --mode segment attribute report
|
||||
menu2_icons_size = 1.0, --reset instance close
|
||||
--auto hide menu buttons
|
||||
auto_hide_menu = {left = false, right = false},
|
||||
--attribute text
|
||||
|
||||
Reference in New Issue
Block a user