Skip to content

Commit

Permalink
kirilllive
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirilllive committed Mar 8, 2022
1 parent b18bdfd commit c2eb6ac
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 108 deletions.
2 changes: 1 addition & 1 deletion plugins/terrain_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function terrain_map(){
var view=document.createElement("div");
view.id='tue_world';
view.style='height:100%;width:100%;overflow:auto;';
view.className="tue_html_scene";
var map=document.createElement("div");
if(arr_dialog.scale){wmap.scale=arr_dialog.scale}
map.id="tue_map";
Expand Down Expand Up @@ -45,7 +46,6 @@ function terrain_map(){
if (arr_dialog.objects[i].go_to){
if (arr_dialog.objects[i].text_from){v+="tue_story='"+arr_dialog.objects[i].go_to+"';scene=0;dialog=0;creation_dialog();"}
else {v+="tue_world.remove();"+((arr_dialog.objects[i].go_to=="tue_go")?"scene++;dialog=0;creation_scene();":"go_to('"+arr_dialog.objects[i].go_to+"');")}

}
item.setAttribute("onclick",v);
map.appendChild(item);
Expand Down
1 change: 0 additions & 1 deletion tuesday.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ function name_block_update(){
}
}
} function creation_scene(){
if(document.getElementById('tue_world')){document.getElementById('tue_world').remove();}
arr_dialog = story_json[tue_story][scene];
del_element("tue_html_scene");
if(arr_dialog.legacy_choice){
Expand Down
242 changes: 136 additions & 106 deletions tuesday_visual.html

Large diffs are not rendered by default.

0 comments on commit c2eb6ac

Please sign in to comment.