1
0

standardframe.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. <!-- =======================================================================================================
  2. This file implements the following objects :
  3. - Wasabi:MainFrame:NoStatus
  4. - Wasabi:PlaylistFrame:NoStatus
  5. - Wasabi:MediaLibraryFrame:NoStatus
  6. Available parameters :
  7. padtitleleft : resizes the title from the left by the specified amount of pixels
  8. padtitleright : resizes the title from the right by the specified amount of pixels
  9. content : tells the object which group to instantiate in its client area
  10. ======================================================================================================== -->
  11. <include file="standardframe-elements.xml" />
  12. <include file="window_menus.xml" />
  13. <groupdef id="wasabi.main.layout" h="161">
  14. <layer
  15. id="window.top.left"
  16. x="0" y="0"
  17. image="wasabi.frame.top.left"
  18. resize="topleft"
  19. sysregion="1"
  20. />
  21. <layer
  22. id="window.top"
  23. x="10" y="0"
  24. w="-20"
  25. relatw="1"
  26. image="wasabi.frame.top"
  27. resize="top"
  28. sysregion="1"
  29. />
  30. <layer
  31. id="window.top.right"
  32. x="-10" y="0"
  33. relatx="1"
  34. image="wasabi.frame.top.right"
  35. resize="topright"
  36. sysregion="1"
  37. />
  38. <layer
  39. id="window.top.left.region"
  40. x="0"
  41. y="0"
  42. image="wasabi.frame.top.left.region"
  43. sysregion="-2"
  44. />
  45. <layer
  46. id="window.top.right.region"
  47. x="-10"
  48. y="0"
  49. relatx="1"
  50. image="wasabi.frame.top.right.region"
  51. sysregion="-2"
  52. />
  53. <Wasabi:TitleBar
  54. id="wasabi.titlebar"
  55. x="10" y="0"
  56. w="-29" h="18"
  57. relatw="1"
  58. />
  59. <layer
  60. x="5" y="4"
  61. image="wasabi.button.bg.title"
  62. />
  63. <button
  64. id="MainMenu.inactive"
  65. action="SYSMENU"
  66. x="6" y="4"
  67. image="wasabi.button.sysmenu.inactive"
  68. tooltip="Main Menu"
  69. activeAlpha="0"
  70. />
  71. <button
  72. id="MainMenu"
  73. action="SYSMENU"
  74. x="6" y="4"
  75. image="wasabi.button.sysmenu"
  76. downImage="wasabi.button.sysmenu.pressed"
  77. hoverImage="wasabi.button.sysmenu.hover"
  78. tooltip="Main Menu"
  79. inactiveAlpha="0"
  80. />
  81. <button
  82. id="Close.inactive"
  83. action="CLOSE"
  84. x="-17" y="4"
  85. relatx="1"
  86. image="wasabi.button.exit.inactive"
  87. tooltip="Close Window"
  88. activeAlpha="0"
  89. />
  90. <button
  91. id="Close"
  92. action="CLOSE"
  93. x="-17" y="4"
  94. relatx="1"
  95. image="wasabi.button.exit"
  96. downImage="wasabi.button.exit.pressed"
  97. hoverImage="wasabi.button.exit.hover"
  98. tooltip="Close Window"
  99. inactiveAlpha="0"
  100. />
  101. </groupdef>
  102. <groupdef id="wasabi.standard.layout">
  103. <layer
  104. id="window.top.left"
  105. x="0" y="0"
  106. image="wasabi.frame.top.left"
  107. resize="topleft"
  108. sysregion="1"
  109. />
  110. <layer
  111. id="window.top"
  112. x="10" y="0"
  113. w="-20"
  114. relatw="1"
  115. image="wasabi.frame.top"
  116. resize="top"
  117. sysregion="1"
  118. />
  119. <layer
  120. id="window.top.right"
  121. x="-10" y="0"
  122. relatx="1"
  123. image="wasabi.frame.top.right"
  124. resize="topright"
  125. sysregion="1"
  126. />
  127. <layer
  128. id="window.top.left.region"
  129. x="0"
  130. y="0"
  131. image="wasabi.frame.top.left.region"
  132. sysregion="-2"
  133. />
  134. <layer
  135. id="window.top.right.region"
  136. x="-10"
  137. y="0"
  138. relatx="1"
  139. image="wasabi.frame.top.right.region"
  140. sysregion="-2"
  141. />
  142. <Wasabi:TitleBar
  143. id="wasabi.titlebar"
  144. x="10" y="0"
  145. w="-29" h="18"
  146. relatw="1"
  147. />
  148. <layer
  149. x="5" y="4"
  150. image="wasabi.button.bg.title"
  151. />
  152. <button
  153. id="MainMenu"
  154. action="SYSMENU"
  155. x="6" y="4"
  156. image="wasabi.button.sysmenu.inactive"
  157. tooltip="Main Menu"
  158. activeAlpha="0"
  159. />
  160. <button
  161. id="MainMenu"
  162. action="SYSMENU"
  163. x="6" y="4"
  164. image="wasabi.button.sysmenu"
  165. downImage="wasabi.button.sysmenu.pressed"
  166. hoverImage="wasabi.button.sysmenu.hover"
  167. tooltip="Main Menu"
  168. inactiveAlpha="0"
  169. />
  170. <button
  171. id="Close.inactive"
  172. action="CLOSE"
  173. x="-17" y="4"
  174. relatx="1"
  175. image="wasabi.button.exit.inactive"
  176. tooltip="Close Window"
  177. activeAlpha="0"
  178. />
  179. <button
  180. id="Close"
  181. action="CLOSE"
  182. x="-17" y="4"
  183. relatx="1"
  184. image="wasabi.button.exit"
  185. downImage="wasabi.button.exit.pressed"
  186. hoverImage="wasabi.button.exit.hover"
  187. tooltip="Close Window"
  188. inactiveAlpha="0"
  189. />
  190. </groupdef>
  191. <!-- <Wasabi:MainFrame:NoStatus /> implementation -->
  192. <groupdef id="wasabi.mainframe.nostatusbar" sysregion="1" xuitag="Wasabi:MainFrame:NoStatus">
  193. <group id="wasabi.main.layout" x="0" y="0" w="0" relatw="1" sysregion="1"/>
  194. <group id="wasabi.menubar" x="0" y="18" w="0" relatw="1" sysregion="1" visible="1"/>
  195. <script id="standardframe.script" file="scripts/standardframe.maki" param="0,18,0,0,0,0,1,1" />
  196. </groupdef>
  197. <!-- <Wasabi:PlaylistFrame:NoStatus /> implementation -->
  198. <groupdef id="wasabi.playlistframe.nostatusbar" sysregion="1" xuitag="Wasabi:PlaylistFrame:NoStatus">
  199. <group id="wasabi.standard.layout" x="0" y="0" w="0" relatw="1" sysregion="1"/>
  200. <group id="wasabi.menubar.pl" x="0" y="18" w="0" relatw="1" sysregion="1" visible="1"/>
  201. <script id="standardframe.script" file="scripts/standardframe.maki" param="0,18,0,0,0,0,1,1" />
  202. </groupdef>
  203. <!-- <Wasabi:MediaLibraryFrame:NoStatus /> implementation -->
  204. <groupdef id="wasabi.medialibraryframe.nostatusbar" sysregion="1" xuitag="Wasabi:MediaLibraryFrame:NoStatus">
  205. <group id="wasabi.standard.layout" x="0" y="0" w="0" relatw="1" sysregion="1"/>
  206. <group id="wasabi.menubar.ml" x="0" y="18" w="0" relatw="1" sysregion="1" visible="1"/>
  207. <script id="standardframe.script" file="scripts/standardframe.maki" param="0,18,0,0,0,0,1,1" />
  208. </groupdef>
  209. <!-- <Wasabi:VISFrame:NoStatus /> implementation -->
  210. <groupdef id="wasabi.visframe.nostatusbar" sysregion="1" xuitag="Wasabi:VISFrame:NoStatus">
  211. <group id="wasabi.standard.layout" x="0" y="0" w="0" relatw="1" sysregion="1"/>
  212. <script id="standardframe.script" file="scripts/standardframe.maki" param="0,18,0,0,0,0,1,1" />
  213. </groupdef>
  214. <!-- =======================================================================================================
  215. This group serves as a template for all the Wasabi:StandardFrame objects
  216. ======================================================================================================== -->
  217. <groupdef id="wasabi.frame.layout">
  218. <layer
  219. id="window.top.left"
  220. x="0" y="0"
  221. image="wasabi.frame.top.left"
  222. resize="topleft"
  223. sysregion="1"
  224. />
  225. <layer
  226. id="window.top"
  227. x="10" y="0"
  228. w="-20"
  229. relatw="1"
  230. image="wasabi.frame.top"
  231. resize="top"
  232. sysregion="1"
  233. />
  234. <layer
  235. id="window.top.right"
  236. x="-10" y="0"
  237. relatx="1"
  238. image="wasabi.frame.top.right"
  239. resize="topright"
  240. sysregion="1"
  241. />
  242. <layer
  243. id="window.top.left.region"
  244. x="0"
  245. y="0"
  246. image="wasabi.frame.top.left.region"
  247. sysregion="-2"
  248. />
  249. <layer
  250. id="window.top.right.region"
  251. x="-10"
  252. y="0"
  253. relatx="1"
  254. image="wasabi.frame.top.right.region"
  255. sysregion="-2"
  256. />
  257. <layer
  258. x="0" y="18"
  259. image="wasabi.window2.topleft"
  260. resize="topleft"
  261. />
  262. <layer
  263. x="6" y="18"
  264. w="-12"
  265. relatw="1"
  266. image="wasabi.window2.topcenter"
  267. resize="top"
  268. />
  269. <layer
  270. x="-6" y="18"
  271. relatx="1"
  272. image="wasabi.window2.topright"
  273. resize="topright"
  274. />
  275. <layer
  276. x="0" y="23"
  277. relath="1"
  278. h="-23"
  279. image="wasabi.window2.left"
  280. resize="left"
  281. />
  282. <layer
  283. x="-6" y="23"
  284. relatx="1"
  285. relath="1"
  286. h="-23"
  287. image="wasabi.window2.right"
  288. resize="right"
  289. />
  290. <layer id="window.resize.disabler" x="6" y="6" w="-12" h="-12" relatw="1" relath="1"/>
  291. <LayoutStatus id="sysmenu.status" bg="0" x="5" y="3" w="14" h="9" includeonly="{system}" />
  292. <hideobject target="sysmenu.status"/>
  293. <Wasabi:TitleBar
  294. id="wasabi.titlebar"
  295. x="20" y="0"
  296. w="-39" h="18"
  297. relatw="1"
  298. />
  299. <layer
  300. id="MainMenu.button.bg"
  301. x="5" y="4"
  302. image="wasabi.button.bg.title"
  303. />
  304. <button
  305. id="MainMenu.inactive"
  306. action="SYSMENU"
  307. x="6" y="4"
  308. image="wasabi.button.sysmenu.inactive"
  309. tooltip="Main Menu"
  310. activeAlpha="0"
  311. />
  312. <button
  313. id="MainMenu"
  314. action="SYSMENU"
  315. x="6" y="4"
  316. image="wasabi.button.sysmenu"
  317. downImage="wasabi.button.sysmenu.pressed"
  318. hoverImage="wasabi.button.sysmenu.hover"
  319. tooltip="Main Menu"
  320. inactiveAlpha="0"
  321. />
  322. <button
  323. id="Close.inactive"
  324. action="CLOSE"
  325. x="-17" y="4"
  326. relatx="1"
  327. image="wasabi.button.exit.inactive"
  328. tooltip="Close Window"
  329. activeAlpha="0"
  330. />
  331. <button
  332. id="Close"
  333. action="CLOSE"
  334. x="-17" y="4"
  335. relatx="1"
  336. image="wasabi.button.exit"
  337. downImage="wasabi.button.exit.pressed"
  338. hoverImage="wasabi.button.exit.hover"
  339. tooltip="Close Window"
  340. inactiveAlpha="0"
  341. />
  342. </groupdef>
  343. <!-- =======================================================================================================
  344. <Wasabi:StandardFrame:Status /> implementation
  345. ======================================================================================================== -->
  346. <groupdef id="wasabi.standardframe.statusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:Status">
  347. <group id="wasabi.frame.layout" x="0" y="0" w="0" relatw="1" h="-42" relath="1"/>
  348. <layer
  349. x="0" y="-42"
  350. relaty="1"
  351. image="wasabi.window2.bottomleft"
  352. resize="bottomleft"
  353. />
  354. <layer
  355. x="20" y="-25"
  356. w="-40"
  357. relatw="1"
  358. relaty="1"
  359. image="wasabi.window2.bottomcenter"
  360. resize="bottom"
  361. />
  362. <layer
  363. x="-20" y="-42"
  364. relatx="1"
  365. relaty="1"
  366. image="wasabi.window2.bottomright"
  367. resize="bottomright"
  368. />
  369. <layer
  370. x="0" y="-6"
  371. relaty="1"
  372. image="player.main.left.region"
  373. resize="left"
  374. sysregion="-2"
  375. />
  376. <layer
  377. x="-6" y="-6"
  378. relaty="1"
  379. relatx="1"
  380. image="player.main.right.region"
  381. sysregion="-2"
  382. />
  383. <layer
  384. id="window.resizer"
  385. x="-16" y="-16"
  386. relatx="1" relaty="1"
  387. image="wasabi.frame.resizer"
  388. resize="bottomright"
  389. scale="bottomright"
  390. />
  391. <LayoutStatus id="standardframe.layoutstatus" x="11" y="-21" relaty="1" w="-43" relatw="1" h="18" exclude="{system}" />
  392. <script id="standardframe.script" file="scripts/standardframe.maki" param="6,23,-12,-48,0,0,1,1" />
  393. </groupdef>
  394. <!-- =======================================================================================================
  395. <Wasabi:StandardFrame:NoStatus /> implementation
  396. ======================================================================================================== -->
  397. <groupdef id="wasabi.standardframe.nostatusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:NoStatus">
  398. <group id="wasabi.frame.layout" x="0" y="0" w="0" h="-15" relatw="1" relath="1"/>
  399. <layer
  400. x="0" y="-27"
  401. relaty="1"
  402. image="wasabi.window2.bottomleft.nostatus"
  403. resize="bottomleft"
  404. />
  405. <layer
  406. x="20" y="-10"
  407. w="-40"
  408. relatw="1"
  409. relaty="1"
  410. image="wasabi.window2.bottomcenter.nostatus"
  411. resize="bottom"
  412. />
  413. <layer
  414. x="-20" y="-27"
  415. relatx="1"
  416. relaty="1"
  417. image="wasabi.window2.bottomright.nostatus"
  418. resize="bottomright"
  419. />
  420. <layer
  421. x="0" y="-6"
  422. relaty="1"
  423. image="player.main.left.region"
  424. resize="left"
  425. sysregion="-2"
  426. />
  427. <layer
  428. x="-6" y="-6"
  429. relaty="1"
  430. relatx="1"
  431. image="player.main.right.region"
  432. sysregion="-2"
  433. />
  434. <script id="standardframe.script" file="scripts/standardframe.maki" param="6,23,-12,-33,0,0,1,1" />
  435. </groupdef>
  436. <!-- =======================================================================================================
  437. <Wasabi:StandardFrame:Modal /> implementation
  438. ======================================================================================================== -->
  439. <groupdef id="wasabi.standardframe.modal" inherit_group="wasabi.standardframe.nostatusbar" sysregion="1" xuitag="Wasabi:StandardFrame:Modal">
  440. <sendparams target="wasabi.titlebar" x="4" w="-22" relatw="1" />
  441. <hideobject target="MainMenu;MainMenu.inactive.inactive;MainMenu.button.bg"/>
  442. <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" />
  443. </groupdef>
  444. <!-- =======================================================================================================
  445. <Wasabi:StandardFrame:Static /> implementation
  446. ======================================================================================================== -->
  447. <groupdef id="wasabi.standardframe.static" inherit_group="wasabi.standardframe.nostatusbar" sysregion="1" xuitag="Wasabi:StandardFrame:Static">
  448. <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" />
  449. </groupdef>