Initial community commit

This commit is contained in:
Jef 2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit fc06254474
16440 changed files with 4239995 additions and 2 deletions

View file

@ -0,0 +1,106 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: gen_pageguids.m
Version: 1.0
Type: maki/page guid definitions
Date: 03. Jul. 2006 - 18:29
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#ifndef __GEN_PAGEGUIDS_M
#define __GEN_PAGEGUIDS_M
#include <lib/config.mi>
Function initPages();
/*--NON CHANGEABLE GUIDS:--------------------------*/
// this is the page that maps its items to the options menu, you can add attribs or more pages (submenus)
#define CUSTOM_OPTIONSMENU_ITEMS "{1828D28F-78DD-4647-8532-EBA504B8FC04}"
Global ConfigItem optionsmenu_page;
// this is the page that maps its items to the windows menu (aka View), you can add attribs or more pages (submenus)
#define CUSTOM_WINDOWSMENU_ITEMS "{6559CA61-7EB2-4415-A8A9-A2AEEF762B7F}"
Global ConfigItem custom_windows_page;
// non exposed attribs page
#define CUSTOM_PAGE_NONEXPOSED "{E9C2D926-53CA-400f-9A4D-85E31755A4CF}"
Global ConfigItem custom_page_nonexposed;
/*--DECLARE PAGES HERE:----------------------------*/
initPages()
{
#ifndef __PAGES
#define __PAGES
custom_page_nonexposed = Config.newItem("Hidden", CUSTOM_PAGE_NONEXPOSED);
// load up the cfgpage in which we'll insert our custom page
optionsmenu_page = Config.getItem(CUSTOM_OPTIONSMENU_ITEMS);
custom_windows_page = Config.getItem(CUSTOM_WINDOWSMENU_ITEMS);
#endif
}
/*--GLOBAL DEFINITIONS:----------------------------*/
#define NOOFF if (getData()=="0") { setData("1"); return; }
Global Int attribs_mychange, attribs_mychange2;
Global ConfigAttribute sep;
Global Int sep_count = 0;
Function addMenuSeparator(ConfigItem cfgmenupage);
addMenuSeparator(ConfigItem cfgmenupage)
{
#ifdef MAIN_ATTRIBS_LOADER
sep_count = sep_count + 1;
sep = cfgmenupage.newAttribute(getSkinName() + "seperator" + integerToString(sep_count), "");
sep.setData("-");
#endif
}
Function ConfigItem addConfigSubMenu(configitem parent, string name, string guid);
ConfigItem addConfigSubMenu(configitem parent, string name, string guid)
{
ConfigItem __ret = Config.newItem(name, guid);
ConfigAttribute __dret = parent.newAttribute(name, "");
__dret.setData(guid);
return __ret;
}
Function toggleAttrib(ConfigAttribute attrib);
toggleAttrib(ConfigAttribute attrib)
{
if (attrib.getData() == "0")
{
attrib.setData("1");
}
else
{
attrib.setData("0");
}
}
#endif

View file

@ -0,0 +1,92 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_Autoresize.m
Version: 1.1
Type: maki/attrib definitions
Date: 23. Jan. 2008 - 20:31
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
scripts/maximize.m
scripts/videoresize.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
Function initAttribs_Autoresize();
#define CUSTOM_PAGE_RESIZE "{E704AB5A-108E-4309-B54B-43EBA5C0C3AA}"
Global ConfigAttribute sui_autorsize_attrib, link_w_attrib, titlebar_dblclk_max_attib, titlebar_dblclk_shade_attib, collapse_top_attrib, collapse_bottom_attrib;
Global ConfigAttribute video_inframe_attrib;
initAttribs_Autoresize()
{
initPages();
ConfigItem custom_page_autoresize = addConfigSubMenu(optionsmenu_page, "Window Sizing", CUSTOM_PAGE_RESIZE);
sui_autorsize_attrib = custom_page_autoresize.newAttribute("Autoresize Main Window if maximized", "0");
link_w_attrib = custom_page_autoresize.newAttribute("Link shade and player width", "1");
addMenuSeparator(custom_page_autoresize);
video_inframe_attrib = custom_page_autoresize.newAttribute("Enable Video in Window resizing", "0");
addMenuSeparator(custom_page_autoresize);
titlebar_dblclk_shade_attib = custom_page_autoresize.newAttribute("Switch to Shade on Titlebar Doubleclick", "1");
titlebar_dblclk_max_attib = custom_page_autoresize.newAttribute("Maximize Window on Titlebar Doubleclick", "0");
addMenuSeparator(custom_page_autoresize);
collapse_top_attrib = custom_page_autoresize.newAttribute("Collapse Window to Top", "1");
collapse_bottom_attrib = custom_page_autoresize.newAttribute("Collapse Window to Bottom", "0");
}
#ifdef MAIN_ATTRIBS_MGR
titlebar_dblclk_shade_attib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
if (getData() == "1") titlebar_dblclk_max_attib.setData("0");
if (getData() == "0") titlebar_dblclk_max_attib.setData("1");
attribs_mychange = 0;
}
titlebar_dblclk_max_attib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
if (getData() == "1") titlebar_dblclk_shade_attib.setData("0");
if (getData() == "0") titlebar_dblclk_shade_attib.setData("1");
attribs_mychange = 0;
}
collapse_bottom_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
if (getData() == "1") collapse_top_attrib.setData("0");
if (getData() == "0") collapse_top_attrib.setData("1");
attribs_mychange = 0;
}
collapse_top_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
if (getData() == "1") collapse_bottom_attrib.setData("0");
if (getData() == "0") collapse_bottom_attrib.setData("1");
attribs_mychange = 0;
}
#endif

