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
+4 -4
View File
@@ -26,19 +26,19 @@ pfUI:RegisterModule("cooldown", function ()
if remaining > 99 then
remaining = remaining / 60
unit = "m"
r,g,b,a = strsplit(",", pfUI_config.appearance.cd.mincolor)
r,g,b,a = pfUI.api.strsplit(",", pfUI_config.appearance.cd.mincolor)
end
if remaining > 99 then
remaining = remaining / 60
unit = "h"
r,g,b,a = strsplit(",", pfUI_config.appearance.cd.hourcolor)
r,g,b,a = pfUI.api.strsplit(",", pfUI_config.appearance.cd.hourcolor)
end
if remaining > 99 then
remaining = remaining / 24
unit = "d"
r,g,b,a = strsplit(",", pfUI_config.appearance.cd.daycolor)
r,g,b,a = pfUI.api.strsplit(",", pfUI_config.appearance.cd.daycolor)
end
this.text:SetText(round(remaining) .. unit)
this.text:SetText(pfUI.api.round(remaining) .. unit)
this.text:SetTextColor(r,g,b,a)
else
this:Hide()