home *** CD-ROM | disk | FTP | other *** search
/ Minami 49 / MINAMI49.ISO / Extra / winamp503_full.exe / Plugins / standardframe.xml < prev    next >
Text File  |  2003-06-22  |  10KB  |  336 lines

  1. <!-- =======================================================================================================
  2.  
  3.   This file implements the following objects :
  4.  
  5.     - Wasabi:StandardFrame:Status
  6.     - Wasabi:StandardFrame:NoStatus
  7.     - Wasabi:StandardFrame:Modal
  8.     - Wasabi:StandardFrame:Static
  9.  
  10.     Available parameters :
  11.  
  12.       padtitleleft  : resizes the title from the left by the specified amount of pixels
  13.       padtitleright : resizes the title from the right by the specified amount of pixels
  14.       content       : tells the object which group to instantiate in its client area
  15.  
  16. ======================================================================================================== -->
  17.  
  18. <include file="standardframe-elements.xml" />
  19.  
  20.  
  21.  
  22. <!-- =======================================================================================================
  23.  
  24.   This group serves as a template for all the Wasabi:StandardFrame objects
  25.  
  26. ======================================================================================================== -->
  27.  
  28. <groupdef id="wasabi.frame.layout">
  29.  
  30.    <layer
  31.      id="window.top.left"
  32.      x="0" y="0"
  33.      image="wasabi.frame.top.left"
  34.      resize="topleft"
  35.    />
  36.    <layer
  37.      id="window.top"
  38.      x="15" y="0"
  39.      w="-30"
  40.      relatw="1"
  41.      image="wasabi.frame.top"
  42.      resize="top"
  43.    />
  44.    <layer
  45.      id="window.top.right"
  46.      x="-15" y="0"
  47.      relatx="1"
  48.      image="wasabi.frame.top.right"
  49.      resize="topright"
  50.    />
  51.  
  52.    <layer
  53.      id="window.left"
  54.      x="0" y="15"
  55.      h="0"
  56.      relath="1"
  57.      image="wasabi.frame.left"
  58.      resize="left"
  59.    />
  60.    <layer
  61.      id="window.right"
  62.      x="-5" y="15"
  63.      h="0"
  64.      relatx="1" relath="1"
  65.      image="wasabi.frame.right"
  66.      resize="right"
  67.    />
  68.  
  69.    <layer id="window.resize.disabler" x="5" y="5" w="-10" h="-10" relatw="1" relath="1"/>
  70.    
  71.    <LayoutStatus id="sysmenu.status" bg="0" x="5" y="3" w="14" h="9" includeonly="{system}" />
  72.    <hideobject target="sysmenu.status"/>
  73.    <button
  74.       id="controlmenu.inactive"
  75.       action="controlmenu"
  76.       x="5" y="3"
  77.       image="wasabi.button.sysmenu.pressed"
  78.       downImage="wasabi.button.sysmenu"
  79.       tooltip="Control Menu"
  80.       activeAlpha="0"
  81.    />
  82.    <button
  83.       id="controlmenu"
  84.       action="controlmenu"
  85.       x="5" y="3"
  86.       image="wasabi.button.sysmenu"
  87.       downImage="wasabi.button.sysmenu.pressed"
  88.       tooltip="Control Menu"
  89.       inactiveAlpha="0"
  90.    />
  91.    <button
  92.       id="Close.inactive"
  93.       action="CLOSE"
  94.       x="-18" y="3"
  95.       relatx="1"
  96.       image="wasabi.button.close.pressed"
  97.       downImage="wasabi.button.close"
  98.       tooltip="Close Window"
  99.       activeAlpha="0"
  100.    />
  101.    <button
  102.       id="Close"
  103.       action="CLOSE"
  104.       x="-18" y="3"
  105.       relatx="1"
  106.       image="wasabi.button.close"
  107.       downImage="wasabi.button.close.pressed"
  108.       tooltip="Close Window"
  109.       inactiveAlpha="0"
  110.    />
  111.    <Wasabi:TitleBar
  112.      id="wasabi.titlebar"
  113.      x="22" y="2"
  114.      w="-42" h="11"
  115.      relatw="1"
  116.    />
  117.      
  118.  </groupdef>
  119.  
  120.  
  121. <!-- =======================================================================================================
  122.  
  123.   <Wasabi:StandardFrame:Status /> implementation
  124.  
  125. ======================================================================================================== -->
  126.  
  127.  <groupdef id="wasabi.standardframe.statusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:Status">
  128.  
  129.     <group id="wasabi.frame.layout" x="0" y="0" w="0" relatw="1" h="-19" relath="1"/>
  130.  
  131.     <layer
  132.      id="window.bottom.left.top"
  133.      x="0" y="-19"
  134.      relaty="1"
  135.      image="wasabi.frame.bottom.left.top"
  136.      resize="bottomleft"
  137.    />
  138.    <layer
  139.      id="window.bottom.left"
  140.      x="0" y="-17"
  141.      h="15"
  142.      relaty="1"
  143.      image="wasabi.frame.bottom.left"
  144.      resize="bottomleft"
  145.    />
  146.  
  147.    <layer
  148.      id="window.bottom.left.bottom"
  149.      x="0" y="-2"
  150.      relaty="1"
  151.      image="wasabi.frame.bottom.left.bottom"
  152.      resize="bottomleft"
  153.    />
  154.  
  155.    <layer
  156.      id="window.bottom.top"
  157.      x="15" y="-19"
  158.      w="-30"
  159.      relatw="1" relaty="1"
  160.      image="wasabi.frame.bottom.top"
  161.    />
  162.    <layer
  163.      id="window.bottom"
  164.      x="15" y="-17"
  165.      w="-30" h="15"
  166.      relatw="1" relaty="1"
  167.      image="wasabi.frame.bottom"
  168.      resize="bottom"
  169.    />
  170.    <layer
  171.      id="window.bottom.bottom"
  172.      x="15" y="-2"
  173.      w="-30"
  174.      relatw="1" relaty="1"
  175.      image="wasabi.frame.bottom.bottom"
  176.      resize="bottom"
  177.    />
  178.  
  179.    <layer
  180.      id="window.bottom.right.top"
  181.      x="-15" y="-19"
  182.      relatx="1" relaty="1"
  183.      image="wasabi.frame.bottom.right.top"
  184.      resize="bottomright"
  185.    />
  186.    <layer
  187.      id="window.bottom.right"
  188.      x="-15" y="-17"
  189.      h="15"
  190.      relatx="1" relaty="1"
  191.      image="wasabi.frame.bottom.right"
  192.      resize="bottomright"
  193.    />
  194.    <layer
  195.      id="window.bottom.right.bottom"
  196.      x="-15" y="-2"
  197.      relatx="1" relaty="1"
  198.      image="wasabi.frame.bottom.right.bottom"
  199.      resize="bottomright"
  200.    />
  201.  
  202.    <layer
  203.      id="window.resizer"
  204.      x="-16" y="-16"
  205.      relatx="1" relaty="1"
  206.      image="wasabi.frame.resizer"
  207.      resize="bottomright"
  208.      scale="bottomright"
  209.    />
  210.  
  211.   <LayoutStatus id="standardframe.layoutstatus" x="4" y="-17" relaty="1" w="-23" relatw="1" h="15" exclude="{system}" />
  212.   <script id="standardframe.script" file="scripts/standardframe.maki" param="5,15,-10,-34,0,0,1,1" />
  213.  
  214. </groupdef>
  215.  
  216.  
  217. <!-- =======================================================================================================
  218.  
  219.   <Wasabi:StandardFrame:NoStatus /> implementation
  220.  
  221. ======================================================================================================== -->
  222.  
  223. <groupdef id="wasabi.standardframe.nostatusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:NoStatus">
  224.  
  225.   <group id="wasabi.frame.layout" x="0" y="0" w="0" h="-5" relatw="1" relath="1"/>
  226.     <layer
  227.      id="window.bottom.left.top"
  228.      x="0" y="-5"
  229.      relaty="1"
  230.      image="wasabi.frame.bottom.left.top"
  231.      resize="bottomleft"
  232.    />
  233.    <layer
  234.      id="window.bottom.left"
  235.      x="0" y="-3"
  236.      h="1"
  237.      relaty="1"
  238.      image="wasabi.frame.bottom.left"
  239.      resize="bottomleft"
  240.    />
  241.    <layer
  242.      id="window.bottom.left.bottom"
  243.      x="0" y="-2"
  244.      relaty="1"
  245.      image="wasabi.frame.bottom.left.bottom"
  246.      resize="bottomleft"
  247.    />
  248.  
  249.    <layer
  250.      id="window.bottom.top"
  251.      x="15" y="-5"
  252.      w="-30"
  253.      relatw="1" relaty="1"
  254.      image="wasabi.frame.bottom.top"
  255.    />
  256.    <layer
  257.      id="window.bottom"
  258.      x="15" y="-3"
  259.      w="-30" h="1"
  260.      relatw="1" relaty="1"
  261.      image="wasabi.frame.bottom"
  262.      resize="bottom"
  263.    />
  264.    <layer
  265.      id="window.bottom.bottom"
  266.      x="15" y="-2"
  267.      w="-30"
  268.      relatw="1" relaty="1"
  269.      image="wasabi.frame.bottom.bottom"
  270.      resize="bottom"
  271.    />
  272.  
  273.    <layer
  274.      id="window.bottom.right.top"
  275.      x="-15" y="-5"
  276.      relatx="1" relaty="1"
  277.      image="wasabi.frame.bottom.right.top"
  278.      resize="bottomright"
  279.    />
  280.    <layer
  281.      id="window.bottom.right"
  282.      x="-15" y="-3"
  283.      h="1"
  284.      relatx="1" relaty="1"
  285.      image="wasabi.frame.bottom.right"
  286.      resize="bottomright"
  287.    />
  288.    <layer
  289.      id="window.bottom.right.bottom"
  290.      x="-15" y="-2"
  291.      relatx="1" relaty="1"
  292.      image="wasabi.frame.bottom.right.bottom"
  293.      resize="bottomright"
  294.    />
  295.  
  296.   <script id="standardframe.script" file="scripts/standardframe.maki" param="5,15,-10,-20,0,0,1,1" />
  297.  
  298. </groupdef>
  299.  
  300.  
  301. <!-- =======================================================================================================
  302.  
  303.   <Wasabi:StandardFrame:Modal /> implementation
  304.  
  305. ======================================================================================================== -->
  306.  
  307. <groupdef id="wasabi.standardframe.modal" inherit_group="wasabi.standardframe.nostatusbar" sysregion="1" xuitag="Wasabi:StandardFrame:Modal">
  308.   <group 
  309.     id="wasabi.panel"
  310.     x="5" y="15"
  311.     w="-10" h="-20"
  312.     relatw="1" relath="1"
  313.   />
  314.   <hideobject target="controlmenu;controlmenu.inactive"/>
  315.   <sendparams target="wasabi.titlebar" x="4" w="-24" relatw="1" />
  316.   <sendparams target="window.top.left;window.top;window.top.right;window.left;window.right;window.bottom.left.top;window.bottom.left;window.bottom.left.bottom;window.bottom.top;window.bottom;window.bottom.bottom;window.bottom.right.top;window.bottom.right;window.bottom.right.bottom" resize="0" />
  317. </groupdef>
  318.  
  319.  
  320. <!-- =======================================================================================================
  321.  
  322.   <Wasabi:StandardFrame:Static /> implementation
  323.  
  324. ======================================================================================================== -->
  325.  
  326. <groupdef id="wasabi.standardframe.static" inherit_group="wasabi.standardframe.nostatusbar" sysregion="1" xuitag="Wasabi:StandardFrame:Static">
  327.   <group 
  328.     id="wasabi.panel"
  329.     x="5" y="15"
  330.     w="-10" h="-20"
  331.     relatw="1" relath="1"
  332.   />
  333.   <sendparams target="window.top.left;window.top;window.top.right;window.left;window.right;window.bottom.left.top;window.bottom.left;window.bottom.left.bottom;window.bottom.top;window.bottom;window.bottom.bottom;window.bottom.right.top;window.bottom.right;window.bottom.right.bottom" resize="0" />
  334. <!--  <hideobject target="controlmenu;controlmenu.inactive"/> -->
  335. </groupdef>
  336.