mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- added a message to the PlayerInfo module when trying to dismiss a buff in cataclysm explaining that the API is currently protected and unable to fixed. this will be removed when Blizzard gives us a way to work around it
- added upgrade detection to alert users that their profile may need to be re-selected if the last version they ran was pre-ace3-conversion - added an FAQ section to the /icehud configuration page so that users don't have to go to one of the addon hosting sites to get their questions answered
This commit is contained in:
33
IceCore.lua
33
IceCore.lua
@ -73,8 +73,11 @@ function IceCore.prototype:SetupDefaults()
|
|||||||
|
|
||||||
bShouldUseDogTags = true,
|
bShouldUseDogTags = true,
|
||||||
|
|
||||||
updatePeriod = 0.1
|
updatePeriod = 0.1,
|
||||||
}
|
},
|
||||||
|
global = {
|
||||||
|
lastRunVersion = 0,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
self:LoadPresets()
|
self:LoadPresets()
|
||||||
@ -95,6 +98,32 @@ function IceCore.prototype:SetupDefaults()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
StaticPopupDialogs["ICEHUD_CONVERTED_TO_ACE3"] =
|
||||||
|
{
|
||||||
|
text = "(If this is your first time running IceHUD, please disregard this message)\n\nSince the last version of IceHUD you ran, we have upgraded to Ace3! This means that if you were using a custom profile for your settings you may need to open the /icehud options and re-choose it. You'll only need to do this once.\n\nThanks for using IceHUD!",
|
||||||
|
button1 = OKAY,
|
||||||
|
timeout = 0,
|
||||||
|
whileDead = 1,
|
||||||
|
hideOnEscape = 0,
|
||||||
|
}
|
||||||
|
|
||||||
|
function IceCore.prototype:CheckDisplayUpdateMessage()
|
||||||
|
local thisVersion
|
||||||
|
--[===[@non-debug@
|
||||||
|
thisVersion = @project-revision@
|
||||||
|
--@end-non-debug@]===]
|
||||||
|
--@debug@
|
||||||
|
thisVersion = 9999
|
||||||
|
--@end-debug@
|
||||||
|
if self.accountSettings.lastRunVersion < thisVersion then
|
||||||
|
if self.accountSettings.lastRunVersion < 549 then
|
||||||
|
StaticPopup_Show("ICEHUD_CONVERTED_TO_ACE3")
|
||||||
|
end
|
||||||
|
self.accountSettings.lastRunVersion = thisVersion
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function IceCore.prototype:Enable()
|
function IceCore.prototype:Enable()
|
||||||
self:DrawFrame()
|
self:DrawFrame()
|
||||||
|
|
||||||
|
50
IceHUD.lua
50
IceHUD.lua
@ -26,6 +26,51 @@ IceHUD.options =
|
|||||||
order = 10
|
order = 10
|
||||||
},
|
},
|
||||||
|
|
||||||
|
faq = {
|
||||||
|
type = 'group',
|
||||||
|
name = 'FAQs',
|
||||||
|
desc = 'Answers to questions that are frequently asked.',
|
||||||
|
order = 1,
|
||||||
|
args = {
|
||||||
|
test = {
|
||||||
|
type = 'description',
|
||||||
|
fontSize = "medium",
|
||||||
|
name = [[1. How do I hide the default Blizzard player and target unit frames?
|
||||||
|
Expand the "Module Settings" section, click "Player Health" or "Target Health," and check "Hide Blizzard Frame"
|
||||||
|
|
||||||
|
2. How do I turn off click-targeting and menus on the player bar?
|
||||||
|
Expand the "Module Settings" section, click "Player Health," un-check "Allow click-targeting." Note that as of v1.3, there is now an option to allow click-targeting out of combat, but turn it off while in combat.
|
||||||
|
|
||||||
|
3. How do I hide the HUD or change its transparency based on combat, targeting, etc.?
|
||||||
|
Check the "Transparency Settings" section. Nearly any combination of states should be available for tweaking.
|
||||||
|
|
||||||
|
4. Even if the rest of the HUD is transparent, the health percentages seem to show up. Why?
|
||||||
|
Expand the "Module Settings" section, expand "Player Health," click "Text Settings," look for options about keeping the lower/upper text blocks alpha locked. If the text is alpha locked, it will not drop below 100%, otherwise it respects its bar's transparency setting. Player Health/Mana, Target Health/Mana, and pet bars should all have these options.
|
||||||
|
|
||||||
|
5. Is there any way to see combo points for Rogues and Druids or sunder applications for Warriors?
|
||||||
|
Yes, check the "combo points" and "sunder count" modules in the configuration panel. (Note that these modules may not show up if you're not of the appropriate class to see them. They should be present for their respective classes, however.)
|
||||||
|
|
||||||
|
6. What's this thing at the top of the player's cast bar? It's darker than the rest of the bar.
|
||||||
|
That's the Cast Lag Indicator that shows you when you can start casting a new spell and still be able to finish the current one (based on your lag to the server). You can disable this in the Player Cast Bar module settings.
|
||||||
|
|
||||||
|
7. Is there a bar that shows breath underwater and if so, how can I adjust it?
|
||||||
|
Yes, this is called the MirrorBarHandler in the module settings. It's called that because it mirrors casting bar behavior, displays more than just breathing (fatigue is one example), and that's what Blizzard calls it. It can be moved/adjusted/resized/etc. as with any other module.
|
||||||
|
|
||||||
|
8. There's a long green bar that sometimes shows up below everything else. What is it?
|
||||||
|
That would be the TargetOfTarget module. That module is available for people who don't want the full ToT health/mana bars, but do want some sort of ToT representation on the screen.
|
||||||
|
|
||||||
|
9. IceHUD needs a bar or counter for buff/debuff X!
|
||||||
|
Good news: as of v1.5, you can create as many bars and counters for any buffs or debuffs you want! Click one of the "Create custom ..." buttons above. This will create a module named MyCustomBar# (where # is a number based on how many custom bars you've made so far) or MyCustomCounter#. You can then expand the Module Settings group and modify all sorts of settings on the new custom module. It is highly recommend that you rename the bar as soon as possible to avoid any confusion later. These custom modules are full-featured enough to replace some of the class-specific ones that are already there, but I will leave them so as not to upset people who are already using them.
|
||||||
|
|
||||||
|
10. How do I turn off the resting/combat/PvP/etc. icons on the player or target?
|
||||||
|
Expand Module Settings, expand PlayerHealth (or TargetHealth for targets), click Icon Settings. You can control every aspect of the icons there including location, visibility, draw order, etc.
|
||||||
|
|
||||||
|
11. How do I turn off buffs/debuffs on the player's or target's bar?
|
||||||
|
Expand Module Settings, expand PlayerInfo (or TargetInfo for targets), and set the number of buffs per row to be 0. These cannot be controlled independently (e.g. you can turn off buffs and debuffs, but not just one or the other).]]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
positioningSettings = {
|
positioningSettings = {
|
||||||
type = 'group',
|
type = 'group',
|
||||||
name = 'Positioning Settings',
|
name = 'Positioning Settings',
|
||||||
@ -445,7 +490,7 @@ IceHUD.options =
|
|||||||
modules = {
|
modules = {
|
||||||
type='group',
|
type='group',
|
||||||
desc = 'Module configuration options',
|
desc = 'Module configuration options',
|
||||||
name = 'Module settings',
|
name = 'Module Settings',
|
||||||
args = {},
|
args = {},
|
||||||
order = 41
|
order = 41
|
||||||
},
|
},
|
||||||
@ -727,8 +772,11 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function IceHUD:NotifyNewDb()
|
function IceHUD:NotifyNewDb()
|
||||||
|
self.IceCore.accountSettings = self.db.global
|
||||||
self.IceCore.settings = self.db.profile
|
self.IceCore.settings = self.db.profile
|
||||||
self.IceCore:SetModuleDatabases()
|
self.IceCore:SetModuleDatabases()
|
||||||
|
|
||||||
|
self.IceCore:CheckDisplayUpdateMessage()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -58,12 +58,24 @@ function PlayerInfo.prototype:CreateFrame(redraw)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
StaticPopupDialogs["ICEHUD_BUFF_DISMISS_UNAVAILABLE"] =
|
||||||
|
{
|
||||||
|
text = "Sorry, but there is currently no way for custom mods to cancel buffs. This will be fixed whenever Blizzard fixes the API.",
|
||||||
|
button1 = OKAY,
|
||||||
|
timeout = 0,
|
||||||
|
whileDead = 1,
|
||||||
|
hideOnEscape = 0,
|
||||||
|
}
|
||||||
|
|
||||||
function PlayerInfo.prototype:CreateIconFrames(parent, direction, buffs, type)
|
function PlayerInfo.prototype:CreateIconFrames(parent, direction, buffs, type)
|
||||||
local buffs = PlayerInfo.super.prototype.CreateIconFrames(self, parent, direction, buffs, type)
|
local buffs = PlayerInfo.super.prototype.CreateIconFrames(self, parent, direction, buffs, type)
|
||||||
|
|
||||||
for i = 1, IceCore.BuffLimit do
|
for i = 1, IceCore.BuffLimit do
|
||||||
if (self.moduleSettings.mouseBuff) then
|
if (self.moduleSettings.mouseBuff) then
|
||||||
buffs[i]:SetScript("OnMouseUp", function( self, button)
|
buffs[i]:SetScript("OnMouseUp", function( self, button)
|
||||||
|
if IceHUD.WowVer >= 40000 then
|
||||||
|
StaticPopup_Show("ICEHUD_BUFF_DISMISS_UNAVAILABLE")
|
||||||
|
else
|
||||||
if( button == "RightButton" ) then
|
if( button == "RightButton" ) then
|
||||||
if buffs[i].type == "mh" then
|
if buffs[i].type == "mh" then
|
||||||
CancelItemTempEnchantment(1)
|
CancelItemTempEnchantment(1)
|
||||||
@ -73,6 +85,7 @@ function PlayerInfo.prototype:CreateIconFrames(parent, direction, buffs, type)
|
|||||||
CancelUnitBuff("player", i)
|
CancelUnitBuff("player", i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
buffs[i]:SetScript("OnMouseUp", nil)
|
buffs[i]:SetScript("OnMouseUp", nil)
|
||||||
|
Reference in New Issue
Block a user