Releases: whistlechips/PlayControl
Releases · whistlechips/PlayControl
PlayControl1.5.4
- function getAlternatingColor() sets an interval for blinking the Play button. Alternates between TextNormal and TextHighlight when Foobar2000 is playing. When paused blinking is stopped and only TextNormal is used.
PlayControl1.5.3
v1.5.3 Changes:
- drawSummaryText() function now computes its own width to allow longer TF strings for Now Playing Line 2 and 3.
- Combined duplicate parameters passed between functions btn() and make_button().
- Updated make_rgb() function to use both Hyphen and Comma-separated formats
- Made second line of Now Playing Text bold.
PlayControl v1.5.2
v1.5.2 Changes:
- Fixed lost summ.w assignment in drawSummaryText().
- Fix the "Unexpected token >" error and correctly expand shorthand hex colors.
- Modified code with try...catch blocks added around the two FillRoundRect calls in drawButtonsBgBorder().
PlayControl v1.5.1
v1.5.1 Changes:
- Button Tool Tips modularization.
- Changed inline button functions into a consolidated structure btnHandlers.
PlayControl v1.5.0
v1.5.0 Changes:
- Folded drawVolumeBar() function into drawSeekbar().
- Combined Shortcut and Transport button background and border settings into one.
- Updated drawButtons() to accomodate above combination.
- Changed colors.ButtonBackground to be a color overlay of wallpaper using alpha _RGBA(0, 0, 0, 96).
- Seekbar: Paused and Playing Colors are no longer used. Value shared with buttonBackground.
- Various other minor code clean-ups.
- Optimized make_rgb() function that supports both:
- RGB(A) comma-separated strings like "255,128,64" or "255,128,64,128"
- Hex color strings like "#FF8040", "FF8040", or even short format "#F83"
v1.4.1
v1.4.1 Changes:
- New Property added: "Album Art Run". Left-clicking on the Album Art (if enabled) launches a FB2K Context Command via the foo_run component, which must be installed. See https://www.foobar2000.org/components/view/foo_run for more info and download link. The Property VALUE is a Named Service in this component (FB2K: Preferences > Tools > Run services). Default is the included 'Google Artist + Title' service. This can be changed to another or a new service can be added and this VALUE can be edited.
- Old SAVE button is now "Button: Shortcut Run". It sends its VALUE to the same foo_run component. Again, this can be changed to another FB2K Context Command or a new service can be added and this VALUE can be edited.
- To get these to display on the Properties screen/tab: click the CLEAR button, then APPLY.
v1.4.0
Major optimization and modularization. Notes in source files.
PlayControl v1.3.0
Mod Wallpaper and Album art functionality and general code cleanup and optimization.
PlayControl v1.2.6
Now using fb.GetFocusItem() in its own PlayControl helper function, instead of fb.GetNowPlaying() in a callback to utils.GetAlbumArtV2() to get the proper albumart, along with modification/addition of if() statements to select appropriate above function.
PlayControl_helpers.js:
function get_album_art(metadb) {
if (metadb)
return utils.GetAlbumArtV2(metadb, 0, false); // Get front cover
};
PlayControl.js:
// Album Cover
if (!fb.IsPlaying && ppt.showalbumart) {
albumart = get_album_art(fb.GetFocusItem());
} else if (fb.IsPlaying && ppt.showalbumart) {
albumart = get_album_art(fb.GetNowPlaying());
};
PlayControl v1.2.5
- Disabled
"utils.GetAlbumArtV2(fb.GetFocusItem(), 0)". This does not allow showing art when initially starting FB2000 but finally kills the error that rises when a playing song/playlist is deleted.