View file

@ -0,0 +1,63 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_appearance.m
Version: 2.2
Type: maki/attrib definitions
Date: 28. Jun. 2007 - 22:08
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
scripts/mainmenu.maki
scripts/visualizer.maki
scripts/beatvisualization.maki
scripts/shadesize.maki
scripts/mcvcore.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
Function initAttribs_Appearance();
#define CUSTOM_PAGE_APPEARANCE "{F1036C9C-3919-47ac-8494-366778CF10F9}"
Global ConfigAttribute vis_reflection_attrib;
Global ConfigAttribute timer_reflection_attrib;
Global ConfigAttribute menubar_main_attrib;
Global configAttribute beatvis_attrib;
//Global configAttribute artist_info_buttons_attrib;
Global ConfigAttribute pl_tab_attrib;
Global ConfigItem custom_page_appearance;
initAttribs_Appearance()
{
initPages();
custom_page_appearance = addConfigSubMenu(optionsmenu_page, "Appearance", CUSTOM_PAGE_APPEARANCE);
menubar_main_attrib = custom_page_appearance.newAttribute("Show Main Window Menu", "1");
addMenuSeparator(custom_page_appearance);
vis_reflection_attrib = custom_page_appearance.newAttribute("Show Visualizer Reflection", "1");
timer_reflection_attrib = custom_page_appearance.newAttribute("Show Timer Reflection", "1");
addMenuSeparator(custom_page_appearance);
//artist_info_buttons_attrib = custom_page_appearance.newAttribute("Show Artist-Information Buttons", "0");
pl_tab_attrib = custom_page_appearance.newAttribute("Show Playlist Tab", "0");
addMenuSeparator(custom_page_appearance);
beatvis_attrib = custom_page_appearance.newAttribute("Enable Beat Visualization", "1");
}

View file

