aboutsummaryrefslogtreecommitdiff
path: root/Src/resources/skins/Big Bento/scripts/infoline.m
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/resources/skins/Big Bento/scripts/infoline.m
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/resources/skins/Big Bento/scripts/infoline.m')
-rw-r--r--Src/resources/skins/Big Bento/scripts/infoline.m44
1 files changed, 44 insertions, 0 deletions
diff --git a/Src/resources/skins/Big Bento/scripts/infoline.m b/Src/resources/skins/Big Bento/scripts/infoline.m
new file mode 100644
index 00000000..1719ed9a
--- /dev/null
+++ b/Src/resources/skins/Big Bento/scripts/infoline.m
@@ -0,0 +1,44 @@
+/*---------------------------------------------------
+-----------------------------------------------------
+Filename: infoline.m
+Version: 1.0
+
+Type: maki
+Date: 06. Nov. 2007 - 22:40
+Author: Martin Poehlmann aka Deimos
+E-Mail: martin@skinconsortium.com
+Internet: www.skinconsortium.com
+ www.martin.deimos.de.vu
+-----------------------------------------------------
+---------------------------------------------------*/
+
+#include <lib/std.mi>
+
+Global Text txt;
+Global Text label;
+Global Layer link;
+Global Group sg;
+Global Int shift = 0;
+
+System.onScriptLoaded ()
+{
+ sg = getScriptGroup();
+
+ txt = sg.getObject("text");
+ label = sg.getObject("label");
+ link = sg.getObject("link");
+}
+
+System.onSetXuiParam (String param, String value)
+{
+ if (strlower(param) == "shift") shift = stringToInteger(value);
+ if (strlower(param) == "label") label.setText(value);
+ if (strlower(param) == "link") link.setXmlparam("tooltip", value);
+}
+
+label.onTextChanged (String newtxt)
+{
+ int w = label.getAutoWidth() + shift;
+ txt.setXmlParam("x", integerToString(w));
+ txt.setXmlParam("w", integerToString(-w));
+} \ No newline at end of file