1
0

standardframe.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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="23" 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. <grid
  16. x="0" y="0" h="23" w="0" relatw="1" regionop="1"
  17. left="window.titlebar.grid.over.left"
  18. middle="window.titlebar.grid.over.middle"
  19. right="window.titlebar.grid.over.right"
  20. />
  21. <layer x="0" y="0" h="23" w="0" relatw="1" move="1" />
  22. <text id="componentname" x="27" y="5" w="-77" h="14" relatw="1" size="10" bold="1" default=":componentname" ghost="1" color="wasabi.titlebar.color" font="Arial" align="left" forceuppercase="1" antialias="1"/>
  23. <layer x="0" y="23" w="5" h="5" image="window.background.topleft" resize="left" regionop="1"/>
  24. <layer x="5" y="23" w="-10" relatw="1" h="5" image="window.background.top" regionop="1"/>
  25. <layer x="-5" relatx="1" y="23" w="5" h="5" image="window.background.topright" resize="right" regionop="1"/>
  26. <layer x="0" y="28" w="5" h="-33" relath="1" image="window.background.left" resize="left" regionop="1"/>
  27. <layer x="5" y="28" w="-10" relatw="1" h="-33" relath="1" image="window.background.center" move="1" regionop="1"/>
  28. <layer x="-5" relatx="1" y="28" w="5" h="-33" relath="1" image="window.background.right" resize="right" regionop="1"/>
  29. <layer x="0" y="-5" relaty="1" w="5" h="5" image="window.background.bottomleft" resize="bottomleft" id="player.resizer.bottomleft" regionop="1"/>
  30. <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"/>
  31. <layer x="-5" relatx="1" y="-5" relaty="1" w="5" h="5" image="window.background.bottomright" regionop="1"/>
  32. <layer x="-26" y="-15" w="19" h="10" relaty="1" relatx="1" image="window.background.resizer" id="player.resizer.bottomright" rectrgn="1" regionop="1"/>
  33. <layer x="-26" y="-15" w="26" h="11" relaty="1" relatx="1" resize="bottomright" id="player.resizer.bottomright.dummy" rectrgn="1" />
  34. <layer id="window.resize.disabler" fitparent="1" move="1" visible="0"/>
  35. <button
  36. x="-44" relatx="1" y="5" h="13" w="17" visible="0"
  37. id="restore"
  38. image="window.titlebar.button.restore.normal"
  39. hoverImage="window.titlebar.button.restore.hover"
  40. downImage="window.titlebar.button.restore.down"
  41. tooltip="Restore Window"
  42. />
  43. <button
  44. x="-44" relatx="1" y="5" h="13" w="17"
  45. id="maximize"
  46. image="window.titlebar.button.maximize.normal"
  47. hoverImage="window.titlebar.button.maximize.hover"
  48. downImage="window.titlebar.button.maximize.down"
  49. tooltip="Maximize Window"
  50. />
  51. <button
  52. x="7" y="5" h="13" w="15"
  53. action="SYSMENU"
  54. image="window.titlebar.button.sysmenu.normal"
  55. hoverImage="window.titlebar.button.sysmenu.hover"
  56. downImage="window.titlebar.button.sysmenu.down"
  57. tooltip="Main Menu"
  58. />
  59. <button
  60. x="-24" relatx="1" y="5" h="13" w="17"
  61. action="CLOSE"
  62. image="window.titlebar.button.close.normal"
  63. hoverImage="window.titlebar.button.close.hover"
  64. downImage="window.titlebar.button.close.down"
  65. tooltip="Close Window"
  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="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="scripts/standardframe.maki" param="5,26,-10,-63,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="scripts/standardframe.maki" param="5,26,-10,-45,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>