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

  1. <!-- =======================================================================================================
  2.  
  3.   <Wasabi:TitleBar /> implmentation
  4.  
  5.     Available parameters :
  6.  
  7.       - All params for Group
  8.       - All params for Text
  9.  
  10.     Required objects : (these objects are manipulated by the script, so overriding with script content inheritance
  11.                        will require you to have these objects. Otherwise, you should be fine)
  12.  
  13.       - Group id="wasabi.titlebar.streak.left" 
  14.       - Group id="wasabi.titlebar.streak.right" 
  15.       - Layer id="mousetrap" (this object shoud cover the content of the group)
  16.  
  17. ======================================================================================================== -->
  18.  
  19. <groupdef id="wasabi.titlebar" xuitag="Wasabi:TitleBar" embed_xui="window.titlebar.title">
  20.   <group 
  21.     id="wasabi.titlebar.streak"
  22.     instanceid="wasabi.titlebar.streak.left"
  23.     x="0" y="0"
  24.     w="95" h="11" 
  25.   />
  26.   <sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.active" w="-16"/>
  27.   <sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.inactive" w="-16"/>
  28.   <sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.active" x="-9"/>
  29.   <sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.inactive" x="-9"/>
  30.  
  31.   <text
  32.    id="window.titlebar.title"
  33.    x="100" y="0"
  34.    w="50" h="11" 
  35.    default=":componentname"
  36.    font="studio.component.title"
  37.    inactiveAlpha="128"
  38.   />
  39.  
  40.   <group 
  41.     id="wasabi.titlebar.streak"
  42.     instanceid="wasabi.titlebar.streak.right"
  43.     x="155" y="0"
  44.     w="-155" relatw="1" h="11"
  45.   />
  46.   <sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.active" x="9" w="-16"/>
  47.   <sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.inactive" x="9" w="-16"/>
  48.   <sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.active" x="2"/>
  49.   <sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.inactive" x="2"/>
  50.  
  51.   <layer id="mousetrap" x="0" y="0" w="0" h="0" relatw="1" relath="1" move="1"/>
  52.   <script id="titlebar" file="scripts/titlebar.maki" param="wasabi.titlebar.streak.left;window.titlebar.title;wasabi.titlebar.streak.right" />
  53. </groupdef>
  54.  
  55.  
  56.  
  57. <!-- =======================================================================================================
  58.  
  59.   This implements a title streak bar. Dependencies are limited to the wasabi.titlebar group, in other words, if you remove
  60.   the sendparams in the above group, none of these objects are required.
  61.  
  62. ======================================================================================================== -->
  63.  
  64. <groupdef id="wasabi.titlebar.streak">
  65.  
  66.   <layer
  67.     id="titlebar.left.active"
  68.     x="0" y="1"
  69.     image="wasabi.titlebar.left.active"
  70.     inactiveAlpha="0"
  71.   />
  72.   <layer
  73.     id="titlebar.center.active"
  74.     x="7" y="1" w="-14"
  75.     relatw="1"
  76.     image="wasabi.titlebar.center.active"
  77.     inactiveAlpha="0"
  78.   />
  79.   <layer
  80.     id="titlebar.right.active"
  81.     x="-7" y="1"
  82.     relatx="1"
  83.     image="wasabi.titlebar.right.active"
  84.     inactiveAlpha="0"
  85.   />
  86.  
  87.   <layer
  88.     id="titlebar.left.inactive"
  89.     x="0" y="1"
  90.     image="wasabi.titlebar.left.inactive"
  91.     activeAlpha="0"
  92.   />
  93.   <layer
  94.     id="titlebar.center.inactive"
  95.     x="7" y="1" w="-14"
  96.     relatw="1"
  97.     image="wasabi.titlebar.center.inactive"
  98.     activeAlpha="0"
  99.   />
  100.   <layer
  101.     id="titlebar.right.inactive"
  102.     x="-7" relatx="1" y="1"
  103.     image="wasabi.titlebar.right.inactive"
  104.     activeAlpha="0"
  105.   />
  106.  
  107. </groupdef>
  108.  
  109.