Skip to content

Commit 6d00a8d

Browse files
committed
kirilllive
1 parent 3dd80cd commit 6d00a8d

File tree

7 files changed

+128
-123
lines changed

7 files changed

+128
-123
lines changed

lakit.json

Lines changed: 105 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@
107107
"zh": "工作文件夹中的所有文件和 index.html 将被打包成 zip 压缩文件。"
108108
}
109109
],
110+
[
111+
"displays the location of the touch or the click on the screen for a few seconds",
112+
{
113+
"ru": "отображает место нажатия на экране",
114+
"ja": "数秒間、ユーザーがタッチまたはクリックしたポイントを強調表示します。"
115+
}
116+
],
110117
[
111118
"https://kirilllive.github.io/tuesday-js/doc_editor.html#quick_tutorial",
112119
{
@@ -379,15 +386,6 @@
379386
"zh": "title='加载项目文件夹'"
380387
}
381388
],
382-
[
383-
"title='Project code'",
384-
{
385-
"ru": "title='Проект код'",
386-
"ja": "title='プロジェクトコード'",
387-
"es": "title='Código del proyecto'",
388-
"zh": "title='项目代码'"
389-
}
390-
],
391389
[
392390
"title='About visual editor'",
393391
{
@@ -592,6 +590,15 @@
592590
"zh": "选择项目文件夹"
593591
}
594592
],
593+
[
594+
"title='Project code'",
595+
{
596+
"ru": "title='Проект код'",
597+
"ja": "title='プロジェクトコード'",
598+
"es": "title='Código del proyecto'",
599+
"zh": "title='项目代码'"
600+
}
601+
],
595602
[
596603
">Display conditions<",
597604
{
@@ -781,15 +788,6 @@
781788
"zh": "默认文本颜色"
782789
}
783790
],
784-
[
785-
">Class name<",
786-
{
787-
"ru": ">Имя класса<",
788-
"es": ">Nombre de la clase<",
789-
"pt": ">Nome da classe<",
790-
"zh": ">类名<"
791-
}
792-
],
793791
[
794792
"Default class name",
795793
{
@@ -897,24 +895,6 @@
897895
"zh": ">JavaScript 代码<"
898896
}
899897
],
900-
[
901-
">CSS classes<",
902-
{
903-
"ru": ">CSS классы<",
904-
"ja": ">CSSクラス<",
905-
"es": ">Clases CSS<",
906-
"zh": ">CSS 样式<"
907-
}
908-
],
909-
[
910-
">JSON project<",
911-
{
912-
"ru": ">JSON проект<",
913-
"ja": ">JSONプロジェクト<",
914-
"es": ">Proyecto JSON<",
915-
"zh": ">JSON 工程<"
916-
}
917-
],
918898
[
919899
"New block created",
920900
{
@@ -1222,6 +1202,15 @@
12221202
"zh": "big_languares('zh')"
12231203
}
12241204
],
1205+
[
1206+
">JSON project<",
1207+
{
1208+
"ru": ">JSON проект<",
1209+
"ja": ">JSONプロジェクト<",
1210+
"es": ">Proyecto JSON<",
1211+
"zh": ">JSON 工程<"
1212+
}
1213+
],
12251214
[
12261215
">Legacy choice",
12271216
{
@@ -1440,24 +1429,6 @@
14401429
"zh": ">场景更新<"
14411430
}
14421431
],
1443-
[
1444-
"screen color",
1445-
{
1446-
"ru": "Цвет экрана",
1447-
"ja": "画面の色",
1448-
"es": "Color de pantalla",
1449-
"zh": "屏幕颜色"
1450-
}
1451-
],
1452-
[
1453-
"screen image",
1454-
{
1455-
"ru": "Изображение экрана",
1456-
"ja": "画面の画像",
1457-
"es": "Imagen de pantalla",
1458-
"zh": "屏幕图片"
1459-
}
1460-
],
14611432
[
14621433
"Screen control",
14631434
{
@@ -1491,6 +1462,24 @@
14911462
"zh": ">对话开始<"
14921463
}
14931464
],
1465+
[
1466+
"Clear all save",
1467+
{
1468+
"ru": "Очистить все сохранения",
1469+
"ja": "全てのセーブを削除",
1470+
"es": "Borrar todos los guardados",
1471+
"zh": "清除所有本地存储"
1472+
}
1473+
],
1474+
[
1475+
">CSS classes<",
1476+
{
1477+
"ru": ">CSS классы<",
1478+
"ja": ">CSSクラス<",
1479+
"es": ">Clases CSS<",
1480+
"zh": ">CSS 样式<"
1481+
}
1482+
],
14941483
[
14951484
"Load autosave",
14961485
{
@@ -1724,6 +1713,33 @@
17241713
"zh": "随机选择"
17251714
}
17261715
],
1716+
[
1717+
">Class name<",
1718+
{
1719+
"ru": ">Имя класса<",
1720+
"es": ">Nombre de la clase<",
1721+
"pt": ">Nome da classe<",
1722+
"zh": ">类名<"
1723+
}
1724+
],
1725+
[
1726+
"screen color",
1727+
{
1728+
"ru": "Цвет экрана",
1729+
"ja": "画面の色",
1730+
"es": "Color de pantalla",
1731+
"zh": "屏幕颜色"
1732+
}
1733+
],
1734+
[
1735+
"screen image",
1736+
{
1737+
"ru": "Изображение экрана",
1738+
"ja": "画面の画像",
1739+
"es": "Imagen de pantalla",
1740+
"zh": "屏幕图片"
1741+
}
1742+
],
17271743
[
17281744
"title='Undo'",
17291745
{
@@ -1976,6 +1992,13 @@
19761992
"zh": "画面比例"
19771993
}
19781994
],
1995+
[
1996+
"Smooth lines",
1997+
{
1998+
"ru": "Сглаживание линий",
1999+
"ja": "ブロック接続線の 曲線度"
2000+
}
2001+
],
19792002
[
19802003
"Full screen",
19812004
{
@@ -2309,15 +2332,6 @@
23092332
"zh": "字体大小"
23102333
}
23112334
],
2312-
[
2313-
"Clear all save",
2314-
{
2315-
"ru": "Очистить все сохранения",
2316-
"ja": "全てのセーブを削除",
2317-
"es": "Borrar todos los guardados",
2318-
"zh": "清除所有本地存储"
2319-
}
2320-
],
23212335
[
23222336
"Auto save ",
23232337
{
@@ -2586,6 +2600,20 @@
25862600
"zh": ">对角线<"
25872601
}
25882602
],
2603+
[
2604+
"Show touch",
2605+
{
2606+
"ru": "Показать нажатие",
2607+
"ja": "タッチ位置表示"
2608+
}
2609+
],
2610+
[
2611+
"Touch only",
2612+
{
2613+
"ru": "Только тач",
2614+
"ja": "タッチ限定"
2615+
}
2616+
],
25892617
[
25902618
"language:",
25912619
{
@@ -3083,6 +3111,13 @@
30833111
"zh": ">三分割<"
30843112
}
30853113
],
3114+
[
3115+
">custom<",
3116+
{
3117+
"ru": ">cвой<",
3118+
"ja": ">指定 座標<"
3119+
}
3120+
],
30863121
[
30873122
"dialog:",
30883123
{
@@ -3559,6 +3594,13 @@
35593594
"zh": ">链接<"
35603595
}
35613596
],
3597+
[
3598+
">Time<",
3599+
{
3600+
"ja": ">表示時間<",
3601+
"ru": ">Время<"
3602+
}
3603+
],
35623604
[
35633605
">Back",
35643606
{
@@ -3731,42 +3773,5 @@
37313773
"es": ">no<",
37323774
"zh": ">不<"
37333775
}
3734-
],
3735-
[
3736-
"Show touch",
3737-
{
3738-
"ru": "Показать нажатие"
3739-
}
3740-
],
3741-
[
3742-
"displays the location of the click on the screen",
3743-
{
3744-
"ru": "отображает место нажатия на экране"
3745-
}
3746-
],
3747-
[
3748-
"Touch only",
3749-
{
3750-
"ru": "Только тач"
3751-
}
3752-
],
3753-
[
3754-
">Time<",
3755-
{
3756-
"ja": ">タイマー<",
3757-
"ru": ">Время<"
3758-
}
3759-
],
3760-
[
3761-
"Smooth lines",
3762-
{
3763-
"ru": "Сглаживание линий"
3764-
}
3765-
],
3766-
[
3767-
">custom<",
3768-
{
3769-
"ru": ">cвой<"
3770-
}
37713776
]
37723777
]

