i like to use the consume feature with mpd. there is no way to turn this
on/off currently (that i could find), so hacked it in based on the repeat and
random work.
these are the changes i made (can probably be done better, particularly the
'height' of the control area:
main.js:
37,38c37
< region: 'north',
< height: 100
---
> region: 'north'
mpd.control.js:
62,74d61
< var btnConsume = new Ext.Button({
< iconCls: 'icon-consume',
< text: 'Consume',
< x: 190,
< y: 56,
< enableToggle: true,
< toggleHandler: function(btn, state) {
< var val = (state) ? '1' : '0'
< if (val != mpd.status.consume) mpd.cmd(['consume', val])
< }
< })
<
<
203d189
< btnConsume,
324,328d309
<
< mpd.events.on('consume', function () {
< var val = (mpd.status.consume == '1')
< btnConsume.toggle(val)
< })
style-css:
165,170d164
< .icon-consume {
< background: url("icons/fugue/arrow-consume-gray.png") no-repeat !important;
< }
< .x-btn-pressed .icon-consume {
< background: url("icons/fugue/arrow-consume.png") no-repeat !important;
< }
would really like to see the consume option implemented in client175,
regardless if its this method of another. i use it often and it kinda sucks to
have to ssh in to my server and use mpc.
thanks for the work on client175, looking forward to future
improvements/enhancements!
Original issue reported on code.google.com by campbell...@gmail.com on 16 Jan 2011 at 10:34
Original issue reported on code.google.com by
campbell...@gmail.com
on 16 Jan 2011 at 10:34Attachments: