Ticket #4505: patch
File patch, 4.0 KB (added by , 7 years ago) |
---|
-
binaries/data/mods/public/globalscripts/Templates.js
function GetTemplateDataHelper(template, 300 300 }; 301 301 ret.icon = template.Identity.Icon; 302 302 ret.tooltip = template.Identity.Tooltip; 303 303 ret.requiredTechnology = template.Identity.RequiredTechnology; 304 304 ret.visibleIdentityClasses = GetVisibleIdentityClasses(template.Identity); 305 306 if (template.Identity.History) 307 ret.history = template.Identity.History; 305 308 } 306 309 307 310 if (template.UnitMotion) 308 311 { 309 312 ret.speed = { -
binaries/data/mods/public/gui/common/tooltips.js
1 1 var g_TooltipTextFormats = { 2 2 "unit": ['[font="sans-10"][color="orange"]', '[/color][/font]'], 3 3 "header": ['[font="sans-bold-13"]', '[/font]'], 4 4 "body": ['[font="sans-13"]', '[/font]'], 5 "comma": ['[font="sans-12"]', '[/font]'] 5 "comma": ['[font="sans-12"]', '[/font]'], 6 "history": ['[font="sans-14"]', '[/font]'] 6 7 }; 7 8 8 9 var g_AttackTypes = { 9 10 "Melee": translate("Melee Attack:"), 10 11 "Ranged": translate("Ranged Attack:"), … … function getEntityTooltip(template) 53 54 return ""; 54 55 55 56 return bodyFont(template.tooltip); 56 57 } 57 58 59 function getEntityHistoryTooltip(template) 60 { 61 if (!template.history) 62 return ""; 63 64 return g_TooltipTextFormats.history[0] + template.history + g_TooltipTextFormats.history[1]; 65 } 66 58 67 function getHealthTooltip(template) 59 68 { 60 69 if (!template.health) 61 70 return ""; 62 71 -
binaries/data/mods/public/gui/structree/draw.js
var g_TooltipFunctions = [ 13 13 getGarrisonTooltip, 14 14 getProjectilesTooltip, 15 15 getSpeedTooltip, 16 16 getGatherTooltip, 17 17 getPopulationBonusTooltip, 18 getLootTooltip 18 getLootTooltip, 19 getEntityHistoryTooltip 19 20 ]; 20 21 21 22 /** 22 23 * Draw the structree 23 24 * -
binaries/data/mods/public/l10n/messages.json
376 376 "SpecificName": {}, 377 377 "VisibleClasses": { 378 378 "splitOnWhitespace": true 379 379 }, 380 380 "Tooltip": {}, 381 "History": {}, 381 382 "DisabledTooltip": {}, 382 383 "FormationName": {}, 383 384 "FromClass": {}, 384 385 "Rank": { 385 386 "tagAsContext": true … … 407 408 "SpecificName": {}, 408 409 "VisibleClasses": { 409 410 "splitOnWhitespace": true 410 411 }, 411 412 "Tooltip": {}, 413 "History": {}, 412 414 "DisabledTooltip": {}, 413 415 "FormationName": {}, 414 416 "FromClass": {}, 415 417 "Rank": { 416 418 "tagAsContext": true … … 445 447 "SpecificName": {}, 446 448 "VisibleClasses": { 447 449 "splitOnWhitespace": true 448 450 }, 449 451 "Tooltip": {}, 452 "History": {}, 450 453 "DisabledTooltip": {}, 451 454 "FormationName": {}, 452 455 "FromClass": {}, 453 456 "Rank": { 454 457 "tagAsContext": true