Template:Legacy Installations Infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 71: Line 71:
{{!}} {{#ifeq:{{lc:{{{showprojectileindicator|}}}}}|false|No|Yes}}}}
{{!}} {{#ifeq:{{lc:{{{showprojectileindicator|}}}}}|false|No|Yes}}}}
|-
|-
{{#if:{{{hudtint|}}}|{{#vardefine:hudtint|{{#expr:{{#explode:{{{hudtint}}}|,|0}}*255}},{{#expr:{{#explode:{{{hudtint}}}|,|1}}*255}},{{#expr:{{#explode:{{{hudtint}}}|,|2}}*255}},{{#explode:{{{hudtint}}}|,|3}}}}
{{#if:{{{hudtint|}}}|
{{!}} style="text-align:right" {{!}} '''Hud Tint (RGBA)'''
{{!}} style="text-align:right" {{!}} '''Hud Tint'''
{{!}} style="background:black;color:rgba({{#var:hudtint}})" {{!}} '''{{#replace:{{{hudtint}}}|,|, }}'''}}
{{!}} style="background:rgba({{#expr:{{#explode:{{{hudtint}}}|,|0}}*255}},{{#expr:{{#explode:{{{hudtint}}}|,|1}}*255}},{{#expr:{{#explode:{{{hudtint}}}|,|2}}*255}},{{#explode:{{{hudtint}}}|,|3}})"}}
|-
|-
{{#if:{{{doortype|}}}{{{forcingtool|}}}{{{forcingtime|}}}|
{{#if:{{{doortype|}}}{{{forcingtool|}}}{{{forcingtime|}}}|
Line 199: Line 199:
{{!}} {{#expr:{{{light1range|100}}}/100}} meter{{#ifeq:{{{light1range|100}}}|100||s}}}}
{{!}} {{#expr:{{{light1range|100}}}/100}} meter{{#ifeq:{{{light1range|100}}}|100||s}}}}
|-
|-
{{#if:{{{light1color|}}}|{{#vardefine:light1color|{{#expr:{{#explode:{{{light1color}}}|,|0}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|1}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|2}}*255}},{{#explode:{{{light1color}}}|,|3}}}}
{{#if:{{{light1color|}}}|
{{!}} style="text-align:right" {{!}} '''Color (RGBA)'''
{{!}} style="text-align:right" {{!}} '''Color'''
{{!}} style="background:black;color:rgba({{#var:light1color}})" {{!}} '''{{#replace:{{{light1color}}}|,|, }}'''}}
{{!}} style="background:rgba({{#expr:{{#explode:{{{light1color}}}|,|0}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|1}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|2}}*255}},{{#explode:{{{light1color}}}|,|3}})"}}
|-
|-
{{#if:{{{repair1skill|}}}{{{repair1tools|}}}|
{{#if:{{{repair1skill|}}}{{{repair1tools|}}}|

Revision as of 07:27, 28 February 2023

Documentation

Basic

Field Description Example Expected Default
name The name of the installation. Fabricator String
sprite The sprite of the installation. Legacy Fabricator.png File name Legacy {{{name}}}.png
spritesize The size of the sprite, in px. x64 ##, x##, ##x## x128
description The installation's description. Fabricates various items. String

Technical

Field Description Example Expected Default
category The category of the installation. Alien Structure, Decorative, Machine, Medical, Weapon, Equipment, Electrical, Material, Alien, Misc Misc
tags The tags of the installation. alien,weapon CSV list