mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
nemes: add PetInfo module
This commit is contained in:
@ -59,6 +59,7 @@ modules\CustomBar.lua
|
||||
modules\CustomCount.lua
|
||||
# - make sure PlayerInfo loads after TargetInfo since it inherits
|
||||
modules\PlayerInfo.lua
|
||||
modules\PetInfo.lua
|
||||
modules\TargetOfTargetCast.lua
|
||||
modules\CustomCDBar.lua
|
||||
modules\Totems.lua
|
||||
|
28
modules/PetInfo.lua
Normal file
28
modules/PetInfo.lua
Normal file
@ -0,0 +1,28 @@
|
||||
local AceOO = AceLibrary("AceOO-2.0")
|
||||
local PetInfo = AceOO.Class(IceTargetInfo)
|
||||
|
||||
-- Constructor --
|
||||
function PetInfo.prototype:init()
|
||||
PetInfo.super.prototype.init(self, "PetInfo", "pet")
|
||||
end
|
||||
|
||||
function PetInfo.prototype:GetDefaultSettings()
|
||||
local settings = PetInfo.super.prototype.GetDefaultSettings(self)
|
||||
|
||||
settings["enabled"] = false
|
||||
settings["vpos"] = -150
|
||||
settings["line2Tag"] = "[Level:DifficultyColor] [SmartRace:ClassColor] [HappyText:HappyColor] [PvPIcon] [InCombat ? 'Combat':Red]"
|
||||
|
||||
return settings
|
||||
end
|
||||
|
||||
function PetInfo.prototype:CreateFrame(redraw)
|
||||
PetInfo.super.prototype.CreateFrame(self, redraw)
|
||||
|
||||
self.frame.menu = function()
|
||||
ToggleDropDownMenu(1, nil, PetFrameDropDown, "cursor")
|
||||
end
|
||||
end
|
||||
|
||||
-- Load us up
|
||||
IceHUD.PetInfo = PetInfo:new()
|
Reference in New Issue
Block a user