mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Added raid icon toggle to Info modules
This commit is contained in:
@ -1,14 +1,17 @@
|
|||||||
|
v1.10.16.1:
|
||||||
|
- Added option to hide the raid icon for Info frames.
|
||||||
|
|
||||||
v1.10.16:
|
v1.10.16:
|
||||||
- Updated shard texture for Warlocks
|
- Updated shard texture for Warlocks.
|
||||||
|
|
||||||
v1.10.15.2:
|
v1.10.15.2:
|
||||||
- Updated shard display for Destro Warlocks (ticket #234, thanks stencil!)
|
- Updated shard display for Destro Warlocks (ticket #234, thanks stencil!).
|
||||||
|
|
||||||
v1.10.15.1:
|
v1.10.15.1:
|
||||||
- Fixed an error in IceHUD's usage of GetLFGProposal()'s return values exposed by the 7.2.5 Chromie quests
|
- Fixed an error in IceHUD's usage of GetLFGProposal()'s return values exposed by the 7.2.5 Chromie quests.
|
||||||
|
|
||||||
v1.10.15:
|
v1.10.15:
|
||||||
- Fixed error on 7.2 due to a CVar being removed
|
- Fixed error on 7.2 due to a CVar being removed.
|
||||||
- Updated TOC for 7.2
|
- Updated TOC for 7.2
|
||||||
|
|
||||||
v1.10.14:
|
v1.10.14:
|
||||||
|
@ -958,6 +958,23 @@ function IceTargetInfo.prototype:GetOptions()
|
|||||||
order = 39.3,
|
order = 39.3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opts["showRaidIcon"] = {
|
||||||
|
type = 'toggle',
|
||||||
|
name = L['Show raid icon'],
|
||||||
|
desc = L['Whether or not to show the raid icon for this unit.'],
|
||||||
|
get = function()
|
||||||
|
return self.moduleSettings.showRaidIcon
|
||||||
|
end,
|
||||||
|
set = function(info, v)
|
||||||
|
self.moduleSettings.showRaidIcon = v
|
||||||
|
self:UpdateRaidTargetIcon()
|
||||||
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
|
order = 37.02,
|
||||||
|
}
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1011,6 +1028,7 @@ function IceTargetInfo.prototype:GetDefaultSettings()
|
|||||||
["sortByExpiration"] = true,
|
["sortByExpiration"] = true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
defaults["showRaidIcon"] = true
|
||||||
|
|
||||||
return defaults
|
return defaults
|
||||||
end
|
end
|
||||||
@ -1480,7 +1498,7 @@ function IceTargetInfo.prototype:AuraChanged(event, unit)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IceTargetInfo.prototype:UpdateRaidTargetIcon()
|
function IceTargetInfo.prototype:UpdateRaidTargetIcon()
|
||||||
if not (UnitExists(self.unit)) then
|
if not (UnitExists(self.unit)) or not self.moduleSettings.showRaidIcon then
|
||||||
self.frame.raidIcon:Hide()
|
self.frame.raidIcon:Hide()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user