init_vis.m 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*---------------------------------------------------
  2. -----------------------------------------------------
  3. Filename: init_vis.m
  4. Version: 1.0
  5. Type: maki/attrib definitions
  6. Date: 03. Nov. 2006 - 18:12
  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/infocompcore.maki
  14. scripts/suicore.maki
  15. -----------------------------------------------------
  16. ---------------------------------------------------*/
  17. #ifndef included
  18. #error This script can only be compiled as a #include
  19. #endif
  20. #include "gen_pageguids.m"
  21. Function initAttribs_vis();
  22. Global ConfigAttribute vis_lefttoplayer_attrib, vis_inbig_attrib, vis_lefttoplayer_full_attrib;
  23. #define CUSTOM_PAGE_VIS "{090B63DE-FD24-4528-ABE5-A522615E8AE9}"
  24. initAttribs_vis()
  25. {
  26. initPages();
  27. // System.isSafeMode() is not recognized by mc.exe
  28. // if (!System.isSafeMode())
  29. // {
  30. ConfigItem vis_parent = addConfigSubMenu(optionsmenu_page, "Visualization", CUSTOM_PAGE_VIS);
  31. vis_inbig_attrib = vis_parent.newAttribute("Open in Big Component View", "1");
  32. vis_lefttoplayer_full_attrib = vis_parent.newAttribute("Open in Multi Content View (stretched)", "0");
  33. vis_lefttoplayer_attrib = vis_parent.newAttribute("Open in Multi Content View (mini)", "0");
  34. // }
  35. }
  36. #ifdef MAIN_ATTRIBS_MGR
  37. vis_lefttoplayer_attrib.onDataChanged()
  38. {
  39. if (attribs_mychange) return;
  40. NOOFF
  41. attribs_mychange = 1;
  42. vis_inbig_attrib.setData("0");
  43. vis_lefttoplayer_full_attrib.setData("0");
  44. attribs_mychange = 0;
  45. }
  46. vis_inbig_attrib.onDataChanged()
  47. {
  48. if (attribs_mychange) return;
  49. NOOFF
  50. attribs_mychange = 1;
  51. vis_lefttoplayer_attrib.setData("0");
  52. vis_lefttoplayer_full_attrib.setData("0");
  53. attribs_mychange = 0;
  54. }
  55. vis_lefttoplayer_full_attrib.onDataChanged()
  56. {
  57. if (attribs_mychange) return;
  58. NOOFF
  59. attribs_mychange = 1;
  60. vis_lefttoplayer_attrib.setData("0");
  61. vis_inbig_attrib.setData("0");
  62. attribs_mychange = 0;
  63. }
  64. #endif