forked from mirrors/0ad
Adjust the resource icon placement in tooltips
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user