ZitatFixed total playback time not being remembered since beta 18.
Fixed problems with accessing some non-UTF8-compliant FTP servers.
DSP bug fixes.
Fixed FPL writer regression causing some of written playlists to be unreadable.
Fixed a bug that prevented some internet radio station names from being shown.
// ==PREPROCESSOR==
// @name "Text Reader"
// @author "marc2003"
// @import "%fb2k_component_path%helpers.txt"
// @import "%fb2k_component_path%samples\js\lodash.min.js"
// @import "%fb2k_component_path%samples\js\common.js"
// @import "%fb2k_component_path%samples\js\panel.js"
// @import "%fb2k_component_path%samples\js\text.js"
// ==/PREPROCESSOR==
// https://marc2k3.github.io/jscript-panel/gallery/text-reader/
var panel = new _panel()
panel.draw_header = function (gr, text) {
gr.WriteText(text, this.fonts.title, this.colours.highlight, LM, 0, this.w - (LM * 2), TM, DWRITE_TEXT_ALIGNMENT_CENTER, DWRITE_PARAGRAPH_ALIGNMENT_CENTER, DWRITE_WORD_WRAPPING_NO_WRAP, DWRITE_TRIMMING_GRANULARITY_CHARACTER);
gr.DrawLine(LM, TM + 0.5, this.w - LM, TM + 0.5, 1, this.colours.highlight);
}
var text = new _text('text_reader2', LM, TM, 0, 0);
panel.item_focus_change();
function on_colours_changed() {
panel.colours_changed();
window.Repaint();
}
function on_font_changed() {
panel.font_changed();
window.Repaint();
}
function on_item_focus_change() {
panel.item_focus_change();
}
function on_key_down(k) {
text.key_down(k);
}
function on_metadb_changed() {
text.metadb_changed();
}
function on_mouse_lbtn_up(x, y) {
text.lbtn_up(x, y);
}
function on_mouse_move(x, y) {
text.move(x, y);
}
function on_mouse_rbtn_up(x, y) {
return panel.rbtn_up(x, y, text);
}
function on_mouse_wheel(s) {
text.wheel(s);
}
function on_paint(gr) {
panel.paint(gr);
panel.draw_header(gr, text.header_text());
text.paint(gr);
}
function on_playback_dynamic_info_track() {
panel.item_focus_change();
}
function on_playback_new_track() {
panel.item_focus_change();
}
function on_playback_stop(reason) {
if (reason != 2) {
panel.item_focus_change();
}
}
function on_playlist_switch() {
panel.item_focus_change();
}
function on_size() {
panel.size();
text.w = panel.w - (LM * 2);
text.h = panel.h - TM;
text.size();
}
Seite erstellt in 0.006 Sekunden mit 13 Abfragen.