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,15 +26,15 @@ pfUI:RegisterModule("sellvalue", function ()
GameTooltip:AddLine(" ")
if count > 1 then
GameTooltip:AddDoubleLine("Sell:", CreateGoldString(sell) .. "|cff555555 // " .. CreateGoldString(sell*count), 1, 1, 1);
GameTooltip:AddDoubleLine("Sell:", pfUI.api.CreateGoldString(sell) .. "|cff555555 // " .. pfUI.api.CreateGoldString(sell*count), 1, 1, 1);
else
GameTooltip:AddDoubleLine("Sell:", CreateGoldString(sell * count), 1, 1, 1);
GameTooltip:AddDoubleLine("Sell:", pfUI.api.CreateGoldString(sell * count), 1, 1, 1);
end
if count > 1 then
GameTooltip:AddDoubleLine("Buy:", CreateGoldString(buy) .. "|cff555555 // " .. CreateGoldString(buy*count), 1, 1, 1);
GameTooltip:AddDoubleLine("Buy:", pfUI.api.CreateGoldString(buy) .. "|cff555555 // " .. pfUI.api.CreateGoldString(buy*count), 1, 1, 1);
else
GameTooltip:AddDoubleLine("Buy:", CreateGoldString(buy), 1, 1, 1);
GameTooltip:AddDoubleLine("Buy:", pfUI.api.CreateGoldString(buy), 1, 1, 1);
end
end
GameTooltip:Show()