From Brotato Wiki
(updates) |
(make cost/item buttons inactive by default) |
||
Line 35: | Line 35: | ||
{{#ifeq:{{{extra_btns|}}}|1|<td style="padding-left: 10px; text-align: right;"> | {{#ifeq:{{{extra_btns|}}}|1|<td style="padding-left: 10px; text-align: right;"> | ||
<!-- Extras: Cost/Tags --> | <!-- Extras: Cost/Tags --> | ||
<span class="btn btn-- | <span class="btn btn--inactive" data-hide-type="misc" data-hide-target=".ibox__stats-costs" title="Costs" style="height: 20px;">{{StatIcon|Materials|nolink=1}}</span> | ||
<span class="btn btn-- | <span class="btn btn--inactive" data-hide-type="misc" data-hide-target=".ibox__stats-tags" title="Tags" style="height: 20px;">🏷️</span> | ||
</td>|}} | </td>|}} | ||
</tr> | </tr> |
Revision as of 19:48, 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}}
❌ ✔️ |
|
Tier Buttons
{{StatsCard_GridToggles|tier_btns=1}}
❌ ✔️ |
|
Tier 1 Tier 2 Tier 3 Tier 4 |
Extra Buttons
{{StatsCard_GridToggles|extra_btns=1}}
❌ ✔️ |
|
🏷️ |