bugfix import json failed (#1212)
* del unused BMP (whole dir, we don't use the legacy of declassified any more, due different/new approach) * missing files, and nothing but let netlify deploy again --------- Co-authored-by: Fathony Luthfillah <fathony@smart-leaders.net>
120
packages/webamp-modern/assets/winamp_classic/scripts/display.m
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
#include <lib/std.mi>
|
||||
#include "attribs.m"
|
||||
|
||||
Global Group frameGroup;
|
||||
Global Togglebutton ShuffleBtn,RepeatBtn,ShuffleBtn2,RepeatBtn2;
|
||||
Global Timer SongTickerTimer;
|
||||
Global Text InfoTicker;
|
||||
Global GuiObject SongTicker;
|
||||
Global Slider Balance;
|
||||
Global Layout normal;
|
||||
|
||||
function setSongtickerScrolling();
|
||||
|
||||
System.onScriptLoaded() {
|
||||
initAttribs();
|
||||
frameGroup = getScriptGroup();
|
||||
SongTicker = frameGroup.findObject("songticker");
|
||||
InfoTicker = frameGroup.findObject("infoticker");
|
||||
normal = frameGroup.getParentLayout();
|
||||
|
||||
SongTickerTimer = new Timer;
|
||||
SongTickerTimer.setDelay(1000);
|
||||
|
||||
RepeatBtn = frameGroup.findObject("Repeat");
|
||||
ShuffleBtn = frameGroup.findObject("Shuffle");
|
||||
RepeatBtn2 = frameGroup.findObject("RepeatDisplay");
|
||||
ShuffleBtn2 = frameGroup.findObject("ShuffleDisplay");
|
||||
|
||||
Balance = frameGroup.findObject("Balance");
|
||||
setSongtickerScrolling();
|
||||
}
|
||||
|
||||
normal.onAction (String action, String param, Int x, int y, int p1, int p2, GuiObject source)
|
||||
{
|
||||
if (strlower(action) == "showinfo")
|
||||
{
|
||||
SongTicker.hide();
|
||||
SongTickerTimer.start();
|
||||
InfoTicker.setText(param);
|
||||
InfoTicker.show();
|
||||
|
||||
}
|
||||
else if (strlower(action) == "cancelinfo")
|
||||
{
|
||||
SongTickerTimer.onTimer ();
|
||||
}
|
||||
}
|
||||
|
||||
SongTickerTimer.onTimer() {
|
||||
SongTicker.show();
|
||||
InfoTicker.hide();
|
||||
SongTickerTimer.stop();
|
||||
}
|
||||
|
||||
System.onScriptUnloading() {
|
||||
delete SongTickerTimer;
|
||||
}
|
||||
|
||||
Balance.onSetPosition(int newpos)
|
||||
{
|
||||
string t=translate("Balance")+":";
|
||||
if (newpos==127) t+= " " + translate("Center");
|
||||
if (newpos<127) t += " " + integerToString((100-(newpos/127)*100))+"% "+translate("Left");
|
||||
if (newpos>127) t += " " + integerToString(((newpos-127)/127)*100)+"% "+translate("Right");
|
||||
|
||||
SongTickerTimer.start();
|
||||
SongTicker.hide();
|
||||
InfoTicker.show();
|
||||
InfoTicker.setText(t);
|
||||
}
|
||||
|
||||
RepeatBtn.onToggle(boolean on) {
|
||||
SongTickerTimer.start();
|
||||
int v = getCurCfgVal();
|
||||
SongTicker.hide();
|
||||
InfoTicker.show();
|
||||
if (v == 0) InfoTicker.setText("Repeat: OFF");
|
||||
else if (v > 0) InfoTicker.setText("Repeat: ALL");
|
||||
else if (v < 0) InfoTicker.setText("Repeat: TRACK");
|
||||
}
|
||||
|
||||
ShuffleBtn.onToggle(boolean on) {
|
||||
SongTickerTimer.start();
|
||||
SongTicker.hide();
|
||||
InfoTicker.show();
|
||||
if (on) InfoTicker.setText("Playlist Shuffling: ON"); else InfoTicker.setText("Playlist Shuffling: OFF");
|
||||
}
|
||||
|
||||
RepeatBtn2.onToggle(boolean on) {
|
||||
SongTickerTimer.start();
|
||||
int v = getCurCfgVal();
|
||||
SongTicker.hide();
|
||||
InfoTicker.show();
|
||||
if (v == 0) InfoTicker.setText("Repeat: OFF");
|
||||
else if (v > 0) InfoTicker.setText("Repeat: ALL");
|
||||
else if (v < 0) InfoTicker.setText("Repeat: TRACK");
|
||||
}
|
||||
|
||||
ShuffleBtn2.onToggle(boolean on) {
|
||||
SongTickerTimer.start();
|
||||
SongTicker.hide();
|
||||
InfoTicker.show();
|
||||
if (on) InfoTicker.setText("Playlist Shuffling: ON"); else InfoTicker.setText("Playlist Shuffling: OFF");
|
||||
}
|
||||
|
||||
songticker_scrolling_attrib.onDataChanged() {
|
||||
setSongtickerScrolling();
|
||||
}
|
||||
|
||||
setSongtickerScrolling() {
|
||||
if (songticker_scrolling_modern_attrib.getData()=="1") {
|
||||
SongTicker.setXMLParam("ticker","bounce");
|
||||
}
|
||||
else if (songticker_scrolling_classic_attrib.getData()=="1") {
|
||||
SongTicker.setXMLParam("ticker","scroll");
|
||||
}
|
||||
else {
|
||||
SongTicker.setXMLParam("ticker","off");
|
||||
}
|
||||
}
|
||||
90
packages/webamp-modern/assets/winamp_classic/scripts/eq.m
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
#include <lib/std.mi>
|
||||
#include <lib/winampconfig.mi>
|
||||
|
||||
Global Group frameGroup, use;
|
||||
Global Button btnEQp12,btnEQ0,btnEQm12;
|
||||
Global Layer eqBand;
|
||||
Global Boolean manual_set;
|
||||
|
||||
Global Layout normal;
|
||||
|
||||
#define ISOBANDS "31.5 Hz,63 Hz,125 Hz,250 Hz,500 Hz,1 KHz,2 KHz,4 KHz,8 KHz,16 KHz"
|
||||
#define WINAMPBANDS "70 Hz,180 Hz,320 Hz,600 Hz,1 KHz,3 KHz,6 KHz,12 KHz,14 KHz,16 KHz"
|
||||
|
||||
System.onScriptLoaded() {
|
||||
WinampConfigGroup eqwcg = WinampConfig.getGroup("{72409F84-BAF1-4448-8211-D84A30A1591A}");
|
||||
int freqmode = eqwcg.getInt("frequencies"); // returns 0 for classical winamp levels, 1 for ISO levels
|
||||
|
||||
frameGroup = getScriptGroup();
|
||||
normal = frameGroup.getParentLayout();
|
||||
btnEQp12 = frameGroup.findObject("EQ_p12");
|
||||
btnEQ0 = frameGroup.findObject("EQ_0");
|
||||
btnEQm12 = frameGroup.findObject("EQ_m12");
|
||||
eqBand = frameGroup.findObject("equalizer.band.label");
|
||||
|
||||
system.onEqFreqChanged(freqmode);
|
||||
}
|
||||
|
||||
btnEQp12.onLeftClick() {
|
||||
manual_set = 1;
|
||||
for(int i=0; i<10; i++) setEqBand(i, 127);
|
||||
manual_set = 0;
|
||||
}
|
||||
|
||||
btnEQ0.onLeftClick() {
|
||||
manual_set = 1;
|
||||
for(int i=0; i<10; i++) setEqBand(i, 0);
|
||||
manual_set = 0;
|
||||
}
|
||||
|
||||
btnEQm12.onLeftClick() {
|
||||
manual_set = 1;
|
||||
for(int i=0; i<10; i++) setEqBand(i, -127);
|
||||
manual_set = 0;
|
||||
}
|
||||
|
||||
System.onEqFreqChanged (boolean isoonoff)
|
||||
{
|
||||
if (isoonoff == 1)
|
||||
{
|
||||
eqBand.setXmlParam("image", "drawer.eq.label.iso");
|
||||
for(int i=0; i<10; i++) frameGroup.findObject("eq"+integerToString(i+1)).setXmlParam("tooltip", getToken(ISOBANDS,",",i));
|
||||
}
|
||||
else
|
||||
{
|
||||
eqBand.setXmlParam("image", "drawer.eq.label.winamp");
|
||||
for(int i=0; i<10; i++) frameGroup.findObject("eq"+integerToString(i+1)).setXmlParam("tooltip", getToken(WINAMPBANDS,",",i));
|
||||
}
|
||||
}
|
||||
|
||||
system.onEqBandChanged(int band, int value)
|
||||
{
|
||||
if (manual_set) return;
|
||||
String t;
|
||||
Float f = value;
|
||||
f = f / 10.5;
|
||||
WinampConfigGroup eqwcg = WinampConfig.getGroup("{72409F84-BAF1-4448-8211-D84A30A1591A}");
|
||||
if (eqwcg.getInt("frequencies") == 1) {
|
||||
if (f >= 0) t = "EQ: " + translate(getToken(ISOBANDS,",",band)) + ": +" + floattostring(f, 1) + " "+ translate("dB");
|
||||
else t = "EQ: " + translate(getToken(ISOBANDS,",",band)) + ": " + floattostring(f, 1) + " "+ translate("dB");
|
||||
}
|
||||
else {
|
||||
if (f >= 0) t = "EQ: " + translate(getToken(WINAMPBANDS,",",band)) + ": +" + floattostring(f, 1) + " "+ translate("dB");
|
||||
else t = "EQ: " + translate(getToken(WINAMPBANDS,",",band)) + ": " + floattostring(f, 1) + " "+ translate("dB");
|
||||
}
|
||||
|
||||
normal.sendAction("showinfo", t, 0,0,0,0);
|
||||
}
|
||||
|
||||
system.onEqPreampChanged(int value)
|
||||
{
|
||||
slider s = getScriptGroup().findObject("preamp");
|
||||
value = s.getPosition(); // Somehow this function returns a range from [-127;125] with hotpos -3, so we take the slider instead
|
||||
String t = "EQ: " + translate("Preamp:") + " ";
|
||||
Float f = value;
|
||||
f = f / 10.5;
|
||||
if (f >= -3) t += "+"+floattostring(f, 1) + " "+ translate("dB");
|
||||
else t += floattostring(f, 1) + " "+ translate("dB");
|
||||
|
||||
normal.sendAction("showinfo", t, 0,0,0,0);
|
||||
}
|
||||
BIN
packages/webamp-modern/assets/winamp_classic/scripts/eq.maki
Normal file
|
Before Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 255 KiB |
|
Before Width: | Height: | Size: 255 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 255 KiB |
|
Before Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 1,005 B |
|
Before Width: | Height: | Size: 321 B |
|
Before Width: | Height: | Size: 182 B |
|
Before Width: | Height: | Size: 5 KiB |
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
|
||||
|
||||
<script file="scripts/display.maki"/>
|
||||
<script file="scripts/display.maki" />
|
||||
</groupdef>
|
||||
|
||||
<groupdef id="sliders">
|
||||
|
|
|
|||