mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
http://www.wowace.com/projects/ice-hud/tickets/10-unable-to-reset-with-a-error/ - "Reset" configuration now works properly
This commit is contained in:
@ -209,11 +209,6 @@ end
|
|||||||
-- Configuration methods --
|
-- Configuration methods --
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
function IceCore.prototype:ResetSettings()
|
|
||||||
self:ResetDB()
|
|
||||||
ReloadUI()
|
|
||||||
end
|
|
||||||
|
|
||||||
function IceCore.prototype:GetVerticalPos()
|
function IceCore.prototype:GetVerticalPos()
|
||||||
return self.settings.verticalPos
|
return self.settings.verticalPos
|
||||||
end
|
end
|
||||||
|
@ -549,7 +549,7 @@ StaticPopupDialogs["ICEHUD_RESET"] =
|
|||||||
whileDead = 1,
|
whileDead = 1,
|
||||||
hideOnEscape = 1,
|
hideOnEscape = 1,
|
||||||
OnAccept = function()
|
OnAccept = function()
|
||||||
IceHUD.IceCore:ResetSettings()
|
IceHUD:ResetSettings()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -600,6 +600,11 @@ function IceHUD:OnEnable(isFirst)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function IceHUD:ResetSettings()
|
||||||
|
self:ResetDB()
|
||||||
|
ReloadUI()
|
||||||
|
end
|
||||||
|
|
||||||
-- fubar stuff
|
-- fubar stuff
|
||||||
IceHUD.OnMenuRequest = IceHUD.options
|
IceHUD.OnMenuRequest = IceHUD.options
|
||||||
IceHUD.hasIcon = "Interface\\Icons\\Spell_Frost_Frost"
|
IceHUD.hasIcon = "Interface\\Icons\\Spell_Frost_Frost"
|
||||||
|
Reference in New Issue
Block a user