@ -0,0 +1,133 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_browser.m
Version: 1.1
Type: maki/attrib definitions
Date: 27. Jul. 2007 - 13:36
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
scripts/browser.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
#define CUSTOM_PAGE_BROWSER "{0E17DBEA-9398-49e6-AE6F-3AB17D001DF3}"
#define CUSTOM_PAGE_BROWSER_WASEARCH "{180E87DF-C482-41fe-A570-8575C673E1BA}"
#define CUSTOM_PAGE_BROWSER_CONCERTSEARCH "{B8171DB3-ECF6-40c6-9332-DDEA57A8F13E}"
Function initAttribs_browser();
Class ConfigAttribute SearchAttribute;
Function check (string unknown, SearchAttribute compare);
#ifdef BROWSER_SCRIPT
Global list SearchAttributeList;
#endif
#ifndef BROWSER_SCRIPT
#define SearchAttributeList //
#endif
Global ConfigAttribute browser_scr_show_attrib, browser_search_attrib;
Global SearchAttribute browser_search_winamp_mskins_attrib, browser_search_winamp_cskins_attrib, browser_search_winamp_plugins_attrib,
browser_search_winamp_web_attrib, browser_search_wiki_attrib, browser_c_pollstar_attrib, browser_c_bit_attrib,
browser_c_jambase_attrib;
initAttribs_browser()
{
initPages();
ConfigItem custom_page_browser = addConfigSubMenu(optionsmenu_page, "Browser", CUSTOM_PAGE_BROWSER);
browser_search_attrib = custom_page_nonexposed.newAttribute("Onesie browser Quicksearch", "Web Search");
SearchAttributeList = new List;
SearchAttributeList.addItem (custom_page_browser);
browser_search_winamp_web_attrib = custom_page_browser.newAttribute("Web Search", "1");
SearchAttributeList.addItem (browser_search_winamp_web_attrib);
browser_search_wiki_attrib = custom_page_browser.newAttribute("Wikipedia Search", "0");
SearchAttributeList.addItem (browser_search_wiki_attrib);
ConfigItem custom_page_browser_concertsearch = addConfigSubMenu(custom_page_browser, "Concert Search", CUSTOM_PAGE_BROWSER_CONCERTSEARCH);
browser_c_jambase_attrib = custom_page_browser_concertsearch.newAttribute("JamBase", "0");
SearchAttributeList.addItem (browser_c_jambase_attrib);
browser_c_pollstar_attrib = custom_page_browser_concertsearch.newAttribute("Pollstar", "0");
SearchAttributeList.addItem (browser_c_pollstar_attrib);
browser_c_bit_attrib = custom_page_browser_concertsearch.newAttribute("Bandsintown", "0");
SearchAttributeList.addItem (browser_c_bit_attrib);
ConfigItem custom_page_browser_winampsearch = addConfigSubMenu(custom_page_browser, "Winamp Search", CUSTOM_PAGE_BROWSER_WASEARCH);
browser_search_winamp_mskins_attrib = custom_page_browser_winampsearch.newAttribute("Modern Skins", "0");
SearchAttributeList.addItem (browser_search_winamp_mskins_attrib);
browser_search_winamp_cskins_attrib = custom_page_browser_winampsearch.newAttribute("Classic Skins", "0");
SearchAttributeList.addItem (browser_search_winamp_cskins_attrib);
browser_search_winamp_plugins_attrib = custom_page_browser_winampsearch.newAttribute("Plug-ins", "0");
SearchAttributeList.addItem (browser_search_winamp_plugins_attrib);
addMenuSeparator(custom_page_browser);
browser_scr_show_attrib = custom_page_browser.newAttribute("Show Media Monitor", "1");
}
#ifdef MAIN_ATTRIBS_MGR
browser_search_attrib.onDataChanged ()
{
if (attribs_mychange) return;
string dta = getData();
if (dta == "Modern Skins") browser_search_winamp_mskins_attrib.setData("1");
else if (dta == "Classic Skins") browser_search_winamp_plugins_attrib.setData("1");
else if (dta == "Plug-ins") browser_search_winamp_plugins_attrib.setData("1");
else if (dta == "Web Search with Google") browser_search_winamp_web_attrib.setData("1");
else if (dta == "Pollstar") browser_c_pollstar_attrib.setData("1");
else if (dta == "Bands in Town") browser_c_bit_attrib.setData("1");
else if (dta == "JamBase") browser_c_jambase_attrib.setData("1");
else if (dta == "Wikipedia Search") browser_search_wiki_attrib.setData("1");
}
SearchAttribute.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
String s = SearchAttribute.getAttributeName();
check (s, browser_search_winamp_mskins_attrib);
check (s, browser_search_winamp_cskins_attrib);
check (s, browser_search_winamp_plugins_attrib);
check (s, browser_search_winamp_web_attrib);
check (s, browser_c_jambase_attrib);
check (s, browser_c_bit_attrib);
check (s, browser_c_pollstar_attrib);
check (s, browser_search_wiki_attrib);
attribs_mychange = 0;
}
check (String unknown, SearchAttribute compare)
{
if (unknown == compare.getAttributeName())
{
browser_search_attrib.setData(compare.getAttributeName());
}
else
{
compare.setData("0");
}
}
#endif

View file

