1
0
forked from mirrors/0ad

Adjust the resource icon placement in tooltips

This commit is contained in:
Vantha
2025-04-07 18:41:17 +02:00
parent 314088af14
commit fa046392bb
@@ -41,7 +41,8 @@ function getCostTypes()
function resourceIcon(resource)
{
return '[icon="icon_' + resource + '"]';
// The icons are larger than the font is high; they have to be moved down a bit to appear fully in-line with the text.
return '[icon="icon_' + resource + '" displace="0 3"]';
}
function resourceNameFirstWord(type)