|
| 1 | +{% extends "tablepage.html" %} |
| 2 | +{% block head %} |
| 3 | + {{ super() }} |
| 4 | + <title>Multiworld Sphere Tracker</title> |
| 5 | + <link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="styles/tracker.css") }}" /> |
| 6 | + <script type="application/ecmascript" src="{{ url_for("static", filename="assets/trackerCommon.js") }}"></script> |
| 7 | +{% endblock %} |
| 8 | + |
| 9 | +{% block body %} |
| 10 | + {% include "header/dirtHeader.html" %} |
| 11 | + |
| 12 | + <div id="tracker-wrapper" data-tracker="{{ room.tracker | suuid }}"> |
| 13 | + <div id="tracker-header-bar"> |
| 14 | + <input placeholder="Search" id="search" /> |
| 15 | + |
| 16 | + <div class="info"> |
| 17 | + {% if tracker_data.get_spheres() %} |
| 18 | + This tracker lists already found locations by their logical access sphere. |
| 19 | + It ignores items that cannot be sent |
| 20 | + and will therefore differ from the sphere numbers in the spoiler playthrough. |
| 21 | + This tracker will automatically update itself periodically. |
| 22 | + {% else %} |
| 23 | + This Multiworld has no Sphere data, likely due to being too old, cannot display data. |
| 24 | + {% endif %} |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + |
| 28 | + <div id="tables-container"> |
| 29 | + {%- for team, players in tracker_data.get_all_players().items() %} |
| 30 | + <div class="table-wrapper"> |
| 31 | + <table id="checks-table" class="table non-unique-item-table"> |
| 32 | + <thead> |
| 33 | + <tr> |
| 34 | + <th>Sphere</th> |
| 35 | + {#- Mimicking hint table header for familiarity. #} |
| 36 | + <th>Finder</th> |
| 37 | + <th>Receiver</th> |
| 38 | + <th>Item</th> |
| 39 | + <th>Location</th> |
| 40 | + <th>Game</th> |
| 41 | + </tr> |
| 42 | + </thead> |
| 43 | + <tbody> |
| 44 | + {%- for sphere in tracker_data.get_spheres() %} |
| 45 | + {%- set current_sphere = loop.index %} |
| 46 | + {%- for player, sphere_location_ids in sphere.items() %} |
| 47 | + {%- set checked_locations = tracker_data.get_player_checked_locations(team, player) %} |
| 48 | + {%- set finder_game = tracker_data.get_player_game(team, player) %} |
| 49 | + {%- set player_location_data = tracker_data.get_player_locations(team, player) %} |
| 50 | + {%- for location_id in sphere_location_ids.intersection(checked_locations) %} |
| 51 | + <tr> |
| 52 | + {%- set item_id, receiver, item_flags = player_location_data[location_id] %} |
| 53 | + {%- set receiver_game = tracker_data.get_player_game(team, receiver) %} |
| 54 | + <td>{{ current_sphere }}</td> |
| 55 | + <td>{{ tracker_data.get_player_name(team, player) }}</td> |
| 56 | + <td>{{ tracker_data.get_player_name(team, receiver) }}</td> |
| 57 | + <td>{{ tracker_data.item_id_to_name[receiver_game][item_id] }}</td> |
| 58 | + <td>{{ tracker_data.location_id_to_name[finder_game][location_id] }}</td> |
| 59 | + <td>{{ finder_game }}</td> |
| 60 | + </tr> |
| 61 | + {%- endfor %} |
| 62 | + |
| 63 | + {%- endfor %} |
| 64 | + {%- endfor %} |
| 65 | + </tbody> |
| 66 | + </table> |
| 67 | + </div> |
| 68 | + |
| 69 | + {%- endfor -%} |
| 70 | + </div> |
| 71 | + </div> |
| 72 | +{% endblock %} |
0 commit comments