@ -0,0 +1,327 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_notifier.m
Type: maki/attrib definitions
Version: 1.1
Date: 12. Jul. 2006 - 16:15
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
wasabi/notifier/notifier.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
Function initAttribs_notifier();
#define CUSTOM_PAGE_NOTIFIER "{1AB968B3-8687-4a35-BA70-FCF6D92FB57F}"
#define CUSTOM_PAGE_NOTIFIER_AA "{7BF45B05-2B98-4de8-8778-E5CCC9639ED1}"
#define CUSTOM_PAGE_NOTIFIER_LOC "{715B2C0D-1DF0-4bb2-9D74-0FACAE27CE97}"
#define CUSTOM_PAGE_NOTIFIER_FDIN "{D9891A39-7A38-45d8-9D51-A08F7270C836}"
#define CUSTOM_PAGE_NOTIFIER_FDOUT "{560EAE41-1379-4927-AC55-FB5F4D47C9B8}"
Global ConfigAttribute notifier_minimized_attrib;
Global ConfigAttribute notifier_always_attrib;
Global ConfigAttribute notifier_never_attrib;
Global ConfigAttribute notifier_fadeintime_attrib;
Global ConfigAttribute notifier_fadeouttime_attrib;
Global ConfigAttribute notifier_holdtime_attrib;
Global ConfigAttribute notifier_hideinfullscreen_attrib;
Global ConfigAttribute notifier_windowshade_attrib;
//Global ConfigAttribute notifier_opennowplaying_attrib;
Global ConfigAttribute notifier_artworkinnotification_attrib;
Global ConfigAttribute notifier_fdout_alpha;
Global ConfigAttribute notifier_fdout_hslide;
Global ConfigAttribute notifier_fdout_vslide;
Global ConfigAttribute notifier_fdin_alpha;
Global ConfigAttribute notifier_fdin_hslide;
Global ConfigAttribute notifier_fdin_vslide;
Global ConfigAttribute notifier_loc_br_attrib;
Global ConfigAttribute notifier_loc_bl_attrib;
Global ConfigAttribute notifier_loc_tr_attrib;
Global ConfigAttribute notifier_loc_tl_attrib;
Global ConfigAttribute notifier_loc_bc_attrib;
Global ConfigAttribute notifier_loc_tc_attrib;
Global ConfigAttribute notifier_loc_vport_attrib;
Global ConfigAttribute notifier_loc_monitor_attrib;
initAttribs_notifier()
{
initPages();
ConfigItem custom_page_notifier = addConfigSubMenu(optionsmenu_page, "Notifications", CUSTOM_PAGE_NOTIFIER);
notifier_always_attrib = custom_page_notifier.newAttribute("Show always", "1");
notifier_windowshade_attrib = custom_page_notifier.newAttribute("Show with windowshade and when minimized", "0");
notifier_minimized_attrib = custom_page_notifier.newAttribute("Show only when minimized", "0");
notifier_minimized_attrib = custom_page_notifier.newAttribute("Show only when minimized", "0");
notifier_never_attrib = custom_page_notifier.newAttribute("Never show", "0");
addMenuSeparator(custom_page_notifier);
ConfigItem custom_page_notifier_loc = addConfigSubMenu(custom_page_notifier, "Location", CUSTOM_PAGE_NOTIFIER_LOC);
ConfigItem custom_page_notifier_fdin = addConfigSubMenu(custom_page_notifier, "Fade In Effect", CUSTOM_PAGE_NOTIFIER_FDIN);
ConfigItem custom_page_notifier_fdout = addConfigSubMenu(custom_page_notifier, "Fade Out Effect", CUSTOM_PAGE_NOTIFIER_FDOUT);
addMenuSeparator(custom_page_notifier);
notifier_hideinfullscreen_attrib = custom_page_notifier.newAttribute("Disable in fullscreen", "1");
addMenuSeparator(custom_page_notifier);
//notifier_opennowplaying_attrib = custom_page_notifier.newAttribute("Open Now Playing on Click", "1");
sep = custom_page_notifier.newAttribute("sep333", ""); sep.setData("-");
notifier_artworkinnotification_attrib = custom_page_notifier.newAttribute("Show Now Playing Artwork", "1");
notifier_fadeintime_attrib = custom_page_nonexposed.newAttribute("Notifications fade in time", "1000");
notifier_fadeouttime_attrib = custom_page_nonexposed.newAttribute("Notifications fade out time", "5000");
notifier_holdtime_attrib = custom_page_nonexposed.newAttribute("Notifications display time", "2000");
// Notifications > Location
notifier_loc_bl_attrib = custom_page_notifier_loc.newAttribute("Bottom Left", "0");
notifier_loc_bc_attrib = custom_page_notifier_loc.newAttribute("Bottom Center", "0");
notifier_loc_br_attrib = custom_page_notifier_loc.newAttribute("Bottom Right", "1");
notifier_loc_tl_attrib = custom_page_notifier_loc.newAttribute("Top Left", "0");
notifier_loc_tc_attrib = custom_page_notifier_loc.newAttribute("Top Center", "0");
notifier_loc_tr_attrib = custom_page_notifier_loc.newAttribute("Top Right", "0");
addMenuSeparator(custom_page_notifier_loc);
notifier_loc_vport_attrib = custom_page_notifier_loc.newAttribute("Relative to Viewport", "1");
notifier_loc_monitor_attrib = custom_page_notifier_loc.newAttribute("Relative to Monitor", "0");
// Notifications > Fade...
notifier_fdout_alpha = custom_page_notifier_fdout.newAttribute("Alpha Fade ", "1");
notifier_fdout_vslide = custom_page_notifier_fdout.newAttribute("Vertical Slide ", "0");
notifier_fdout_hslide = custom_page_notifier_fdout.newAttribute("Horizontal Slide ", "0");
// Martin> We need a additional spacer for the last 3 attribs, so we won't cross withe the 3 below in studio.xnf
notifier_fdin_alpha = custom_page_notifier_fdin.newAttribute("Alpha Fade", "1");
notifier_fdin_vslide = custom_page_notifier_fdin.newAttribute("Vertical Slide", "0");
notifier_fdin_hslide = custom_page_notifier_fdin.newAttribute("Horizontal Slide", "0");
}
#ifdef MAIN_ATTRIBS_MGR
notifier_always_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_never_attrib.setData("0");
notifier_minimized_attrib.setData("0");
notifier_windowshade_attrib.setData("0");
attribs_mychange = 0;
}
notifier_never_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_always_attrib.setData("0");
notifier_minimized_attrib.setData("0");
notifier_windowshade_attrib.setData("0");
attribs_mychange = 0;
}
notifier_minimized_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_never_attrib.setData("0");
notifier_always_attrib.setData("0");
notifier_windowshade_attrib.setData("0");
attribs_mychange = 0;
}
notifier_windowshade_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_never_attrib.setData("0");
notifier_always_attrib.setData("0");
notifier_minimized_attrib.setData("0");
attribs_mychange = 0;
}
notifier_fdout_alpha.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdout_hslide.setData("0");
notifier_fdout_vslide.setData("0");
attribs_mychange = 0;
}
notifier_fdout_hslide.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdout_alpha.setData("0");
notifier_fdout_vslide.setData("0");
attribs_mychange = 0;
}
notifier_fdout_vslide.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdout_hslide.setData("0");
notifier_fdout_alpha.setData("0");
attribs_mychange = 0;
}
notifier_fdin_alpha.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdin_hslide.setData("0");
notifier_fdin_vslide.setData("0");
attribs_mychange = 0;
}
notifier_fdin_hslide.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdin_alpha.setData("0");
notifier_fdin_vslide.setData("0");
attribs_mychange = 0;
}
notifier_fdin_vslide.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_fdin_hslide.setData("0");
notifier_fdin_alpha.setData("0");
attribs_mychange = 0;
}
notifier_loc_br_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_bl_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_br_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_tl_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
notifier_loc_br_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_tr_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_br_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_tc_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_br_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
notifier_loc_bc_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_bc_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_bl_attrib.setData("0");
notifier_loc_br_attrib.setData("0");
notifier_loc_tl_attrib.setData("0");
notifier_loc_tc_attrib.setData("0");
notifier_loc_tr_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_vport_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_monitor_attrib.setData("0");
attribs_mychange = 0;
}
notifier_loc_monitor_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
notifier_loc_vport_attrib.setData("0");
attribs_mychange = 0;
}
#endif

