Files
Paradise/nano/templates/pai_radio.tmpl
2015-03-06 18:34:45 -05:00

48 lines
1.5 KiB
Cheetah

<!-- pAI radio config
code/modules/mob/living/silicon/pai/software_modules.dm
-->
<div class="item">
<div class="itemLabel">
Microphone:
</div>
<div class="itemContent">
{{if data.listening}}
{{:helper.link("On", '', {"stopic":"radio", "talk":1}, 'selected')}}
{{:helper.link("Off", '', {"stopic":"radio", "talk":1})}}
{{else}}
{{:helper.link("On", '', {"stopic":"radio", "talk":1})}}
{{:helper.link("Off", '', {"stopic":"radio", "talk":1}, 'selected')}}
{{/if}}
</div>
</div>
<div class="item">
<div class="itemLabel">
Frequency:
</div>
<div class="itemContent">
{{:helper.link("--", '', {"stopic":"radio", "freq":-10})}}
{{:helper.link("-", '', {"stopic":"radio", "freq": -2})}}
<div style="float: left; width: 80px; text-align: center;">{{:data.frequency}}</div>
{{:helper.link("+", '', {"stopic":"radio", "freq": 2})}}
{{:helper.link("++", '', {"stopic":"radio", "freq": 10})}}
</div>
</div>
{{for data.channels}}
<div class="item">
<div class="itemLabel">
{{:value.name}}
</div>
<div class="itemContent">
{{if value.listening}}
{{:helper.link("On", '', {"stopic":"radio", "channel":value.name, "listen":1}, 'selected')}}
{{:helper.link("Off", '', {"stopic":"radio", "channel":value.name, "listen":1})}}
{{else}}
{{:helper.link("On", '', {"stopic":"radio", "channel":value.name, "listen":1})}}
{{:helper.link("Off", '', {"stopic":"radio", "channel":value.name, "listen":1}, 'selected')}}
{{/if}}
</div>
</div>
{{/for}}