Skip to content

Commit

Permalink
update commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Y1ran committed Aug 27, 2023
1 parent faa4db0 commit dabc261
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions environment/frontend_server/templates/demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h2 style="text-align: right; {% if mode == 'simulate' %} display: none {% endif
<div class="row" style="padding:0">
<div class="col-md-4" id="on_screen_det_trigger_container-{{p.underscore}}" style="text-align:center; padding:0; padding-top:0.3em">
{% with 'assets/characters/profile/'|add:p.underscore|add:'.png' as image_static %}
<img src="{% static image_static %}" style="width:46px; padding:0; ">
<img src="{% static image_static %}" style="width:64px; padding:0; ">
{% endwith %}
<br>
{{ p.initial }}
Expand All @@ -61,7 +61,7 @@ <h2 style="text-align: right; {% if mode == 'simulate' %} display: none {% endif

<div class="media" id="on_screen_det_content-init" style="background-color:#EEEEEE; padding:1em; padding-left:3.5em; padding-right:2em; border-radius:10px; ">
<div class="media-left media-middle">
<em>Click on one of the character sprites to see its current state in more detail. </em>
<em>点击当前AI图标,可以获得更详细的状态信息 </em>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions environment/frontend_server/translator/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def demo(request, sim_code, step, play_speed="2"):
for p in list(raw_all_movement["0"].keys()):
persona_names += [{"original": p,
"underscore": p.replace(" ", "_"),
"initial": p[0] + p.split(" ")[-1][0]}]
"initial": names_mapping[p]}]
persona_names_set.add(p)

# <all_movement> is the main movement variable that we are passing to the
Expand All @@ -80,7 +80,7 @@ def demo(request, sim_code, step, play_speed="2"):
# information in one step.
all_movement = dict()

# Preparing the initial step.
# Preparing the initial steps.
# <init_prep> sets the locations and descriptions of all agents at the
# beginning of the demo determined by <step>.
init_prep = dict()
Expand Down

0 comments on commit dabc261

Please sign in to comment.