translate/en_tuesday_visual.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@
906906
"code":"let tue_toast;function creation_tost(){var t=document.createElement(\"style\");t.type=\"text/css\",t.innerHTML=\"#toast{position: fixed;opacity: 0;top: -96px;z-index: 1000;}.toast_anim{left: 50%;transform: translateX(-50%);animation: viwe 0.25s, stop 2s 0.25s, close 0.5s 2s linear;}@keyframes viwe {from {opacity: 0;top: 3em}to {opacity: 1;top: 3em}}@keyframes stop {from {opacity: 1;top: 3em}to {opacity: 1;top: 3em}}@keyframes close {from {opacity: 1;top: 3em}to {opacity: 0;top: -96px}}\",document.getElementsByTagName(\"head\")[0].appendChild(t),(tue_toast=document.createElement(\"div\")).id=\"toast\",tue_toast.innerHTML=\"<table border=\'0\' height=\'100%\' width=\'100%\'><tbody><tr><td id=\'toast_message\' align=\'center\' valign=\'center\' ></td></tr></tbody></table>\",document.body.appendChild(tue_toast)}function toast(t){tue_toast.classList.remove(\"toast_anim\"),document.getElementById(\"toast_message\").innerHTML=t,tue_toast.offsetParent,tue_toast.classList.add(\"toast_anim\")}creation_tost(),tuesday.addEventListener(\"creation_dialog\",function(t){story_json[tue_story][scene].dialogs[dialog].toast&&(story_json[tue_story][scene].dialogs[dialog].toast[languare]?toast(story_json[tue_story][scene].dialogs[dialog].toast[languare]):toast(story_json[tue_story][scene].dialogs[dialog].toast))});"
907907
},"touch_show":{
908908
"name":"Show touch",
909-
"text":"displays the location of the click on the screen",
909+
"text":"displays the location of the touch or the click on the screen for a few seconds",
910910
"code":"tuesday.addEventListener(\"script_loaded\",function(){var e=document.createElement(\"style\");e.type=\"text/css\",e.innerHTML=\".cursor{background: center / contain no-repeat url('\"+story_json.parameters.touch_show[0]+\"');\"+story_json.parameters.touch_show[4]+\";transform:translate(-50%,-50%);position:absolute;display:block;animation-name:cursor_anim;animation-fill-mode:forwards;pointer-events:none;z-index:3010;}@keyframes cursor_anim{from{opacity:1;}to{opacity:0;}}\",document.getElementsByTagName(\"head\")[0].appendChild(e),tuesday.addEventListener(story_json.parameters.touch_show[6]?\"touchstart\":\"mousedown\",e=>{let t=story_json.parameters.touch_show,a=document.createElement(\"div\"),o=tuesday.getBoundingClientRect(),s=t[6]?[e.touches[0].pageX,e.touches[0].pageY]:[e.clientX,e.clientY];if(a.className=\"cursor \"+story_json.parameters.touch_show[5],a.style.width=t[1],a.style.height=t[2],a.style.animationDuration=t[3]+\"s\",story_json.parameters.resolutions){let r=story_json.parameters.resolutions;a.style.left=(r[0]/o.width>r[1]/o.height?r[0]/o.width:r[1]/o.height)*(s[0]-o.left)+\"px\",a.style.top=(r[0]/o.width>r[1]/o.height?r[0]/o.width:r[1]/o.height)*(s[1]-o.top)+\"px\"}else a.style.left=s[0]-o.left+\"px\",a.style.top=s[1]-o.top+\"px\";setTimeout(function(e){a.remove()},1e3*t[3]),tuesday.appendChild(a)})});"
911911
},"terrain_map":{
912912
"name":"Terrain map",
@@ -3235,7 +3235,7 @@
32353235
+"</select></td>"
32363236
+"</tr><tr>"
32373237
+"<td width='50px' height='40px' align='right' style='padding:0 8px;white-space:nowrap;'>Position:</td>"
3238-
+"<td colspan='2'><select id='scene_pos' oninput='scene_bg_preview.style.backgroundPosition=this.value;this.nextElementSibling.style.display=(this.selectedIndex==9)?\"inline-grid\":\"none\";this.style.width=(this.selectedIndex==9)?\"92px\":\"100%\";' style='display:inline;width:"+((c)?'92px':'100%')+";'>"
3238+
+"<td colspan='2'><select id='scene_pos' oninput='scene_bg_preview.style.backgroundPosition=(this.selectedIndex==9)?bg_x.value+\" \"+bg_y.value:this.value;this.nextElementSibling.style.display=(this.selectedIndex==9)?\"inline-grid\":\"none\";this.style.width=(this.selectedIndex==9)?\"92px\":\"100%\";' style='display:inline;width:"+((c)?'92px':'100%')+";'>"
32393239
+"<option value='center'>center</option>"
32403240
+"<option value='top left' "+((copy_arr[arr_n].background_align=='top left')?'selected':'')+">top left</option>"
32413241
+"<option value='top' "+((copy_arr[arr_n].background_align=='top')?'selected':'')+">top</option>"
@@ -3246,7 +3246,7 @@
32463246
+"<option value='bottom' "+((copy_arr[arr_n].background_align=='bottom')?'selected':'')+">bottom</option>"
32473247
+"<option value='bottom right' "+((copy_arr[arr_n].background_align=='bottom right')?'selected':'')+">bottom right</option>"
32483248
+"<option value='' "+((c)?'selected':'')+">custom</option>"
3249-
+"</select><div style='display:"+((c)?'inline-grid':'none')+";grid-template-columns:auto auto auto auto;column-gap:8px;justify-content:center;align-items:center;width: calc(100% - 92px);'>X<input id='bg_x' class='input_text' style='height:27px;' value='"+((c[0])?c[0]:"")+"' type='text'>Y<input id='bg_y' class='input_text' style='height:27px;' value='"+((c[1])?c[1]:"")+"' type='text'></div></td>"
3249+
+"</select><div style='display:"+((c)?'inline-grid':'none')+";grid-template-columns:auto auto auto auto;column-gap:8px;justify-content:center;align-items:center;width: calc(100% - 92px);'>X<input id='bg_x' class='input_text' style='height:27px;' value='"+((c[0])?c[0]:"")+"' type='text' onchange='this.value=correct_value(this.value);scene_bg_preview.style.backgroundPosition=this.value+\" \"+bg_y.value' >Y<input id='bg_y' class='input_text' style='height:27px;' value='"+((c[1])?c[1]:"")+"' type='text' onchange='this.value=correct_value(this.value);scene_bg_preview.style.backgroundPosition=bg_x.value+\" \"+this.value'></div></td>"
32503250
+"<td style='height:40px;width:40px;'></td>"
32513251
+"</tr><tr>"
32523252
+"<td width='50px' height='40px' align='right' style='padding:0 8px;white-space:nowrap;'>Class:</td>"

translate/es_tuesday_visual.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@
906906
"code":"let tue_toast;function creation_tost(){var t=document.createElement(\"style\");t.type=\"text/css\",t.innerHTML=\"#toast{position: fixed;opacity: 0;top: -96px;z-index: 1000;}.toast_anim{left: 50%;transform: translateX(-50%);animation: viwe 0.25s, stop 2s 0.25s, close 0.5s 2s linear;}@keyframes viwe {from {opacity: 0;top: 3em}to {opacity: 1;top: 3em}}@keyframes stop {from {opacity: 1;top: 3em}to {opacity: 1;top: 3em}}@keyframes close {from {opacity: 1;top: 3em}to {opacity: 0;top: -96px}}\",document.getElementsByTagName(\"head\")[0].appendChild(t),(tue_toast=document.createElement(\"div\")).id=\"toast\",tue_toast.innerHTML=\"<table border=\'0\' height=\'100%\' width=\'100%\'><tbody><tr><td id=\'toast_message\' align=\'center\' valign=\'center\' ></td></tr></tbody></table>\",document.body.appendChild(tue_toast)}function toast(t){tue_toast.classList.remove(\"toast_anim\"),document.getElementById(\"toast_message\").innerHTML=t,tue_toast.offsetParent,tue_toast.classList.add(\"toast_anim\")}creation_tost(),tuesday.addEventListener(\"creation_dialog\",function(t){story_json[tue_story][scene].dialogs[dialog].toast&&(story_json[tue_story][scene].dialogs[dialog].toast[languare]?toast(story_json[tue_story][scene].dialogs[dialog].toast[languare]):toast(story_json[tue_story][scene].dialogs[dialog].toast))});"
907907
},"touch_show":{
908908
"name":"Show touch",
909-
"text":"displays the location of the click on the screen",
909+
"text":"displays the location of the touch or the click on the screen for a few seconds",
910910
"code":"tuesday.addEventListener(\"script_loaded\",function(){var e=document.createElement(\"style\");e.type=\"text/css\",e.innerHTML=\".cursor{background: center / contain no-repeat url('\"+story_json.parameters.touch_show[0]+\"');\"+story_json.parameters.touch_show[4]+\";transform:translate(-50%,-50%);position:absolute;display:block;animation-name:cursor_anim;animation-fill-mode:forwards;pointer-events:none;z-index:3010;}@keyframes cursor_anim{from{opacity:1;}to{opacity:0;}}\",document.getElementsByTagName(\"head\")[0].appendChild(e),tuesday.addEventListener(story_json.parameters.touch_show[6]?\"touchstart\":\"mousedown\",e=>{let t=story_json.parameters.touch_show,a=document.createElement(\"div\"),o=tuesday.getBoundingClientRect(),s=t[6]?[e.touches[0].pageX,e.touches[0].pageY]:[e.clientX,e.clientY];if(a.className=\"cursor \"+story_json.parameters.touch_show[5],a.style.width=t[1],a.style.height=t[2],a.style.animationDuration=t[3]+\"s\",story_json.parameters.resolutions){let r=story_json.parameters.resolutions;a.style.left=(r[0]/o.width>r[1]/o.height?r[0]/o.width:r[1]/o.height)*(s[0]-o.left)+\"px\",a.style.top=(r[0]/o.width>r[1]/o.height?r[0]/o.width:r[1]/o.height)*(s[1]-o.top)+\"px\"}else a.style.left=s[0]-o.left+\"px\",a.style.top=s[1]-o.top+\"px\";setTimeout(function(e){a.remove()},1e3*t[3]),tuesday.appendChild(a)})});"
911911
},"terrain_map":{
912912
"name":"Mapa del terreno",
@@ -3235,7 +3235,7 @@
32353235
+"</select></td>"
32363236
+"</tr><tr>"
32373237
+"<td width='50px' height='40px' align='right' style='padding:0 8px;white-space:nowrap;'>Posición:</td>"
3238-
+"<td colspan='2'><select id='scene_pos' oninput='scene_bg_preview.style.backgroundPosition=this.value;this.nextElementSibling.style.display=(this.selectedIndex==9)?\"inline-grid\":\"none\";this.style.width=(this.selectedIndex==9)?\"92px\":\"100%\";' style='display:inline;width:"+((c)?'92px':'100%')+";'>"
3238+
+"<td colspan='2'><select id='scene_pos' oninput='scene_bg_preview.style.backgroundPosition=(this.selectedIndex==9)?bg_x.value+\" \"+bg_y.value:this.value;this.nextElementSibling.style.display=(this.selectedIndex==9)?\"inline-grid\":\"none\";this.style.width=(this.selectedIndex==9)?\"92px\":\"100%\";' style='display:inline;width:"+((c)?'92px':'100%')+";'>"
32393239
+"<option value='center'>centro</option>"
32403240
+"<option value='top left' "+((copy_arr[arr_n].background_align=='top left')?'selected':'')+">superior izquierda</option>"
32413241
+"<option value='top' "+((copy_arr[arr_n].background_align=='top')?'selected':'')+">superior</option>"
@@ -3246,7 +3246,7 @@
32463246
+"<option value='bottom' "+((copy_arr[arr_n].background_align=='bottom')?'selected':'')+">inferior</option>"
32473247
+"<option value='bottom right' "+((copy_arr[arr_n].background_align=='bottom right')?'selected':'')+">Inferior derecha</option>"
32483248
+"<option value='' "+((c)?'selected':'')+">custom</option>"
3249-
+"</select><div style='display:"+((c)?'inline-grid':'none')+";grid-template-columns:auto auto auto auto;column-gap:8px;justify-content:center;align-items:center;width: calc(100% - 92px);'>X<input id='bg_x' class='input_text' style='height:27px;' value='"+((c[0])?c[0]:"")+"' type='text'>Y<input id='bg_y' class='input_text' style='height:27px;' value='"+((c[1])?c[1]:"")+"' type='text'></div></td>"
3249+
+"</select><div style='display:"+((c)?'inline-grid':'none')+";grid-template-columns:auto auto auto auto;column-gap:8px;justify-content:center;align-items:center;width: calc(100% - 92px);'>X<input id='bg_x' class='input_text' style='height:27px;' value='"+((c[0])?c[0]:"")+"' type='text' onchange='this.value=correct_value(this.value);scene_bg_preview.style.backgroundPosition=this.value+\" \"+bg_y.value' >Y<input id='bg_y' class='input_text' style='height:27px;' value='"+((c[1])?c[1]:"")+"' type='text' onchange='this.value=correct_value(this.value);scene_bg_preview.style.backgroundPosition=bg_x.value+\" \"+this.value'></div></td>"
32503250
+"<td style='height:40px;width:40px;'></td>"
32513251
+"</tr><tr>"
32523252
+"<td width='50px' height='40px' align='right' style='padding:0 8px;white-space:nowrap;'>Class:</td>"

0 commit comments

Comments
 (0)