mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
api: clean up and documentation
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user