| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <rml>
- <head>
- <title>High Scores</title>
- <link type="text/template" href="../../assets/window.rml" />
- <style>
- body
- {
- width: 440dp;
- height: 440dp;
- margin: auto;
- }
-
- div#title_bar div#icon
- {
- decorator: image( icon-hiscore );
- }
- defender
- {
- display: inline-block;
- width: 64dp;
- height: 16dp;
- decorator: defender( high_scores_defender.tga );
- }
- table {
- margin-top: 5dp;
- height: 345dp;
- }
- tbody tr {
- height: 30dp;
- }
- tbody tr:last-child {
- height: auto;
- background-color: transparent;
- }
- tbody td
- {
- padding-top: 5dp;
- height: 30dp;
- white-space: nowrap;
- overflow: hidden;
- }
- button {
- margin-top: 20dp;
- }
- </style>
- </head>
- <body template="window" onload="add_score">
- <table data-model="high_scores">
- <thead>
- <tr>
- <td style="width: 200%; margin-left: 10dp;">Pilot</td>
- <td style="min-width: 64dp;">Ship</td>
- <td>Wave</td>
- <td style="min-width: 64dp;">Score</td>
- </tr>
- </thead>
- <tbody>
- <tr data-for="score : scores">
- <td data-if="score.name_required">
- <input id="player_input" type="text" name="name" onkeydown="enter_name" autofocus/>
- </td>
- <td data-if="!score.name_required">
- {{score.name}}
- </td>
- <td>
- <defender data-style-color="score.colour"/>
- </td>
- <td>
- {{score.wave}}
- </td>
- <td>
- {{score.score}}
- </td>
- </tr>
- <tr data-if="scores.size == 0">
- <td colspan="4" style="vertical-align: middle"><em>No scores recorded. Play a game!</em></td>
- </tr>
- <tr data-if="scores.size > 0"/>
- </tbody>
- </table>
- <button onclick="check_name; goto main_menu; close game_window">Main Menu</button>
- </body>
- </rml>
|