1
0

standardframe.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!-- =======================================================================================================
  2. This group serves as a template for all the Wasabi:StandardFrame objects
  3. ======================================================================================================== -->
  4. <groupdef id="wasabi.frame.layout">
  5. <layer x="0" y="0" h="1" w="1" image="window.background.region" regionop="-2" />
  6. <layer x="-1" relatx="1" y="0" h="1" w="1" image="window.background.region" regionop="-2" />
  7. <layer x="0" y="-1" relaty="1" h="1" w="1" image="window.background.region" regionop="-2" />
  8. <layer x="-1" relatx="1" y="-1" relaty="1" h="1" w="1" image="window.background.region" regionop="-2" />
  9. <grid
  10. x="0" y="0" h="18" w="0" relatw="1" regionop="1"
  11. left="window.titlebar.grid.left"
  12. middle="window.titlebar.grid.middle"
  13. right="window.titlebar.grid.right"
  14. />
  15. <layer x="0" y="0" h="18" w="0" relatw="1" move="1" />
  16. <text id="componentname" x="27" y="2" w="-77" h="14" relatw="1" fontsize="11" bold="1" default=":componentname" ghost="1" color="wasabi.titlebar.color" font="Arial" align="left" forceuppercase="1"/>
  17. <layer x="0" y="18" w="5" h="5" image="window.background.topleft" resize="left" regionop="1"/>
  18. <layer x="5" y="18" w="-10" relatw="1" h="5" image="window.background.top" regionop="1"/>
  19. <layer x="-5" relatx="1" y="18" w="5" h="5" image="window.background.topright" resize="right" regionop="1"/>
  20. <layer x="0" y="23" w="5" h="-28" relath="1" image="window.background.left" resize="left" regionop="1"/>
  21. <layer x="5" y="23" w="-10" relatw="1" h="-28" relath="1" image="window.background.center" move="1" regionop="1"/>
  22. <layer x="-5" relatx="1" y="23" w="5" h="-28" relath="1" image="window.background.right" resize="right" regionop="1"/>
  23. <layer x="0" y="-5" relaty="1" w="5" h="5" image="window.background.bottomleft" resize="bottomleft" id="player.resizer.bottomleft" regionop="1"/>
  24. <layer x="5" y="-5" relaty="1" w="-10" relatw="1" h="5" image="window.background.bottom" resize="bottom" id="player.resizer.bottom" regionop="1"/>
  25. <layer x="-5" relatx="1" y="-5" relaty="1" w="5" h="5" image="window.background.bottomright" regionop="1"/>
  26. <layer x="-20" y="-11" w="15" h="7" relaty="1" relatx="1" image="window.background.resizer" id="player.resizer.bottomright" rectrgn="1" regionop="1"/>
  27. <layer x="-20" y="-11" w="20" h="11" relaty="1" relatx="1" resize="bottomright" id="player.resizer.bottomright.dummy" rectrgn="1" />
  28. <layer id="window.resize.disabler" fitparent="1" move="1" visible="0"/>
  29. <button
  30. x="-41" relatx="1" y="2" h="13" w="17"
  31. id="restore"
  32. image="window.titlebar.button.restore.normal"
  33. hoverImage="window.titlebar.button.restore.hover"
  34. downImage="window.titlebar.button.restore.down"
  35. tooltip="Restore Winamp"
  36. />
  37. <button
  38. x="-41" relatx="1" y="2" h="13" w="17"
  39. id="maximize"
  40. image="window.titlebar.button.maximize.normal"
  41. hoverImage="window.titlebar.button.maximize.hover"
  42. downImage="window.titlebar.button.maximize.down"
  43. tooltip="Maximize Winamp"
  44. />
  45. <button
  46. x="5" y="2" h="13" w="15"
  47. action="SYSMENU"
  48. image="window.titlebar.button.sysmenu.normal"
  49. hoverImage="window.titlebar.button.sysmenu.hover"
  50. downImage="window.titlebar.button.sysmenu.down"
  51. tooltip="Main Menu"
  52. />
  53. <button
  54. x="-22" relatx="1" y="2" h="13" w="17"
  55. action="CLOSE"
  56. image="window.titlebar.button.close.normal"
  57. hoverImage="window.titlebar.button.close.hover"
  58. downImage="window.titlebar.button.close.down"
  59. tooltip="Close Window"
  60. />
  61. <grid
  62. x="0" y="0" h="18" w="0" relatw="1" regionop="1" ghost="1"
  63. left="window.titlebar.grid.over.left"
  64. middle="window.titlebar.grid.over.middle"
  65. right="window.titlebar.grid.over.right"
  66. />
  67. <LayoutStatus id="sysmenu.status" bg="0" x="5" y="2" h="13" w="15" includeonly="{system}" />
  68. <hideobject target="sysmenu.status"/>
  69. <script file="../Big Bento/scripts/simplemaximize.maki"/>
  70. </groupdef>
  71. <!-- =======================================================================================================
  72. <Wasabi:StandardFrame:Status /> implementation
  73. ======================================================================================================== -->
  74. <groupdef id="wasabi.standardframe.statusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:Status">
  75. <group id="wasabi.frame.layout" x="0" y="0" w="0" relatw="1" h="0" relath="1"/>
  76. <LayoutStatus id="standardframe.layoutstatus" x="5" y="-33" relaty="1" w="-10" relatw="1" h="18" exclude="{system}" />
  77. <script id="standardframe.script" file="../Big Bento/scripts/standardframe.maki" param="5,21,-10,-54,0,0,1,1" />
  78. </groupdef>
  79. <!-- =======================================================================================================
  80. <Wasabi:StandardFrame:NoStatus /> implementation
  81. ======================================================================================================== -->
  82. <groupdef id="wasabi.standardframe.nostatusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:NoStatus">
  83. <group id="wasabi.frame.layout" x="0" y="0" w="0" h="0" relatw="1" relath="1"/>
  84. <script id="standardframe.script" file="../Big Bento/scripts/standardframe.maki" param="5,21,-10,-36,0,0,1,1" />
  85. </groupdef>
  86. <!-- =======================================================================================================
  87. <Wasabi:StandardFrame:Modal /> implementation
  88. ======================================================================================================== -->
  89. <groupdef id="wasabi.standardframe.modal" inherit_group="wasabi.standardframe.nostatusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:Modal">
  90. <sendparams target="window.resize.disabler" visible="1" />
  91. <sendparams target="player.resizer.bottomright" visible="0" />
  92. <sendparams target="restore" visible="0" />
  93. <sendparams target="maximize" visible="0" />
  94. </groupdef>
  95. <!-- =======================================================================================================
  96. <Wasabi:StandardFrame:Static /> implementation
  97. ======================================================================================================== -->
  98. <groupdef id="wasabi.standardframe.static" inherit_group="wasabi.standardframe.nostatusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:Static">
  99. <sendparams target="window.resize.disabler" visible="1" />
  100. <sendparams target="player.resizer.bottomright" visible="0" />
  101. <sendparams target="restore" visible="0" />
  102. <sendparams target="maximize" visible="0" />
  103. </groupdef>