init_songticker.m 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*---------------------------------------------------
  2. -----------------------------------------------------
  3. Filename: init_songticker.m
  4. Version: 1.0
  5. Type: maki/attrib definitions
  6. Date: 01. Sep. 2007 - 01:10
  7. Author: Martin Poehlmann aka Deimos
  8. E-Mail: [email protected]
  9. Internet: www.skinconsortium.com
  10. www.martin.deimos.de.vu
  11. -----------------------------------------------------
  12. Depending Files:
  13. scripts/songticker.maki
  14. -----------------------------------------------------
  15. ---------------------------------------------------*/
  16. #ifndef included
  17. #error This script can only be compiled as a #include
  18. #endif
  19. #include "gen_pageguids.m"
  20. Function initAttribs_Songticker();
  21. Class ConfigAttribute ScrollingAttribute;
  22. #define CUSTOM_PAGE_SONGTICKER "{7061FDE0-0E12-11D8-BB41-0050DA442EF4}"
  23. Global ScrollingAttribute songticker_scrolling_disabled_attrib;
  24. Global ScrollingAttribute songticker_style_modern_attrib;
  25. Global ScrollingAttribute songticker_style_old_attrib;
  26. initAttribs_Songticker()
  27. {
  28. initPages();
  29. ConfigItem custom_page_songticker = addConfigSubMenu(optionsmenu_page, "Songticker", CUSTOM_PAGE_SONGTICKER);
  30. songticker_scrolling_disabled_attrib = custom_page_songticker.newAttribute("Disable Songticker Scrolling", "0");
  31. songticker_style_modern_attrib = custom_page_songticker.newAttribute("Modern Songticker Scrolling", "1");
  32. songticker_style_old_attrib = custom_page_songticker.newAttribute("Classic Songticker Scrolling", "0");
  33. }
  34. #ifdef MAIN_ATTRIBS_MGR
  35. songticker_scrolling_disabled_attrib.onDataChanged()
  36. {
  37. if (attribs_mychange) return;
  38. NOOFF
  39. attribs_mychange = 1;
  40. songticker_style_modern_attrib.setData("0");
  41. songticker_style_old_attrib.setData("0");
  42. attribs_mychange = 0;
  43. }
  44. songticker_style_old_attrib.onDataChanged()
  45. {
  46. if (attribs_mychange) return;
  47. NOOFF
  48. attribs_mychange = 1;
  49. songticker_style_modern_attrib.setData("0");
  50. songticker_scrolling_disabled_attrib.setData("0");
  51. attribs_mychange = 0;
  52. }
  53. songticker_style_modern_attrib.onDataChanged()
  54. {
  55. if (attribs_mychange) return;
  56. NOOFF
  57. attribs_mychange = 1;
  58. songticker_scrolling_disabled_attrib.setData("0");
  59. songticker_style_old_attrib.setData("0");
  60. attribs_mychange = 0;
  61. }
  62. #endif