home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Programy / winamp501_full.exe / $_14327_ / titlebar.xml < prev    next >
Text File  |  2003-10-26  |  4KB  |  121 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="3"
  24.     w="95" h="9"
  25.   />
  26.  
  27.   <sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.active" w="-20"/>
  28.   <sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.inactive" w="-20"/>
  29.   <sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.active" x="-10"/>
  30.   <sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.inactive" x="-10"/>
  31.  
  32.   <text
  33.     id="window.titlebar.title"
  34.     x="100" y="1"
  35.     w="50" h="15"
  36.     default=":componentname"
  37.     font="Arial" fontsize="15"
  38.     color="titlebar.text.color"
  39.     shadowcolor="0,0,0"
  40.     shadowx="1" shadowy="1"
  41.     bold="1"
  42.     inactiveAlpha="128"
  43.     forceuppercase="1"
  44.    />
  45.   <layer
  46.     id="window.titlebar.title.overlay"
  47.     x="100" y="4"
  48.     w="1" h="11"
  49.     image="wasabi.titlebar.overlay"
  50.   />
  51.  
  52.   <group
  53.     id="wasabi.titlebar.streak"
  54.     instanceid="wasabi.titlebar.streak.right"
  55.     x="155" y="3"
  56.     w="-155" relatw="1" h="9"
  57.     sysregion="1"
  58.   />
  59.   <sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.active" x="10" w="-20"/>
  60.   <sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.inactive" x="10" w="-20"/>
  61.   <sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.active" x="0"/>
  62.   <sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.inactive" x="0"/>
  63.  
  64.   <layer id="mousetrap" x="0" y="0" w="0" h="0" relatw="1" relath="1" move="1"/>
  65.   <script id="titlebar" file="scripts/titlebar.maki" param="wasabi.titlebar.streak.left;window.titlebar.title;wasabi.titlebar.streak.right" />
  66. </groupdef>
  67.  
  68.  
  69.  
  70. <!-- =======================================================================================================
  71.  
  72.   This implements a title streak bar. Dependencies are limited to the wasabi.titlebar group, in other words, if you remove
  73.   the sendparams in the above group, none of these objects are required.
  74.  
  75. ======================================================================================================== -->
  76.  
  77. <groupdef id="wasabi.titlebar.streak">
  78.  
  79.   <layer
  80.     id="titlebar.left.active"
  81.     x="0" y="1"
  82.     image="wasabi.titlebar.left.active"
  83.     inactiveAlpha="0"
  84.   />
  85.   <layer
  86.     id="titlebar.center.active"
  87.     x="10" y="1" w="-10"
  88.     relatw="1"
  89.     image="wasabi.titlebar.center.active"
  90.     inactiveAlpha="0"
  91.   />
  92.   <layer
  93.     id="titlebar.right.active"
  94.     x="-10" y="1"
  95.     relatx="1"
  96.     image="wasabi.titlebar.right.active"
  97.     inactiveAlpha="0"
  98.   />
  99.  
  100.   <layer
  101.     id="titlebar.left.inactive"
  102.     x="0" y="1"
  103.     image="wasabi.titlebar.left.inactive"
  104.     activeAlpha="0"
  105.   />
  106.   <layer
  107.     id="titlebar.center.inactive"
  108.     x="10" y="1" w="-10"
  109.     relatw="1"
  110.     image="wasabi.titlebar.center.inactive"
  111.     activeAlpha="0"
  112.   />
  113.   <layer
  114.     id="titlebar.right.inactive"
  115.     x="-10" relatx="1" y="1"
  116.     image="wasabi.titlebar.right.inactive"
  117.     activeAlpha="0"
  118.   />
  119. </groupdef>
  120.  
  121.