high_score.rml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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: 440px;
  9. height: 440px;
  10. margin: auto;
  11. }
  12. div#title_bar div#icon
  13. {
  14. decorator: image( icon-hiscore );
  15. }
  16. datagrid
  17. {
  18. margin-bottom: 20px;
  19. }
  20. datagrid datagridbody
  21. {
  22. min-height: 200px;
  23. }
  24. datagrid datagridrow
  25. {
  26. padding-top: 7px;
  27. padding-bottom: 7px;
  28. }
  29. defender
  30. {
  31. display: inline-block;
  32. width: 64px;
  33. height: 16px;
  34. decorator: defender( high_scores_defender.tga );
  35. }
  36. </style>
  37. </head>
  38. <body template="window" onload="add_score">
  39. <datagrid source="high_scores.scores">
  40. <col fields="name,name_required" formatter="name" width="40%">Pilot</col>
  41. <col fields="colour" formatter="ship" width="20%">Ship</col>
  42. <col fields="wave" width="20%">Wave</col>
  43. <col fields="score" width="20%">Score</col>
  44. </datagrid>
  45. <button onclick="check_name; goto main_menu; close game_window">Main Menu</button>
  46. </body>
  47. </rml>