View file

@ -0,0 +1,39 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_playlist.m
Version: 1.0
Type: maki/attrib definitions
Date: 23. Okt. 2006 - 16:58
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
config/configsystem.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
#define COSTUM_PAGE_PLAYLIST "{0167CFD9-5D35-404a-8F03-80ED5B89DEDF}"
Function initAttribs_playlist();
Global ConfigAttribute playlist_enlarge_attrib;
Global ConfigAttribute playlist_cover_attrib;
initAttribs_Playlist()
{
initPages();
ConfigItem playlist_parent = addConfigSubMenu(optionsmenu_page, "Playlist", COSTUM_PAGE_PLAYLIST);
playlist_enlarge_attrib = playlist_parent.newAttribute("Enlarge Playlist", "1");
playlist_cover_attrib = playlist_parent.newAttribute("Show Album Art if Playlist is enlarged", "1");
}

View file

@ -0,0 +1,82 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_songticker.m
Version: 1.0
Type: maki/attrib definitions
Date: 01. Sep. 2007 - 01:10
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
scripts/songticker.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
Function initAttribs_Songticker();
Class ConfigAttribute ScrollingAttribute;
#define CUSTOM_PAGE_SONGTICKER "{7061FDE0-0E12-11D8-BB41-0050DA442EF4}"
Global ScrollingAttribute songticker_scrolling_disabled_attrib;
Global ScrollingAttribute songticker_style_modern_attrib;
Global ScrollingAttribute songticker_style_old_attrib;
initAttribs_Songticker()
{
initPages();
ConfigItem custom_page_songticker = addConfigSubMenu(optionsmenu_page, "Songticker", CUSTOM_PAGE_SONGTICKER);
songticker_scrolling_disabled_attrib = custom_page_songticker.newAttribute("Disable Songticker Scrolling", "0");
songticker_style_modern_attrib = custom_page_songticker.newAttribute("Modern Songticker Scrolling", "1");
songticker_style_old_attrib = custom_page_songticker.newAttribute("Classic Songticker Scrolling", "0");
}
#ifdef MAIN_ATTRIBS_MGR
songticker_scrolling_disabled_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
songticker_style_modern_attrib.setData("0");
songticker_style_old_attrib.setData("0");
attribs_mychange = 0;
}
songticker_style_old_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
songticker_style_modern_attrib.setData("0");
songticker_scrolling_disabled_attrib.setData("0");
attribs_mychange = 0;
}
songticker_style_modern_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
songticker_scrolling_disabled_attrib.setData("0");
songticker_style_old_attrib.setData("0");
attribs_mychange = 0;
}
#endif

