Differential D2126 Diff 16716 ps/trunk/binaries/data/mods/public/gui/reference/structree/Boxes/EntityBox.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/reference/structree/Boxes/EntityBox.js
Show All 20 Lines | class EntityBox | ||||
} | } | ||||
draw(templateName, civCode) | draw(templateName, civCode) | ||||
{ | { | ||||
this.template = this.page.TemplateParser.getEntity(templateName, civCode); | this.template = this.page.TemplateParser.getEntity(templateName, civCode); | ||||
this.gui.hidden = false; | this.gui.hidden = false; | ||||
let caption = this.gui.children[0]; | let caption = this.gui.children[0]; | ||||
caption.caption = translate(this.template.name.specific); | caption.caption = g_SpecificNamesPrimary ? | ||||
translate(this.template.name.specific) : | |||||
translate(this.template.name.generic); | |||||
let icon = this.gui.children[1]; | let icon = this.gui.children[1]; | ||||
icon.sprite = "stretched:" + this.page.IconPath + this.template.icon; | icon.sprite = "stretched:" + this.page.IconPath + this.template.icon; | ||||
icon.tooltip = this.constructor.compileTooltip(this.template); | icon.tooltip = this.constructor.compileTooltip(this.template); | ||||
this.constructor.setViewerOnPress(icon, this.template.name.internal, civCode); | this.constructor.setViewerOnPress(icon, this.template.name.internal, civCode); | ||||
} | } | ||||
captionWidth() | captionWidth() | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator