high_score.rml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <rml>
  2. <head>
  3. <title>High Scores</title>
  4. <link type="text/template" href="../../assets/window.rml" />
  5. <style>
  6. body
  7. {
  8. width: 350px;
  9. height: 350px;
  10. margin: auto;
  11. }
  12. div#title_bar div#icon
  13. {
  14. icon-image-s: 281px 331px;
  15. icon-image-t: 152px 191px;
  16. }
  17. datagrid
  18. {
  19. margin-bottom: 20px;
  20. min-rows: 10;
  21. }
  22. datagrid data_grid_body
  23. {
  24. min-height: 200px;
  25. }
  26. defender
  27. {
  28. display: block;
  29. width: 64px;
  30. height: 16px;
  31. defender-decorator: defender;
  32. defender-image-src: high_scores_defender.tga;
  33. }
  34. </style>
  35. </head>
  36. <body template="window" onload="add_score">
  37. <datagrid source="high_scores.scores" onrowupdate="check_input">
  38. <col fields="name,name_required" formatter="name" width="40%">Pilot:</col>
  39. <col fields="colour" formatter="ship" width="20%">Ship:</col>
  40. <col fields="wave" width="20%">Wave:</col>
  41. <col fields="score" width="20%">Score:</col>
  42. </datagrid>
  43. <button onclick="check_name; goto main_menu; close game_window">Main Menu</button>
  44. </body>
  45. </rml>