View file

@ -0,0 +1,80 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_vis.m
Version: 1.0
Type: maki/attrib definitions
Date: 03. Nov. 2006 - 18:12
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
scripts/infocompcore.maki
scripts/suicore.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
Function initAttribs_vis();
Global ConfigAttribute vis_lefttoplayer_attrib, vis_inbig_attrib, vis_lefttoplayer_full_attrib;
#define CUSTOM_PAGE_VIS "{090B63DE-FD24-4528-ABE5-A522615E8AE9}"
initAttribs_vis()
{
initPages();
// System.isSafeMode() is not recognized by mc.exe
// if (!System.isSafeMode())
// {
ConfigItem vis_parent = addConfigSubMenu(optionsmenu_page, "Visualization", CUSTOM_PAGE_VIS);
vis_inbig_attrib = vis_parent.newAttribute("Open in Big Component View", "1");
vis_lefttoplayer_full_attrib = vis_parent.newAttribute("Open in Multi Content View (stretched)", "0");
vis_lefttoplayer_attrib = vis_parent.newAttribute("Open in Multi Content View (mini)", "0");
// }
}
#ifdef MAIN_ATTRIBS_MGR
vis_lefttoplayer_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
vis_inbig_attrib.setData("0");
vis_lefttoplayer_full_attrib.setData("0");
attribs_mychange = 0;
}
vis_inbig_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
vis_lefttoplayer_attrib.setData("0");
vis_lefttoplayer_full_attrib.setData("0");
attribs_mychange = 0;
}
vis_lefttoplayer_full_attrib.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
vis_lefttoplayer_attrib.setData("0");
vis_inbig_attrib.setData("0");
attribs_mychange = 0;
}
#endif

View file

