From Brotato Wiki

(extra_btns: toggle costs/tags)
(data attr for miscs (tags/costs))
Line 16: Line 16:
{{#ifeq:{{{extra_btns|}}}|1|<td style="padding-left: 20px;">
{{#ifeq:{{{extra_btns|}}}|1|<td style="padding-left: 20px;">
<!-- Extras: Cost/Tags -->
<!-- Extras: Cost/Tags -->
<span class="btn btn--active" data-hide-type="item" data-hide-target="ibox__stats-costs" title="Costs" style="height: 20px;">{{StatIcon|Materials|nolink=1}}</span>
<span class="btn btn--active" data-hide-type="misc" data-hide-target="ibox__stats-costs" title="Costs" style="height: 20px;">{{StatIcon|Materials|nolink=1}}</span>
<span class="btn btn--active" data-hide-type="item" data-hide-target="box__stats-tags" title="Tags" style="height: 20px;">🏷️</span>
<span class="btn btn--active" data-hide-type="misc" data-hide-target="box__stats-tags" title="Tags" style="height: 20px;">🏷️</span>
</td>|}}
</td>|}}
<td style="text-align: right;">
<td style="text-align: right;">

Revision as of 19:15, 16 December 2022

Creates buttons that can be used above a table grid of items, shown with StatsCard, to toggle the visibility of those items.

See Mod:Extatonion/Items for a working example.

Default

{{StatsCard_GridToggles}}

✔️

Max HP.png HP Regeneration.png Life Steal.png Damage.png Melee Damage.png Ranged Damage.png Elemental Damage.png Attack Speed.png Crit Chance.png Engineering Stat.png Range Stat.png Armor.png Dodge Stat.png Speed Stat.png Luck.png Harvesting.png

Tier Buttons

{{StatsCard_GridToggles|tier_btns=1}}

✔️

Common Uncommon Rare Legendary

Max HP.png HP Regeneration.png Life Steal.png Damage.png Melee Damage.png Ranged Damage.png Elemental Damage.png Attack Speed.png Crit Chance.png Engineering Stat.png Range Stat.png Armor.png Dodge Stat.png Speed Stat.png Luck.png Harvesting.png

Extra Buttons

{{StatsCard_GridToggles|extra_btns=1}}

✔️

Materials.png 🏷️

Max HP.png HP Regeneration.png Life Steal.png Damage.png Melee Damage.png Ranged Damage.png Elemental Damage.png Attack Speed.png Crit Chance.png Engineering Stat.png Range Stat.png Armor.png Dodge Stat.png Speed Stat.png Luck.png Harvesting.png