Revert "Vending TGUI"

This commit is contained in:
Leo
2017-12-26 13:10:23 -02:00
committed by CitadelStationBot
parent ab1965b3a2
commit 889e281a57
3 changed files with 182 additions and 114 deletions
-16
View File
@@ -1,16 +0,0 @@
<ui-display title='Products'>
{{#each data.products}}
<ui-section label='{{name}}' labelcolor='{{color}}' candystripe right>
<span><b>{{amount}}</b></span>
<ui-button state='{{(amount > 0) ? null : "disabled"}}' icon='{{(amount > 0) ? "cart-arrow-down" : "ban"}}' action='vend' params='{"key": {{key}}}'>{{(amount > 0) ? "Vend" : "Sold Out"}}</ui-button>
</ui-section>
{{/each}}
</ui-display>
{{#if data.coinslot}}
<ui-display title='Coin Slot'>
<ui-section label='Coin'>
<span class='{{data.coin ? "bold" : null}}'>{{data.coin ? data.coin : "No Coin"}}</span>
<ui-button icon='arrow-circle-up' state='{{data.coin && data.canvend ? null : "disabled"}}'
action='eject'>Eject Coin</ui-button>
</ui-display>
{{/if}}