From 9259cb901a0dfe9ea9928a4fae36428c26cc73e3 Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Sun, 22 Dec 2024 14:42:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A7=E6=83=85=E9=9F=B3=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _server/MotaAction.g4 | 6 +- _server/MotaActionParser.js | 2 +- project/events.js | 146 ++++++++++++++++++++++++++++++++++++ project/plugins.js | 48 ++++++++++-- 4 files changed, 192 insertions(+), 10 deletions(-) diff --git a/_server/MotaAction.g4 b/_server/MotaAction.g4 index be6a618..7b29faf 100644 --- a/_server/MotaAction.g4 +++ b/_server/MotaAction.g4 @@ -1062,6 +1062,7 @@ return code+',\n'; cgtext_s : '背景' EvalString? '移除对话框' Bool? '头像' EvalString?'名字' EvalString?'坐标PX' Number'打字间隔' Int? BGNL? Newline + '音频文件(需在全塔属性——使用音效注册)'EvalString? BGNL? Newline EvalString? BGNL? Newline textcgDrawingList*? Newline @@ -1069,10 +1070,11 @@ cgtext_s tooltip : cgtext:显示一段包含cg的文字(剧情) helpUrl : /_docs/#/instruction allImages : ['EvalString_0','EvalString_1'] -default : ["bg_5043.png","face_050445.png",false,"菲奥奈",-300,0,"这句话显示在对话框内",[{ "name":"tati_050145a.png" , "px": 100,"filter":false }]] +allSounds : ['EvalString_3'] +default : ["bg_5043.png","face_050445.png",false,"菲奥奈",-300,0,"","这句话显示在对话框内",[{ "name":"tati_050145a.png" , "px": 100,"filter":false }]] var head ='{ "name": "'+EvalString_1+'", "px": '+Number_0+' }' var list=',"bodyList": [\n'+textcgDrawingList_0+'\n]' -var code = '{"type": "cgtext", "bg":"'+EvalString_0+'","WindowSkin":'+Bool_0+',"head":'+head+' ,"name":"'+EvalString_2+'","time":'+Int_0+',"text": "'+EvalString_3+'"'+list+' },\n'; +var code = '{"type": "cgtext", "bg":"'+EvalString_0+'","WindowSkin":'+Bool_0+',"head":'+head+' ,"name":"'+EvalString_2+'","time":'+Int_0+',"sound":"'+EvalString_3+'","text": "'+EvalString_4+'"'+list+' },\n'; return code; */; textcgDrawingList diff --git a/_server/MotaActionParser.js b/_server/MotaActionParser.js index 0df5eed..c77b22f 100644 --- a/_server/MotaActionParser.js +++ b/_server/MotaActionParser.js @@ -315,7 +315,7 @@ ActionParser.prototype.parseAction = function() { return res; } this.next = MotaActionBlocks['cgtext_s'].xmlText([ - data.bg,data.WindowSkin,data.head.name, data.name||"", data.head.px||-300,data.time, data.text,buildcgDrawing(data.bodyList), this.next]); + data.bg,data.WindowSkin,data.head.name, data.name||"", data.head.px||-300,data.time, data.sound,data.text,buildcgDrawing(data.bodyList), this.next]); break; case "moveTextBox": // 移动对话框 diff --git a/project/events.js b/project/events.js index fff1b25..2413e51 100644 --- a/project/events.js +++ b/project/events.js @@ -185,6 +185,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "这些天,街道不曾下雨。", "bodyList": [ { @@ -204,6 +205,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "所以,那浸湿地面的,定是那些女孩们流落的鲜血无疑。", "bodyList": [ { @@ -223,6 +225,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我蹲在充斥着铁锈味般恶臭的小巷中,悠闲地如是想着。", "bodyList": [ { @@ -242,6 +245,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "扑哧。", "bodyList": [ { @@ -261,6 +265,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "耳旁再次响起象征着某个女孩子死去的声音。", "bodyList": [ { @@ -280,6 +285,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "再一次——", "bodyList": [ { @@ -299,6 +305,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "再一次。", "bodyList": [ { @@ -318,6 +325,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "女子们被肢解成单纯的肉块。", "bodyList": [ { @@ -337,6 +345,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我任由流下的血浸满全身,屏住自己的呼吸。", "bodyList": [ { @@ -356,6 +365,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "祈求自己能拥有从猎人手中逃脱的幸运。", "bodyList": [ { @@ -375,6 +385,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "扑哧。", "bodyList": [ { @@ -394,6 +405,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "直到刚才,我们还坐在去往娼馆的马车的路上。", "bodyList": [ { @@ -413,6 +425,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "而在这之中的某些人,已经不在这个世上了。", "bodyList": [ { @@ -432,6 +445,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "不,应该把“某些”换成“几乎所有”才更为恰当吧。", "bodyList": [ { @@ -451,6 +465,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "恐怕,不久之后我也会变成小巷中血腥的装饰品。", "bodyList": [ { @@ -470,6 +485,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我是为了得到这种死法,才辛苦苟活至今的吗?", "bodyList": [ { @@ -489,6 +505,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "来个人告诉我啊——", "bodyList": [ { @@ -508,6 +525,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "谁都好。", "bodyList": [ { @@ -527,6 +545,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "来人啊!!", "bodyList": [ { @@ -546,6 +565,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "少女", "time": 50, + "sound": "", "text": "「呃······!?」", "bodyList": [ { @@ -565,6 +585,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "漆黑的物体充斥了我的整个视野", "bodyList": [ { @@ -584,6 +605,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我很快意识到,那是只很大的脚。", "bodyList": [ { @@ -603,6 +625,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "必须要出声求救。", "bodyList": [ { @@ -622,6 +645,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "可是,耳中却只能听到自己的牙关不停交战的声音。", "bodyList": [ { @@ -641,6 +665,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我是如此的无助。", "bodyList": [ { @@ -660,6 +685,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "逃跑也好,道歉也罢。", "bodyList": [ { @@ -679,6 +705,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "就连抬头看一眼将要杀掉我的人的面孔都做不到。", "bodyList": [ { @@ -698,6 +725,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "少女", "time": 50, + "sound": "", "text": "「······被杀」", "bodyList": [ { @@ -717,6 +745,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "会被杀。", "bodyList": [ { @@ -736,6 +765,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "会被杀!!", "bodyList": [ { @@ -755,6 +785,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "来自内心深处的冰冷预感,渐渐地在体内蔓延开来。", "bodyList": [ { @@ -774,6 +805,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "少女", "time": 50, + "sound": "", "text": "「不,不要······」", "bodyList": [ { @@ -793,6 +825,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "浮游都市,《诺瓦斯·艾蒂尔》。", "bodyList": [ { @@ -812,6 +845,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "《特别受灾地区》——", "bodyList": [ { @@ -831,6 +865,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "通称,《牢狱》", "bodyList": [ { @@ -850,6 +885,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "是被险峻的峭壁环绕,与世隔绝的,都市的最底部。", "bodyList": [ { @@ -869,6 +905,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「放开我!」", "bodyList": [ { @@ -888,6 +925,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「我只是在帮那个女人而已!」", "bodyList": [ { @@ -907,6 +945,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「你们没听到吗!?」", "bodyList": [ { @@ -926,6 +965,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「她是被受骗才会被卖到娼馆来的」", "bodyList": [ { @@ -945,6 +985,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「用肮脏的手段把钱借给她父母的,就是你们这些家伙吧!?」", "bodyList": [ { @@ -964,6 +1005,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「给我说些什么啊」", "bodyList": [ { @@ -983,6 +1025,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "男人声嘶力竭地叫着。", "bodyList": [ { @@ -1002,6 +1045,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "作为对他的回应,我在他身上把麻绳又缠了一圈。", "bodyList": [ { @@ -1021,6 +1065,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "真有精神啊。", "bodyList": [ { @@ -1040,6 +1085,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "明明被抓前还只能害怕地颤抖,在被抓的现在就又喧闹起来了。", "bodyList": [ { @@ -1059,6 +1105,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "再怎么说,这也是个想和娼妇私奔的男人啊······", "bodyList": [ { @@ -1078,6 +1125,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "嘛,那种事怎么都好。", "bodyList": [ { @@ -1097,6 +1145,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「这些话等到了娼馆再说吧」", "bodyList": [ { @@ -1116,6 +1165,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「我来抓你,只是受雇于人而已」", "bodyList": [ { @@ -1135,6 +1185,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我走进娼馆《莉莉乌姆》的接待室。", "bodyList": [ { @@ -1154,6 +1205,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "正在桌旁整理账簿的奥兹停下手头的工作,抬起头向我看来。", "bodyList": [ { @@ -1173,6 +1225,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「这不是凯伊姆先生吗,辛苦了」", "bodyList": [ { @@ -1192,6 +1245,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「委托已经完成了吗?」", "bodyList": [ { @@ -1211,6 +1265,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「啊啊,是这家伙没错吧」", "bodyList": [ { @@ -1230,6 +1285,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "奥兹用只要接触到就能杀人般的眼神在男人脸上搜过。", "bodyList": [ { @@ -1249,6 +1305,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「没错,就是这个人」", "bodyList": [ { @@ -1268,6 +1325,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「是么」", "bodyList": [ { @@ -1287,6 +1345,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我把男人交给了奥兹。", "bodyList": [ { @@ -1306,6 +1365,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "这样委托就完成了。", "bodyList": [ { @@ -1325,6 +1385,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "毫无新意,司空见惯的委托。", "bodyList": [ { @@ -1344,6 +1405,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「你,你们要对我做什么」", "bodyList": [ { @@ -1363,6 +1425,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「······」", "bodyList": [ { @@ -1382,6 +1445,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "奥兹用一个眼神,就让男人闭上了嘴。", "bodyList": [ { @@ -1401,6 +1465,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "然后,向我这边转过身来。", "bodyList": [ { @@ -1420,6 +1485,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「抱歉啊,总是麻烦你去做这些无聊的事」", "bodyList": [ { @@ -1439,6 +1505,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「都怪我们这边的年轻人太没用」", "bodyList": [ { @@ -1458,6 +1525,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「客套话就免了」", "bodyList": [ { @@ -1477,6 +1545,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「这还真是失礼了」", "bodyList": [ { @@ -1496,6 +1565,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「喂,来个人」", "bodyList": [ { @@ -1515,6 +1585,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "很快,一个手下便应声就从娼馆内部走出。", "bodyList": [ { @@ -1534,6 +1605,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "光头男人", "time": 50, + "sound": "", "text": "「是」", "bodyList": [ { @@ -1553,6 +1625,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「凯伊姆先生做完工作回来了」", "bodyList": [ { @@ -1572,6 +1645,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "光头男人", "time": 50, + "sound": "", "text": "「是,是,那个······」", "bodyList": [ { @@ -1591,6 +1665,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「我是要你拿些酒来,这个蠢材!」", "bodyList": [ { @@ -1610,6 +1685,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "喀!", "bodyList": [ { @@ -1629,6 +1705,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "奥兹扔出的烟灰缸砸中了手下的额头。", "bodyList": [ { @@ -1648,6 +1725,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "鲜血四溅。", "bodyList": [ { @@ -1667,6 +1745,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「不用这么麻烦」", "bodyList": [ { @@ -1686,6 +1765,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「我接下来要去《菲诺列塔》」", "bodyList": [ { @@ -1705,6 +1785,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「喔唷」", "bodyList": [ { @@ -1724,6 +1805,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「既然如此,我就不留您在这里喝难饮的劣质酒了」", "bodyList": [ { @@ -1743,6 +1825,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "奥兹斜眼看着正捂住额头呻吟的手下,轻描淡写地说道。", "bodyList": [ { @@ -1762,6 +1845,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「用这些钱去买药」", "bodyList": [ { @@ -1781,6 +1865,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我将几枚铜钱仍在那个手下的身前。", "bodyList": [ { @@ -1800,6 +1885,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「凯伊姆先生,不用对他们这么好」", "bodyList": [ { @@ -1819,6 +1905,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「无妨」", "bodyList": [ { @@ -1838,6 +1925,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「话说回来,那个要落跑的女人呢?」", "bodyList": [ { @@ -1857,6 +1945,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「我把她交给那些年轻人了,现在应该正在体会人生的严苛吧」", "bodyList": [ { @@ -1876,6 +1965,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「正好,趁此机会凯伊姆先生也来享受一番如何?」", "bodyList": [ { @@ -1895,6 +1985,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "奥兹脸上露出阴惨的笑容。", "bodyList": [ { @@ -1914,6 +2005,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "这个男人虽说很优秀,但也有这种施虐的嗜好。", "bodyList": [ { @@ -1933,6 +2025,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「你,你们这些家伙,要对她做什么!?」", "bodyList": [ { @@ -1952,6 +2045,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "沉默的男人触电般猛地开口说道。", "bodyList": [ { @@ -1971,6 +2065,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "咣!", "bodyList": [ { @@ -1990,6 +2085,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "奥兹给了他一拳。", "bodyList": [ { @@ -2009,6 +2105,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "一击即倒。", "bodyList": [ { @@ -2028,6 +2125,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "喀,咚,咯!", "bodyList": [ { @@ -2047,6 +2145,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "奥兹毫不留情地向男人的脸上踩去。", "bodyList": [ { @@ -2066,6 +2165,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「咕······呃咳······」", "bodyList": [ { @@ -2085,6 +2185,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "折断的牙齿伴着血泡被吐出。", "bodyList": [ { @@ -2104,6 +2205,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "这份白色在鲜红色的液体中格外显眼。", "bodyList": [ { @@ -2123,6 +2225,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「你们以为做出这种事······卫兵会坐视不理吗······」", "bodyList": [ { @@ -2142,6 +2245,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「啊啊,不会坐视不理的」", "bodyList": [ { @@ -2161,6 +2265,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「应该会拿出你的钱包,和我们商量如何瓜分吧」", "bodyList": [ { @@ -2180,6 +2285,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「那,那种事······」", "bodyList": [ { @@ -2199,6 +2305,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "这在牢狱是理所当然的事。", "bodyList": [ { @@ -2218,6 +2325,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「怎么,头一回来牢狱么?」", "bodyList": [ { @@ -2237,6 +2345,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "男人点了点头。", "bodyList": [ { @@ -2256,6 +2365,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「为了被骗的女人而来到牢狱,真是个规矩人啊」", "bodyList": [ { @@ -2275,6 +2385,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「······前提是,被骗的人不是你」", "bodyList": [ { @@ -2294,6 +2405,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「你说······我被骗了?」", "bodyList": [ { @@ -2313,6 +2425,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "年轻人", "time": 50, + "sound": "", "text": "「那,那是怎么回事!?」", "bodyList": [ { @@ -2332,6 +2445,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「不用急,今天晚上会好好告诉你的」", "bodyList": [ { @@ -2351,6 +2465,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "奥兹抓起男人的脸。", "bodyList": [ { @@ -2370,6 +2485,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "为引诱客人的怜悯之心而装纯,是娼妇的惯用手段。", "bodyList": [ { @@ -2389,6 +2505,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "双亲被骗而借钱,结果作为抵押而将自己卖到这里,这是典型的说法。", "bodyList": [ { @@ -2408,6 +2525,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "如果只是头脑发热而成为常客也就罢了,这次的男人热血过头,居然想出了要带女人私奔的计划。", "bodyList": [ { @@ -2427,6 +2545,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "虽然女人半开玩笑地予以拒绝,但不知天高地厚的这家伙还是拉着她逃跑了。", "bodyList": [ { @@ -2446,6 +2565,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "不过,想要逃脱追击本来就是不可能的任务。", "bodyList": [ { @@ -2465,6 +2585,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "但即便如此,这种事情还是会一再的出现。", "bodyList": [ { @@ -2484,6 +2605,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "说谎的女人和被骗的男人。", "bodyList": [ { @@ -2503,6 +2625,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "在娼馆街,这是令人看到生厌的日常的风景。", "bodyList": [ { @@ -2522,6 +2645,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「我要走了」", "bodyList": [ { @@ -2541,6 +2665,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「好的,下次再麻烦您」", "bodyList": [ { @@ -2560,6 +2685,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "奥兹", "time": 50, + "sound": "", "text": "「之后吉克先生会将谢礼交给您的」", "bodyList": [ { @@ -2579,6 +2705,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「啊啊」", "bodyList": [ { @@ -2598,6 +2725,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "我背向奥兹走出娼馆。", "bodyList": [ { @@ -2617,6 +2745,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "虽说是已经做惯了的工作,但托从一大早就开始搜索的福,喉咙还是相当的渴。", "bodyList": [ { @@ -2636,6 +2765,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "去菲诺列塔来一杯吧。", "bodyList": [ { @@ -2655,6 +2785,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "菲诺列塔是建在娼馆街入口附近的酒馆。", "bodyList": [ { @@ -2674,6 +2805,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "也是我除了再自己家意外,呆的时间最多的地方。", "bodyList": [ { @@ -2693,6 +2825,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "店长是梅尔特。", "bodyList": [ { @@ -2712,6 +2845,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "曾经是娼馆街最有人气的娼妇,被赎身后成为了酒馆的主人。", "bodyList": [ { @@ -2731,6 +2865,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「······?」", "bodyList": [ { @@ -2750,6 +2885,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "从远方传来微弱的歌声。", "bodyList": [ { @@ -2769,6 +2905,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "是关卡广场的方向。", "bodyList": [ { @@ -2788,6 +2925,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "对了。", "bodyList": [ { @@ -2807,6 +2945,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "今天有觐见圣女的仪式。", "bodyList": [ { @@ -2826,6 +2965,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "当代的圣女伊莲——", "bodyList": [ { @@ -2845,6 +2985,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "俗称《盲眼之圣女》,据说即使在历代的圣女中,人气也是数一数二的。", "bodyList": [ { @@ -2864,6 +3005,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "广场上的人估计相当多吧。", "bodyList": [ { @@ -2883,6 +3025,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "虽然我也想去看看她长什么样,不过要在人潮中挤来挤去就免了。", "bodyList": [ { @@ -2902,6 +3045,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "还是老老实实去菲诺列塔喝烧酒吧。", "bodyList": [ { @@ -2921,6 +3065,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "", "time": 50, + "sound": "", "text": "正当我这样想着的时候,一个身影自小巷的那头走来。", "bodyList": [ { @@ -2940,6 +3085,7 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = }, "name": "凯伊姆", "time": 50, + "sound": "", "text": "「艾莉斯」", "bodyList": [ { diff --git a/project/plugins.js b/project/plugins.js index 7c4d4c8..f0f66b1 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -48,6 +48,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.ui.cgText.text = data.text; core.ui.cgText.time = data.time; core.ui.cgText.WindowSkin = data.WindowSkin + core.ui.cgText.sound = data.sound || ""; core.ui.cgText.bodyList = core.clone(data.bodyList); main.dom.cgText.style.display = 'block'; core.ui.cgText.update() @@ -2934,7 +2935,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = data = { "type": "text", "text": data }; // 该事件块已经被禁用 if (data._disabled) return core.doAction(); - if (data.type !== 'cgtext') core.unregisterAnimationFrame("skip") + if (data.type !== 'cgtext') { + core.unregisterAnimationFrame("skip") + core.setFlag("skip", false) + } data.floorId = data.floorId || floorId; core.status.event.data.type = data.type; this.doEvent(data, x, y, prefix); @@ -7273,6 +7277,7 @@ core.plugin.animate = { "head": { "name": "face_050445.png", "px": -300 }, "name": "菲奥奈", "time": 0, + "sound": "", "text": "这句话显示在对话框内", "bodyList": [ { "name": "tati_050145a.png", "px": 100, "filter": false } @@ -9675,7 +9680,17 @@ core.plugin.animate = { cg.onmouseup = function (e) { //鼠标抬起 try { + if (!core.isPlaying()) return false; core.unregisterAnimationFrame("skip") + let a = core.getFlag("skip", false) + core.setFlag("skip", false) + if (a) { + const data = core.clone(core.status.event.data.current); + + core.insertAction(data); + + core.doAction() + } } catch (ee) { console.error(ee); } @@ -9698,6 +9713,16 @@ core.plugin.animate = { if (!core.isPlaying()) return false; core.unregisterAnimationFrame("skip") + core.setFlag("skip", false) + let a = core.getFlag("skip", false) + core.setFlag("skip", false) + if (a) { + const data = core.clone(core.status.event.data.current); + + core.insertAction(data); + + core.doAction() + } } catch (ee) { console.error(ee); } @@ -9725,6 +9750,7 @@ core.plugin.animate = { this.text = '' this.time = 0; this.WindowSkin = false; + this.sound = ""; } click(px, py) { //点击效果 @@ -9754,6 +9780,7 @@ core.plugin.animate = { if (timestamp > time + 100) { time = timestamp if (core.status.event.id == 'action' && core.status.event.data.type == 'cgtext') { + core.setFlag("skip", true) main.dom.cgText.style.display = "none" core.doAction() } @@ -9766,11 +9793,10 @@ core.plugin.animate = { data.showAll = true; data.time = 0 data.text = data.text.replace(/(\\(z))(\[.*?])?/g, ""); //去除打字机暂停效果 + data.sound = "" core.insertAction(data); - core.doAction() - } else if ((core.domStyle.isVertical && inRect(pos, saveboxVertical) && !this.WindowSkin) || (!core.domStyle.isVertical && !this.WindowSkin && inRect(pos, savebox))) { //存档 auto = false; if (core.status.event.animateUI) return; @@ -9778,6 +9804,7 @@ core.plugin.animate = { const current = core.clone(core.status.event.data.current) current.showAll = true; current.time = 0 + current.sound = "" current.text = current.text.replace(/(\\(z))(\[.*?])?/g, ""); //去除当前事件所有打字机效果 cg.style.display = "none" const data = [{ 'type': 'callSave' }, current] //插入存档事件 @@ -9796,7 +9823,7 @@ core.plugin.animate = { data.showAll = true; data.time = 0 data.text = data.text.replace(/(\\(z))(\[.*?])?/g, ""); //去除打字机暂停效果 - + data.sound = ""; core.insertAction(data); core.doAction(); return; @@ -9900,7 +9927,7 @@ core.plugin.animate = { if (config.time == 0) { while (_drawNext()); - if (auto && !core.ui.cgText.WindowSkin) { + if (auto && !this.WindowSkin && !this.sound) { setTimeout(() => { if (auto) core.doAction() }, 2000) } } else { @@ -9909,7 +9936,7 @@ core.plugin.animate = { if (!_drawNext()) { clearInterval(core.status.event.interval); core.status.event.interval = null; - if (auto && !core.ui.cgText.WindowSkin) setTimeout(() => { if (auto) core.doAction() }, 2000) + if (auto && !this.WindowSkin && !this.sound) setTimeout(() => { if (auto) core.doAction() }, 2000) } }, config.time); } @@ -9963,7 +9990,14 @@ core.plugin.animate = { core.fillBoldText(ctx, autoText, 1722, 966, '#FFFFFF', '#000000', "bold 48px Verdana") } if (this.name) core.fillBoldText(ctx, `【${this.name}】`, 500, 880, '#FFFFFF', '#000000', "bold 48px Verdana") //绘制名字 - if (this.text) { //绘制对话 + if (this.sound && core.material.sounds[this.sound] && !core.getFlag("skip", false)) { + core.playSound(this.sound, null, () => { + if (auto && !this.WindowSkin) { + setTimeout(() => { if (auto) core.doAction() }, 2000) + } + }) + } + if (this.text && !core.getFlag("skip", false)) { //绘制对话 this.drawTextContent(ctx, this.text, { left: 500, top: 950,