Adding UI for an addOn

To discuss development of addons / skins / customization of MediaMonkey.

Moderator: jiri

crap_inhuman
Posts: 592
Joined: Sat Jan 26, 2013 6:00 am
Location: Friedberg / Hessen / Germany
Contact:

Adding UI for an addOn

Post by crap_inhuman » Fri Feb 23, 2018 7:51 am

Hi,

what is the best way to write a Chromium UI with objects that can be handled by the script?
With an example?

Thank's for any help.
Metal up your ass !
-----------------------------------------------
I added my first 2 videos on youtube. The language is german.

Discogs Autorisierung: https://www.youtube.com/watch?v=oryxKKtnEnc
Discogs Tagger Bedienung: https://www.youtube.com/watch?v=85Wk-5rd-W0

MiPi
Posts: 435
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: Adding UI for an addOn

Post by MiPi » Mon Feb 26, 2018 10:38 am

Hi, could be more specific, what do you need? I am not sure. Currently e.g. lastFM script (in Scripts/lastFM) adds own panel to options dialog by using dlgOptions_add.js. Maybe try to describe some sample, which would help you, and we can make it.

crap_inhuman
Posts: 592
Joined: Sat Jan 26, 2013 6:00 am
Location: Friedberg / Hessen / Germany
Contact:

Re: Adding UI for an addOn

Post by crap_inhuman » Mon Feb 26, 2018 11:40 am

Thank you for trying to help me. I don't know where to start writing an user Interface. JS? Chromium?

I try to convert Discogs Tagger to MMW 5. So i need an UI like in the Discogs Tagger in MMW 4.

Sorry if this question is a dumb one...
Metal up your ass !
-----------------------------------------------
I added my first 2 videos on youtube. The language is german.

Discogs Autorisierung: https://www.youtube.com/watch?v=oryxKKtnEnc
Discogs Tagger Bedienung: https://www.youtube.com/watch?v=85Wk-5rd-W0

MiPi
Posts: 435
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: Adding UI for an addOn

Post by MiPi » Mon Feb 26, 2018 12:30 pm

In scripts, you can use common HTML5+JS. Chromium is used for rendering, so any HTML5/JS standard supported by Chromium (currently version 64) can be used.
MM5 contains framework for auto-tagging (see bin\helpers\autoTagFramework.js, there is some description), so there is probably no need to create own UI for another tagger. Currently MM5 contains 3 taggers (implemented in helpers/searchMusicbrainz.js, helpers/searchTVDB.js, helpers/searchIMDb.js), you can register another in the same way.

Post Reply