implement la's TU22 patch file
This commit is contained in:
1 parent
f255035afd
commit
beec56d3be
22 files changed
+87
-26
No files matched your search
@@ -123,7 +123,14 @@ HtmlString AttributeModifier::getHoverText(eATTRIBUTE_ID attribute)
|
||||
}
|
||||
|
||||
wchar_t formatted[256];
|
||||
swprintf(formatted, 256, L"%ls%d%ls %ls", (amount > 0 ? L"+" : L"-"), static_cast<int>(displayAmount), (percentage ? L"%" : L""), app.GetString(Attribute::getName(attribute)));
|
||||
if (percentage)
|
||||
{
|
||||
swprintf(formatted, 256, L"%ls%d%ls %ls", (amount > 0 ? L"+" : L"-"), (int)displayAmount, L"%", app.GetString(Attribute::getName(attribute)));
|
||||
}
|
||||
else
|
||||
{
|
||||
swprintf(formatted, 256, L"%ls%.1g %ls", (amount > 0 ? L"+" : L"-"), displayAmount, app.GetString(Attribute::getName(attribute)));
|
||||
}
|
||||
|
||||
return HtmlString(formatted, color);
|
||||
}
|
||||
Reference in new issue
Block a user