@ -0,0 +1,309 @@
/*---------------------------------------------------
-----------------------------------------------------
Filename: init_windowpage.m
Version: 1.1
Type: maki/attrib definitions
Date: 08. Jul. 2006 - 17:28
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
Depending Files:
scripts/mcvcompcore.maki
scripts/suicore.maki
scripts/browser.maki
scripts/fileinfo.maki
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#include "gen_pageguids.m"
//#define DOHIDEMCV
//#define IC_COVERFLOW
#define CUSTOM_PAGE_FILEINFO "{6A619628-6A91-46e3-A3F3-5C1B2D93DF4F}"
Function initAttribs_windowpage();
Global ConfigAttribute sui_browser_attrib, sui_eq_attrib, sui_config_attrib;
Global ConfigAttribute ic_fileinfo, ic_cover_fileinfo, ic_vis, ic_vis_fileinfo, ic_hidden, ic_eq, ic_config, _plsc_ic_attrib;
#ifdef IC_COVERFLOW
Global ConfigAttribute _cflow_ic_attrib;
#else
#define _cflow_ic_attrib //
#endif
#ifdef DOHIDEMCV
Global ConfigAttribute ic_hidden;
#endif
Global ConfigItem custom_page_fileinfo;
#ifndef DOHIDEMCV
#define ic_hidden //
#endif
#define CUSTOM_PAGE_INFOCOMP "{8D3829F9-5790-4c8e-9C3A-C397D3602FF9}"
Class ConfigAttribute InfoLineAttribute;
Global InfoLineAttribute infocomp_show_rating, infocomp_show_genre, infocomp_show_year, infocomp_show_track, infocomp_show_publisher, infocomp_show_composer, infocomp_show_albumartist, infocomp_show_format, infocomp_show_disc;
Global ConfigAttribute infocomp_cycle, infocomp_nowplaying, infocomp_browser;
initAttribs_windowpage()
{
initPages();
sui_eq_attrib = custom_windows_page.newAttribute("Equalizer\tAlt+G", "0");
// sui_browser_attrib = custom_windows_page.newAttribute("Web Browser\tAlt+X", "0");
sui_config_attrib = custom_windows_page.newAttribute("Skin Settings\tAlt+C", "0");
custom_page_fileinfo = addConfigSubMenu(optionsmenu_page, "Multi Content View", CUSTOM_PAGE_FILEINFO);
ic_fileinfo = custom_page_fileinfo.newAttribute("File Info", "1");
_cflow_ic_attrib = custom_page_fileinfo.newAttribute("Cover Flow", "0");
ic_vis = custom_page_fileinfo.newAttribute("Visualization ", "0");
_plsc_ic_attrib = custom_page_fileinfo.newAttribute("Stored Playlists", "0");
ic_eq = custom_page_fileinfo.newAttribute("Equalizer", sui_eq_attrib.getData());
ic_config = custom_page_fileinfo.newAttribute("Skin Settings", sui_config_attrib.getData());
#ifdef DOHIDEMCV
ic_hidden = custom_page_fileinfo.newAttribute("Hide Multi Content View", "0");
#endif
addMenuSeparator(custom_page_fileinfo);
ConfigItem fileinfo_parent = addConfigSubMenu(custom_page_fileinfo, "File Info Components", CUSTOM_PAGE_INFOCOMP);
ic_vis_fileinfo = fileinfo_parent.newAttribute("Visualization ", "0");
ic_cover_fileinfo = fileinfo_parent.newAttribute("Album Art", "1");
addMenuSeparator(fileinfo_parent);
infocomp_show_track = fileinfo_parent.newAttribute("Show Track #", "1");
infocomp_show_year = fileinfo_parent.newAttribute("Show Year", "1");
infocomp_show_genre = fileinfo_parent.newAttribute("Show Genre", "1");
infocomp_show_disc = fileinfo_parent.newAttribute("Show Disc", "1");
infocomp_show_albumartist = fileinfo_parent.newAttribute("Show Album Artist", "1");
infocomp_show_composer = fileinfo_parent.newAttribute("Show Composer", "1");
infocomp_show_publisher = fileinfo_parent.newAttribute("Show Publisher", "1");
infocomp_show_format = fileinfo_parent.newAttribute("Show Decoder", "1");
infocomp_show_rating = fileinfo_parent.newAttribute("Show Song Rating", "1");
addMenuSeparator(fileinfo_parent);
infocomp_cycle = fileinfo_parent.newAttribute("Cycle File Info", "1");
addMenuSeparator(fileinfo_parent);
//infocomp_nowplaying = fileinfo_parent.newAttribute("Open Links in Now Playing", "1");
//infocomp_browser = fileinfo_parent.newAttribute("Open Links in Browser", "0");
}
#ifdef MAIN_ATTRIBS_MGR
System.onKeyDown(String key) {
if (key == "alt+x")
{
if (sui_browser_attrib.getData() == "0") sui_browser_attrib.setData("1");
else sui_browser_attrib.setData("0");
complete;
}
/*if (key == "alt+n")
{
if (sui_browser_attrib.getData() == "0") sui_browser_attrib.setData("1");
else sui_browser_attrib.setData("0");
complete;
}*/
/*if (key == "alt+c")
{
if (sui_cover_attrib.getData() == "0") sui_cover_attrib.setData("1");
else sui_cover_attrib.setData("0");
complete;
}*/
if (key == "alt+c")
{
if (sui_config_attrib.getData() == "0") sui_config_attrib.setData("1");
else sui_config_attrib.setData("0");
complete;
}
if (key == "alt+g")
{
if (sui_eq_attrib.getData() == "0") sui_eq_attrib.setData("1");
else sui_eq_attrib.setData("0");
complete;
}
/*if (key == "ctrl+f") {
navigateUrl(getPath(getPlayItemString()));
complete;
}*/
}
ic_fileinfo.onDataChanged()
{
//debugString("ic_fileinfo.setData(" + getData() + ")", 9);
if (attribs_mychange2) return;
NOOFF
attribs_mychange2 = 1;
ic_vis.setData("0");
ic_eq.setData("0");
ic_config.setData("0");
_plsc_ic_attrib.setData("0");
_cflow_ic_attrib.setData("0");
ic_hidden.setdata("0");
attribs_mychange2 = 0;
}
ic_vis.onDataChanged()
{
//debugString("ic_vis.setData(" + getData() + ")", 9);
if (attribs_mychange2) return;
NOOFF
attribs_mychange2 = 1;
ic_fileinfo.setData("0");
ic_eq.setData("0");
ic_config.setData("0");
_plsc_ic_attrib.setData("0");
_cflow_ic_attrib.setData("0");
ic_hidden.setdata("0");
attribs_mychange2 = 0;
}
ic_eq.onDataChanged()
{
if (!attribs_mychange)
{
attribs_mychange = 1;
sui_eq_attrib.setData(getData());
if (getData() == "1") sui_config_attrib.setData("0");
attribs_mychange = 0;
}
//debugString("ic_vis_fileinfo.setData(" + getData() + ")", 9);
if (attribs_mychange2) return;
NOOFF
attribs_mychange2 = 1;
ic_fileinfo.setData("0");
ic_vis.setData("0");
ic_config.setData("0");
_plsc_ic_attrib.setData("0");
_cflow_ic_attrib.setData("0");
ic_hidden.setdata("0");
attribs_mychange2 = 0;
}
ic_config.onDataChanged()
{
if (!attribs_mychange)
{
attribs_mychange = 1;
sui_config_attrib.setData(getData());
if (getData() == "1") sui_eq_attrib.setData("0");
attribs_mychange = 0;
}
//debugString("ic_vis_fileinfo.setData(" + getData() + ")", 9);
if (attribs_mychange2) return;
NOOFF
attribs_mychange2 = 1;
ic_fileinfo.setData("0");
ic_vis.setData("0");
ic_eq.setData("0");
_plsc_ic_attrib.setData("0");
_cflow_ic_attrib.setData("0");
ic_hidden.setdata("0");
attribs_mychange2 = 0;
}
_plsc_ic_attrib.onDataChanged()
{
//debugString("ic_fileinfo.setData(" + getData() + ")", 9);
if (attribs_mychange2) return;
NOOFF
attribs_mychange2 = 1;
ic_vis.setData("0");
ic_eq.setData("0");
ic_config.setData("0");
ic_fileinfo.setData("0");
_cflow_ic_attrib.setData("0");
ic_hidden.setdata("0");
attribs_mychange2 = 0;
}
#ifdef IC_COVERFLOW
_cflow_ic_attrib.onDataChanged()
{
//debugString("ic_fileinfo.setData(" + getData() + ")", 9);
if (attribs_mychange2) return;
NOOFF
attribs_mychange2 = 1;
ic_vis.setData("0");
ic_eq.setData("0");
ic_config.setData("0");
ic_fileinfo.setData("0");
_plsc_ic_attrib.setData("0");
ic_hidden.setdata("0");
attribs_mychange2 = 0;
}
#endif
#ifdef DOHIDEMCV
ic_hidden.onDataChanged()
{
//debugString("ic_fileinfo.setData(" + getData() + ")", 9);
if (attribs_mychange2) return;
NOOFF
attribs_mychange2 = 1;
ic_vis.setData("0");
ic_eq.setData("0");
ic_config.setData("0");
ic_fileinfo.setData("0");
_plsc_ic_attrib.setdata("0");
_cflow_ic_attrib.setData("0");
attribs_mychange2 = 0;
}
#endif
sui_eq_attrib.onDataChanged()
{
//debugString("ic_vis_fileinfo.setData(" + getData() + ")", 9);
if (attribs_mychange) return;
attribs_mychange = 1;
if (getData() == "1")
{
ic_eq.setData("1");
sui_config_attrib.setData("0");
}
else ic_fileinfo.setData("1");
attribs_mychange = 0;
}
sui_config_attrib.onDataChanged()
{
//debugString("ic_vis_fileinfo.setData(" + getData() + ")", 9);
if (attribs_mychange) return;
attribs_mychange = 1;
if (getData() == "1")
{
ic_config.setData("1");
sui_eq_attrib.setData("0");
}
else ic_fileinfo.setData("1");
attribs_mychange = 0;
}
/* infocomp_nowplaying.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
infocomp_browser.setData("0");
attribs_mychange = 0;
}
infocomp_browser.onDataChanged()
{
if (attribs_mychange) return;
NOOFF
attribs_mychange = 1;
infocomp_nowplaying.setData("0");
attribs_mychange = 0;
}
*/
#endif