Single click Skins modifications.

The forum for designers and developers.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
catkiller
Posts: 6
Joined: 3. Dec 11, 19:06
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Single click Skins modifications.

Postby catkiller » 3. Dec 11, 19:09


SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Single click Skins modifications.

Postby SilverEagle » 5. Dec 11, 09:59

Hi Cat,

catkiller wrote:
> Basically I'm just looking for a way to modify the default workspace behaviour to allow a single click on an album/track to enqueue it.

I'm the proud inventer of (and possibly only coder using?) single clicks in the workspace. It all started here:



And evolved through this...



...into this:



Have fun skinning!
SilverEagle

catkiller
Posts: 6
Joined: 3. Dec 11, 19:06
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Single click Skins modifications.

Postby catkiller » 14. Dec 11, 00:33

Hi,

Thanks for your help. I did see your skin and was *very* interested by it, but unfortunately I am using Silverjuke on Mac, and this skin requires a seemingly Windows only .DLL.

Is the workspace single clicking done through the .DLL or through some scripts from the skin I could use as templates to make my own (if that's ok of course)?

Also, is there a chance you could compile this DLL for Mac, if that's easy or/and possible? Thanks a lot in advance!

Cat'

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Single click Skins modifications.

Postby SilverEagle » 14. Dec 11, 00:54

catkiller wrote:
> ... unfortunately I am using Silverjuke on Mac, and this skin requires a seemingly Windows only .DLL.

That is not good in this case... But only the last (v3 beta) of my skin requires the DLL. The others are normal scripting and should run unchanged on a Mac.

> Is the workspace single clicking done through the .DLL or through some scripts from the skin I could use as templates to make my own (if that's ok of course)?

The trick is in BlueTouch v2, in main.sj, in DetectOneClick(). That function is called on a timer and continuously tests if a user has exactly 1 track selected in the workspace. If so, he has 'clicked' it, thus the track can be queued. That's all there is to it :-)

> Also, is there a chance you could compile this DLL for Mac, if that's easy or/and possible? Thanks a lot in advance!

Not even if you'd send me a Mac... The code of the DLL is 'borrowed' from all over the net, and is at least 75% very MS-centric. It would have to be rewritten by that amount to run on a Mac. But the good news is you don't need it for the single click.

Good luck,
SilverEagle

catkiller
Posts: 6
Joined: 3. Dec 11, 19:06
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Single click Skins modifications.

Postby catkiller » 14. Dec 11, 23:18

Thanks a lot for your reply!

And how do you make this work for when "touching" an album cover in your skin? I understand the loop for the track, but how do you manage to "select" an entire album by clicking on its cover rather than its name in the workspace?

Thanks a million in advance for your help.

Cat'

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Single click Skins modifications.

Postby SilverEagle » 14. Dec 11, 23:44

catkiller wrote:
> And how do you make this work for when "touching" an album cover in your skin?

That only works when the workspace is in Silverjukes 'cover view' mode. F3 toggles through the mode, you need the one with the album art with a single trackname below.

> I understand the loop for the track, but how do you manage to "select" an entire album by clicking on its cover rather than its name in the workspace?

It does not work that way. You can only queue a single track. Either in cover mode, where you can select the cover. Or in 'album view', where you can select the text of a track but cannot select the album.

In my Bluetouch v3 beta I can make Silverjuke jump through hoops, but for that I need my DLL library.

(For some showing off see for what the library can do, but you need to borrow a windowsmachine somewhere :-))

Cheers,
SilverEagle

catkiller
Posts: 6
Joined: 3. Dec 11, 19:06
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Single click Skins modifications.

Postby catkiller » 16. Dec 11, 00:07

Thanks for your help, I understand now.

Cat'


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Developer Network”