Options fix and Cyclical pet ownership fix
This commit is contained in:
@@ -722,7 +722,7 @@ end
|
||||
|
||||
if (container_pets[actorSerial]) then --this is a registered pet
|
||||
local petName, ownerName, ownerGUID, ownerFlag = Details.tabela_pets:PegaDono(actorSerial, actorName, actorFlags)
|
||||
if (petName and ownerName) then
|
||||
if (petName and ownerName and ownerGUID ~= actorSerial) then
|
||||
actorName = petName
|
||||
petOwnerObject = self:PegarCombatente(ownerGUID, ownerName, ownerFlag, true)
|
||||
end
|
||||
|
||||
@@ -326,6 +326,9 @@ function Details222.OptionsPanel.InitializeOptionsWindow(instance)
|
||||
end
|
||||
|
||||
optionsFrame.sectionFramesContainer[sectionId]:Show()
|
||||
if(optionsFrame.sectionFramesContainer[sectionId].RefreshOptions) then
|
||||
optionsFrame.sectionFramesContainer[sectionId]:RefreshOptions()
|
||||
end
|
||||
--hightlight the option button
|
||||
optionsFrame.sectionFramesContainer[sectionId].sectionButton:SetTemplate(options_button_template_selected)
|
||||
optionsFrame.sectionFramesContainer[sectionId].sectionButton:SetIcon({1, 1, 0}, 4, section_menu_button_height -4, "overlay")
|
||||
|
||||
@@ -2453,7 +2453,7 @@ do
|
||||
|
||||
{--title bar icons position X
|
||||
type = "range",
|
||||
get = function() return currentInstance.menu_anchor[1] end,
|
||||
get = function() return currentInstance.toolbar_side == 1 and currentInstance.menu_anchor[1] or currentInstance.menu_anchor_down[1] end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "MenuAnchor", value)
|
||||
afterUpdate()
|
||||
@@ -2467,7 +2467,7 @@ do
|
||||
|
||||
{--title bar icons position Y
|
||||
type = "range",
|
||||
get = function() return currentInstance.menu_anchor[2] end,
|
||||
get = function() return currentInstance.toolbar_side == 1 and currentInstance.menu_anchor[2] or currentInstance.menu_anchor_down[2] end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "MenuAnchor", nil, value)
|
||||
afterUpdate()
|
||||
|
||||
Reference in New Issue
Block a user