mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
ab6b662ac4
|
|||
a2addcb627
|
|||
7f84c28538
|
|||
924bd4a6ef
|
|||
0f753448d7
|
|||
891ddc230c
|
|||
06353d4974
|
|||
d44e62bee4
|
|||
8fe1ef75b7
|
|||
702aa5bff6
|
|||
d6e1fd707a
|
|||
88d7dd3982
|
44
.pkgmeta
44
.pkgmeta
@ -2,54 +2,58 @@ package-as: IceHUD
|
||||
|
||||
externals:
|
||||
libs/LibStub:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/LibStub
|
||||
url: https://repos.wowace.com/wow/libstub/trunk
|
||||
tag: latest
|
||||
libs/CallbackHandler-1.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/CallbackHandler-1.0
|
||||
url: https://repos.wowace.com/wow/callbackhandler/trunk
|
||||
tag: latest
|
||||
libs/AceEvent-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceEvent-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceEvent-3.0
|
||||
tag: latest
|
||||
libs/AceTimer-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceTimer-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceTimer-3.0
|
||||
tag: latest
|
||||
libs/AceDB-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDB-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceDB-3.0
|
||||
tag: latest
|
||||
libs/AceDBOptions-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDBOptions-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceDBOptions-3.0
|
||||
tag: latest
|
||||
libs/AceConfig-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConfig-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0
|
||||
tag: latest
|
||||
libs/AceGUI-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceGUI-3.0
|
||||
tag: latest
|
||||
libs/AceGUI-3.0-SharedMediaWidgets:
|
||||
url: svn://svn.wowace.com/wow/ace-gui-3-0-shared-media-widgets/mainline/trunk/AceGUI-3.0-SharedMediaWidgets
|
||||
url: https://repos.wowace.com/wow/ace-gui-3-0-shared-media-widgets/trunk
|
||||
tag: latest
|
||||
libs/AceAddon-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceAddon-3.0
|
||||
tag: latest
|
||||
libs/AceConsole-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConsole-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceConsole-3.0
|
||||
tag: latest
|
||||
libs/AceLocale-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceLocale-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceLocale-3.0
|
||||
tag: latest
|
||||
libs/LibRangeCheck-2.0:
|
||||
url: svn://svn.wowace.com/wow/librangecheck-2-0/mainline/trunk/LibRangeCheck-2.0
|
||||
url: https://repos.wowace.com/wow/librangecheck-2-0/trunk
|
||||
libs/LibSharedMedia-3.0:
|
||||
url: svn://svn.wowace.com/wow/libsharedmedia-3-0/mainline/trunk
|
||||
url: https://repos.wowace.com/wow/libsharedmedia-3-0/trunk
|
||||
tag: latest
|
||||
libs/LibDogTag-3.0:
|
||||
url: git://git.wowace.com/wow/libdogtag-3-0/mainline.git
|
||||
url: https://repos.wowace.com/wow/libdogtag-3-0
|
||||
tag: latest
|
||||
type: git
|
||||
libs/LibDogTag-Unit-3.0:
|
||||
url: git://git.wowace.com/wow/libdogtag-unit-3-0/mainline.git
|
||||
url: https://repos.wowace.com/wow/libdogtag-unit-3-0
|
||||
tag: latest
|
||||
type: git
|
||||
libs/LibDBIcon-1.0:
|
||||
url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
|
||||
url: https://repos.wowace.com/wow/libdbicon-1-0/trunk
|
||||
libs/LibDualSpec-1.0:
|
||||
url: git://git.wowace.com/wow/libdualspec-1-0/mainline.git
|
||||
url: https://repos.wowace.com/wow/libdualspec-1-0
|
||||
|
||||
optional-dependencies:
|
||||
- libdogtag-3-0
|
||||
@ -65,4 +69,6 @@ tools-used:
|
||||
ignore:
|
||||
- readme.md
|
||||
|
||||
manual-changelog: changelog.txt
|
||||
manual-changelog: this_version.md
|
||||
|
||||
enable-nolib-creation: yes
|
||||
|
@ -1,5 +1,5 @@
|
||||
#@retail@
|
||||
## Interface: 90001
|
||||
## Interface: 90002
|
||||
#@end-retail@
|
||||
#@non-retail@
|
||||
# ## Interface: 11305
|
||||
@ -8,7 +8,12 @@
|
||||
## Name: IceHUD
|
||||
## Title: IceHUD |cff7fff7f-Ace3-|r
|
||||
## Notes: Another HUD addon
|
||||
## Version: @project-version@
|
||||
#@debug@
|
||||
## Version: development
|
||||
#@end-debug@
|
||||
#@non-debug@
|
||||
# ## Version: @project-version@
|
||||
#@end-non-debug@
|
||||
## SavedVariables: IceCoreDB
|
||||
## OptionalDeps: Ace3, LibSharedMedia-3.0, LibDogTag-3.0, LibDogTag-Unit-3.0, LibRangeCheck-2.0, LibDualSpec-1.0, LibDBIcon-1.0, AceGUI-3.0-SharedMediaWidgets
|
||||
## X-Category: HUDs
|
||||
|
@ -1,4 +1,9 @@
|
||||
## Interface: 90001
|
||||
#@retail@
|
||||
## Interface: 90002
|
||||
#@end-retail@
|
||||
#@non-retail@
|
||||
# ## Interface: 11305
|
||||
#@end-non-retail@
|
||||
## Title: IceHUD |cff7fff7f-Options-|r
|
||||
## Author: Parnic
|
||||
## Version: @project-version@
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -12,12 +12,20 @@ if IceHUD.WowVer >= 80000 or IceHUD.WowClassic then
|
||||
SPELL_POWER_COMBO_POINTS = Enum.PowerType.ComboPoints
|
||||
end
|
||||
|
||||
local GetUnitChargedPowerPoints = GetUnitChargedPowerPoints
|
||||
if not GetUnitChargedPowerPoints then
|
||||
GetUnitChargedPowerPoints = function()
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
-- Constructor --
|
||||
function ComboPoints.prototype:init()
|
||||
ComboPoints.super.prototype.init(self, "ComboPoints")
|
||||
|
||||
self:SetDefaultColor("ComboPoints", 1, 1, 0)
|
||||
self:SetDefaultColor("AnticipationPoints", 1, 0, 1)
|
||||
self:SetDefaultColor("KyrianAnimaComboPoint", 0.3137254901960784, 0.3725490196078432, 1)
|
||||
self.scalingEnabled = true
|
||||
end
|
||||
|
||||
@ -215,8 +223,29 @@ function ComboPoints.prototype:GetOptions()
|
||||
disabled = function()
|
||||
return not self.moduleSettings.enabled
|
||||
end,
|
||||
order = 35
|
||||
}
|
||||
|
||||
if IceHUD.WowVer >= 90000 then
|
||||
opts["bShowAnimaCharged"] = {
|
||||
type = 'toggle',
|
||||
width = 'double',
|
||||
name = L["Show Anima-charged points"],
|
||||
desc = L["Whether or not to color an anima-charged combo point a separate color. Set the KyrianAnimaComboPoint color to the color you would like it to be."],
|
||||
get = function()
|
||||
return self.moduleSettings.bShowAnimaCharged
|
||||
end,
|
||||
set = function(info, v)
|
||||
self.moduleSettings.bShowAnimaCharged = v
|
||||
self:UpdateChargedComboPoints()
|
||||
end,
|
||||
disabled = function()
|
||||
return not self.moduleSettings.enabled
|
||||
end,
|
||||
order = 36
|
||||
}
|
||||
end
|
||||
|
||||
return opts
|
||||
end
|
||||
|
||||
@ -235,6 +264,7 @@ function ComboPoints.prototype:GetDefaultSettings()
|
||||
defaults["comboGap"] = 0
|
||||
defaults["showAnticipation"] = true
|
||||
defaults["bShowWithNoTarget"] = true
|
||||
defaults["bShowAnimaCharged"] = true
|
||||
return defaults
|
||||
end
|
||||
|
||||
@ -274,11 +304,16 @@ function ComboPoints.prototype:Enable(core)
|
||||
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateComboPoints")
|
||||
end
|
||||
|
||||
if IceHUD.WowVer >= 90000 then
|
||||
self:RegisterEvent("UNIT_POWER_POINT_CHARGE", "UpdateChargedComboPoints")
|
||||
end
|
||||
|
||||
if self.moduleSettings.comboMode == "Graphical" then
|
||||
self.moduleSettings.comboMode = "Graphical Bar"
|
||||
end
|
||||
|
||||
self:CreateComboFrame(true)
|
||||
self:UpdateChargedComboPoints()
|
||||
end
|
||||
|
||||
function ComboPoints.prototype:UpdateMaxComboPoints(event, unit, powerType)
|
||||
@ -291,6 +326,13 @@ function ComboPoints.prototype:UpdateMaxComboPoints(event, unit, powerType)
|
||||
end
|
||||
end
|
||||
|
||||
function ComboPoints.prototype:UpdateChargedComboPoints()
|
||||
local chargedPowerPoints = GetUnitChargedPowerPoints("player")
|
||||
self.chargedPowerPointIndex = chargedPowerPoints and chargedPowerPoints[1]
|
||||
self:CreateComboFrame()
|
||||
self:UpdateComboPoints()
|
||||
end
|
||||
|
||||
-- 'Protected' methods --------------------------------------------------------
|
||||
|
||||
-- OVERRIDE
|
||||
@ -399,7 +441,12 @@ function ComboPoints.prototype:CreateComboFrame(forceTextureUpdate)
|
||||
if (self.moduleSettings.gradient) then
|
||||
g = g - ((1 / maxComboPoints)*i)
|
||||
end
|
||||
self.frame.graphical[i].texture:SetVertexColor(r, g, b)
|
||||
|
||||
if i == self.chargedPowerPointIndex and self.moduleSettings.bShowAnimaCharged then
|
||||
self.frame.graphical[i].texture:SetVertexColor(self:GetColor("KyrianAnimaComboPoint"))
|
||||
else
|
||||
self.frame.graphical[i].texture:SetVertexColor(r, g, b)
|
||||
end
|
||||
|
||||
self.frame.graphical[i]:Hide()
|
||||
end
|
||||
|
@ -6,6 +6,13 @@ if IceHUD.WowVer >= 80000 or IceHUD.WowClassic then
|
||||
SPELL_POWER_COMBO_POINTS = Enum.PowerType.ComboPoints
|
||||
end
|
||||
|
||||
local GetUnitChargedPowerPoints = GetUnitChargedPowerPoints
|
||||
if not GetUnitChargedPowerPoints then
|
||||
GetUnitChargedPowerPoints = function()
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
function ComboPointsBar.prototype:init()
|
||||
ComboPointsBar.super.prototype.init(self, "ComboPointsBar")
|
||||
|
||||
@ -57,7 +64,6 @@ end
|
||||
|
||||
function ComboPointsBar.prototype:GetDefaultSettings()
|
||||
local defaults = ComboPointsBar.super.prototype.GetDefaultSettings(self)
|
||||
defaults.textVisible['lower'] = false
|
||||
defaults.offset = 8
|
||||
defaults.enabled = false
|
||||
defaults.alwaysDisplay = false
|
||||
@ -83,6 +89,18 @@ function ComboPointsBar.prototype:Enable(core)
|
||||
else
|
||||
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateComboPoints")
|
||||
end
|
||||
|
||||
if IceHUD.WowVer >= 90000 then
|
||||
self:RegisterEvent("UNIT_POWER_POINT_CHARGE", "UpdateChargedComboPoints")
|
||||
end
|
||||
|
||||
self:UpdateChargedComboPoints()
|
||||
end
|
||||
|
||||
function ComboPointsBar.prototype:UpdateChargedComboPoints()
|
||||
local chargedPowerPoints = GetUnitChargedPowerPoints("player")
|
||||
self.chargedPowerPointIndex = chargedPowerPoints and chargedPowerPoints[1]
|
||||
self:UpdateComboPoints()
|
||||
end
|
||||
|
||||
function ComboPointsBar.prototype:CreateFrame()
|
||||
@ -129,6 +147,7 @@ function ComboPointsBar.prototype:UpdateComboPoints(...)
|
||||
end
|
||||
|
||||
self:SetBottomText1(points or "0")
|
||||
self:SetBottomText2(self.chargedPowerPointIndex)
|
||||
end
|
||||
|
||||
function ComboPointsBar.prototype:Update()
|
||||
|
10
readme.md
10
readme.md
@ -1,15 +1,5 @@
|
||||
# IceHUD
|
||||
|
||||
## Shadowlands/9.0 note
|
||||
|
||||
Anyone wanting to try out my first attempt at 9.0 compatibility is welcome to download the latest alpha build. I'm going to give this some time to percolate and wait for reports to come in before tagging it as a final build. I don't have a whole lot of time right now to work on the mod, so feedback is helpful.
|
||||
|
||||
Additionally, if you find this mod integral to your WoW experience, [a donation is very helpful](https://www.paypal.com/cgi-bin/webscr?return=https://www.github.com/parnic/ice-hud&cn=Add+special+instructions+to+the+addon+author()&business=icehud%40parnic.com&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted&cancel_return=https://www.github.com/parnic/ice-hud&lc=US&item_name=IceHUD+(from+github.com)&cmd=_donations&rm=1&no_shipping=1¤cy_code=USD) to allow me to gauge how much time I need to put into this as well as maintain a WoW subscription to be able to develop the mod.
|
||||
|
||||
Thanks!
|
||||
|
||||
----
|
||||
|
||||
IceHUD is a highly configurable and customizable HUD addon in the spirit of DHUD, MetaHUD, and others designed to keep your focus in the center of the screen where your character is.
|
||||
|
||||
## **What it is**
|
||||
|
5
this_version.md
Normal file
5
this_version.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
v1.13.2:
|
||||
|
||||
- Fixed which version of LibDogTag was being packaged. The previous version did not have 9.0 compatibility and was generating errors (ticket #293).
|
Reference in New Issue
Block a user