api: clean up and documentation

This commit is contained in:
shagu
2016-12-24 11:03:47 +01:00
parent a6c5a91823
commit ad4e68d681
29 changed files with 512 additions and 472 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ pfUI:RegisterModule("nameplates", function ()
else
healthbar.castbar:SetMinMaxValues(0, pfUI.castbar.target.casterDB[name:GetText()]["casttime"])
healthbar.castbar:SetValue(GetTime() - pfUI.castbar.target.casterDB[name:GetText()]["starttime"])
healthbar.castbar.text:SetText(round( pfUI.castbar.target.casterDB[name:GetText()]["starttime"] + pfUI.castbar.target.casterDB[name:GetText()]["casttime"] - GetTime(),1))
healthbar.castbar.text:SetText(pfUI.api.round( pfUI.castbar.target.casterDB[name:GetText()]["starttime"] + pfUI.castbar.target.casterDB[name:GetText()]["casttime"] - GetTime(),1))
if healthbar.castbar.spell then
if pfUI_config.nameplates.spellname == "1" then
healthbar.castbar.spell:SetText(pfUI.castbar.target.casterDB[name:GetText()]["cast"])