修改MT10、huxiao1、2、3剧情表演

添加仿RM渐变插件,同时注册几张需要的图片
自绘状态栏16-22行新增一个在一定条件下(flag:Memories_grayscale)将卷轴变为灰色且隐藏属性的代码,注册一张图片(caidan_grayscale.png)
This commit is contained in:
爱的天使Erdnase 2022-11-15 21:00:03 +08:00
parent 1cb5134794
commit fc4e4a90f4
15 changed files with 402 additions and 287 deletions

View File

@ -207,6 +207,11 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"00003.png",
"00004.png",
"00005.png",
"008-Line02.png",
"009-Random01.png",
"010-Random02.png",
"013-Square01.png",
"020-Flat01.png",
"0cheating.png",
"0easy.png",
"0hard.png",
@ -259,6 +264,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"black.png",
"brave.png",
"caidan.png",
"caidan_grayscale.png",
"cheating.png",
"d.png",
"dibu.png",
@ -353,12 +359,14 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"shengfen.png",
"shengxiao.png",
"shijian.png",
"shijuexiaoguo_kuanpingheibian.png",
"shu.png",
"status.png",
"status2.png",
"tawaijiuren.png",
"terrains.png",
"tiantawai.png",
"tr003.jpg",
"wangyangdan.png",
"wangyangqianxiao.png",
"wangyangyouyu.png",

View File

@ -100,7 +100,7 @@ main.floors.MT10=
null
],
"loc": [
80,
300,
50,
"291.2",
"466.4"
@ -185,17 +185,6 @@ main.floors.MT10=
"code": 2,
"time": 0
},
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 500,
"keep": true
},
{
"type": "setVolume",
"value": 0,
@ -214,6 +203,10 @@ main.floors.MT10=
"type": "hide",
"time": 0
},
{
"type": "function",
"function": "function(){\ncore.maskPrepare();\n}"
},
{
"type": "changeFloor",
"floorId": "huxiao1",
@ -236,6 +229,20 @@ main.floors.MT10=
}
],
"1,0": [
{
"type": "setValue",
"name": "flag:Memories_grayscale",
"value": "false"
},
{
"type": "setGlobalAttribute",
"name": "borderColor",
"value": "204,204,204,1"
},
{
"type": "function",
"function": "function(){\ncore.maskFliter(500,'013-Square01.png')\n}"
},
{
"type": "playBgm",
"name": "misjiqing.mp3"
@ -244,6 +251,26 @@ main.floors.MT10=
"type": "if",
"condition": "(flag:skip10FStory != 1)",
"true": [
{
"type": "setText",
"position": "down",
"offset": 0,
"align": "left",
"title": [
255,
255,
255,
1
],
"text": [
255,
255,
255,
1
],
"background": "winskin.png",
"time": 20
},
{
"type": "setCurtain",
"color": [
@ -277,7 +304,7 @@ main.floors.MT10=
"opacity": 1,
"time": 0
},
"\t[邵虎]怎么了.......快说啊.......",
"\t[邵虎]怎么了......快说啊......",
{
"type": "hideImage",
"code": 1,
@ -312,7 +339,7 @@ main.floors.MT10=
"type": "sleep",
"time": 1000
},
"\t[嗜骨].....公主被擒........联盟的计划有变.....如果天枢一战........将是我们妖社翻身的时候.......",
"\t[嗜骨]......公主被擒.....联盟的计划有变...\n如果天枢一战......将是我们妖社翻身的时候....",
{
"type": "sleep",
"time": 1000

View File

@ -10,7 +10,7 @@ main.floors.huxiao1=
{
"name": "huxiao1.png",
"canvas": "bg",
"x": 0,
"x": 32,
"y": 0
}
],
@ -19,75 +19,102 @@ main.floors.huxiao1=
"events": {
"1,0": [
{
"type": "setCurtain",
"time": 500
"type": "showImage2",
"code": 1,
"image": "shijuexiaoguo_kuanpingheibian.png",
"sloc": [
0,
0,
null
],
"loc": [
0,
0,
null
],
"opacity": 1,
"time": 0
},
{
"type": "function",
"function": "function(){\ncore.maskFliter(500,'013-Square01.png')\n}"
},
{
"type": "comment",
"text": "仿RM渐变"
},
{
"type": "setValue",
"name": "flag:Memories_grayscale",
"value": "ture"
},
{
"type": "comment",
"text": "卷轴灰度"
},
{
"type": "setText",
"position": "up",
"position": "down",
"offset": -24,
"align": "left",
"background": [
0,
0,
0,
1
]
},
"\r[red]从今天起,嗜骨,你就是我们妖社的中坚力量了。",
"\r[red]你很好强,各方面素质都很不错。",
"\r[red]我相信你能够胜任你的位置。",
"\r[purple]魔龙大人!我嗜骨就算天打雷劈也要严守岗位!",
"\r[purple]不论来者是强还是弱!只要我还有口气在!",
"\r[purple]就绝对不允许联盟和外人对我们妖社不利!",
"\r[purple].........",
"\r[red]........但愿吧。",
"\r[red]嗜骨........你知道我们为什么要暗地与联盟作时吗",
"\r[purple]....这.......因为他们是........",
"\r[red]不........天塔本身就不是为了我们魔物而建造的。",
"\r[red]建造天塔的本性在于封印【那个人】",
"\r[red]我们只是在天塔里后出现的罢了。",
"\r[purple].............",
"\r[red]刚开始我们魔物族群很弱小...........",
"\r[red]【那个人】本来是主张把我们赶尽杀绝的。",
"\r[purple]........啊.........",
"\r[red]....但她阻止了他......并救下了奄奄一息的我。",
"\r[purple].....您在说...谁?她.....是谁?",
"\r[red]她是个善良的人.......我不想让她卷入这场纷争。",
"\r[purple]...........",
"\r[red]如果没有她..........恐怕现在天塔就不会是这个样子......",
"\r[red]..........",
"\r[red]你现在知道我们妖社为什么要暗地与联盟做对了吧?",
"\r[purple.........",
"\r[purple]......因为我们魔物也要生存.........",
"\r[purple]我们必须有足够抗衡联盟的力量才行.......",
"\r[red]没错........现在联盟并不把主要心思放在我们身上",
"\r[red]这正是我们拓展地位的好时机。",
"\r[purple]啊...他们关注的是......天枢城么......",
"\r[red]没错.....嗜骨......你了解到肩上的重任了吧。",
"\r[red]你的那几句保证......可不能只是说说而已啊......",
"\r[purple]........",
"\r[red].....对了......在这里还习惯吧?",
"\r[red]和毒尾相处的如何?",
"\r[purple].......",
"\r[purple]......这个........还好吧。。",
"\r[red]......呵呵,别急。终究要在一起生活。",
"\r[red]......互相理解和包容,毕竟才是最重要的。",
"\r[purple].....是.......",
"\r[red].......对了.......还有一个问题,必须提醒你一下。",
"\r[red]你在天塔上面一定会受到海骑士的管制吧",
"\r[red]要小心点那个家伙.....",
"\r[red]那家伙精得很,别说漏了什么......",
"\r[purple]魔龙大人请放心,我一定不辜负您的重托!",
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
0
],
"time": 500,
"keep": true
"textfont": 20
},
{
"type": "setGlobalAttribute",
"name": "borderColor",
"value": "null"
},
"\r[#fb928b]从今天起,嗜骨,你就是我们妖社的中坚力量了。",
"\r[#fb928b]你很好强,各方面素质都很不错。",
"\r[#fb928b]我相信你能够胜任你的位置。",
"\r[#f49af1]魔龙大人!我嗜骨就算天打雷劈也要严守岗位!",
"\r[#f49af1]不论来者是强还是弱!只要我还有口气在!",
"\r[#f49af1]就绝对不允许联盟和外人对我们妖社不利!",
"\r[#f49af1].........",
"\r[#fb928b]........但愿吧。",
"\r[#fb928b]嗜骨........你知道我们为什么要暗地与联盟作时吗",
"\r[#f49af1]....这.......因为他们是........",
"\r[#fb928b]不........天塔本身就不是为了我们魔物而建造的。",
"\r[#fb928b]建造天塔的本性在于封印【那个人】",
"\r[#fb928b]我们只是在天塔里后出现的罢了。",
"\r[#f49af1].............",
"\r[#fb928b]刚开始我们魔物族群很弱小...........",
"\r[#fb928b]【那个人】本来是主张把我们赶尽杀绝的。",
"\r[#f49af1]........啊.........",
"\r[#fb928b]....但她阻止了他......并救下了奄奄一息的我。",
"\r[#f49af1].....您在说...谁?她.....是谁?",
"\r[#fb928b]她是个善良的人.......我不想让她卷入这场纷争。",
"\r[#f49af1]...........",
"\r[#fb928b]如果没有她..........恐怕现在天塔就不会是这个样子......",
"\r[#fb928b]..........",
"\r[#fb928b]你现在知道我们妖社为什么要暗地与联盟做对了吧?",
"\r[#f49af1].........",
"\r[#f49af1]......因为我们魔物也要生存.........",
"\r[#f49af1]我们必须有足够抗衡联盟的力量才行.......",
"\r[#fb928b]没错........现在联盟并不把主要心思放在我们身上",
"\r[#fb928b]这正是我们拓展地位的好时机。",
"\r[#f49af1]啊...他们关注的是......天枢城么......",
"\r[#fb928b]没错.....嗜骨......你了解到肩上的重任了吧。",
"\r[#fb928b]你的那几句保证......可不能只是说说而已啊......",
"\r[#f49af1]........",
"\r[#fb928b].....对了......在这里还习惯吧?",
"\r[#fb928b]和毒尾相处的如何?",
"\r[#f49af1].......",
"\r[#f49af1]......这个........还好吧。。",
"\r[#fb928b]......呵呵,别急。终究要在一起生活。",
"\r[#fb928b]......互相理解和包容,毕竟才是最重要的。",
"\r[#f49af1].....是.......",
"\r[#fb928b].......对了.......还有一个问题,必须提醒你一下。",
"\r[#fb928b]你在天塔上面一定会受到海骑士的管制吧",
"\r[#fb928b]要小心点那个家伙.....",
"\r[#fb928b]那家伙精得很,别说漏了什么......",
"\r[#f49af1]魔龙大人请放心,我一定不辜负您的重托!",
{
"type": "changeFloor",
"floorId": "huxiao2",

View File

@ -10,7 +10,7 @@ main.floors.huxiao2=
{
"name": "huxiao2.png",
"canvas": "bg",
"x": 0,
"x": 32,
"y": 0
}
],
@ -22,43 +22,43 @@ main.floors.huxiao2=
"type": "setCurtain",
"time": 500
},
"\r[purple]毒尾..........你怎么又背着我喝那种东西........",
"\r[green]没事的嗜骨......只有喝下这个.......才能让自己的毒性更强啊........",
"\r[purple]你给我.........不要喝了......",
"\r[purple]你难道不知道你的是你的寿命......",
"\r[purple]喝的是你的时间吗!!!?",
"\r[purple]你难道就不为了你身边的人想想?",
"\r[purple]血尾呢?你们关系不是最好了吗?",
"\r[green]别说了嗜骨,我的寿命与妖社的利益来讲根本不值一提..........",
"\r[green]我这条命都是魔龙大人给的......我还有什么遗憾呢?",
"\r[purple]我呢?我呢?",
"\r[purple]不是还有我吗!!!",
"\r[purple]每天陪你的人,每天能和你在一起你说话,能每天一起玩闹解闷的人,不是还有我吗..",
"\r[purple]你为什么一点都不为我想想呢.......",
"\r[green].........对不起嗜骨........",
"\r[green]我.........我不是不了解你的意思.......",
"\r[purple]...........",
"\r[green]你也好.......血尾也罢.........",
"\r[green]都是我最亲的人........都是我不能放弃的人........",
"\r[green]但是我真的没办法接受你的关心........真的..........",
"\r[purple]............毒尾..........",
"\r[green]对我来说,这种关心,比我现在手中的毒药还要毒",
"\r[green].........但是........我又何尝不明白.......",
"\r[green]我有时好恨.......恨自己要背上这么沉重的担子",
"\r[green]..........大概魔龙大人也一样吧........",
"\r[green].........心里也跟我想的一般吧.........",
"\r[green]........可是拿什么放弃.........",
"\r[green]........难道为了一份可有可无的关心.........",
"\r[green]......就放弃自己曾经坚持那么久的事业吗!",
"\r[purple](可有可无)",
"\r[purple](是这样的吗)",
"\r[purple]不",
"\r[purple]不是这样的",
"\r[purple]不是这样的...........",
"\r[green].......嗜骨.......谢谢你......",
"\r[purple]...........毒尾你.........",
"\r[green](咕噜咕噜............",
"\r[purple]...........(我什么都做不了)........",
"\r[#f49af1]毒尾..........你怎么又背着我喝那种东西........",
"\r[#87e291]没事的嗜骨......只有喝下这个.......才能让自己的毒性更强啊........",
"\r[#f49af1]你给我.........不要喝了......",
"\r[#f49af1]你难道不知道你的是你的寿命......",
"\r[#f49af1]喝的是你的时间吗!!!?",
"\r[#f49af1]你难道就不为了你身边的人想想?",
"\r[#f49af1]血尾呢?你们关系不是最好了吗?",
"\r[#87e291]别说了嗜骨,我的寿命与妖社的利益来讲根本不值一提..........",
"\r[#87e291]我这条命都是魔龙大人给的......我还有什么遗憾呢?",
"\r[#f49af1]我呢?我呢?",
"\r[#f49af1]不是还有我吗!!!",
"\r[#f49af1]每天陪你的人,每天能和你在一起你说话,能每天一起玩闹解闷的人,不是还有我吗..",
"\r[#f49af1]你为什么一点都不为我想想呢.......",
"\r[#87e291].........对不起嗜骨........",
"\r[#87e291]我.........我不是不了解你的意思.......",
"\r[#f49af1]...........",
"\r[#87e291]你也好.......血尾也罢.........",
"\r[#87e291]都是我最亲的人........都是我不能放弃的人........",
"\r[#87e291]但是我真的没办法接受你的关心........真的..........",
"\r[#f49af1]............毒尾..........",
"\r[#87e291]对我来说,这种关心,比我现在手中的毒药还要毒",
"\r[#87e291].........但是........我又何尝不明白.......",
"\r[#87e291]我有时好恨.......恨自己要背上这么沉重的担子",
"\r[#87e291]..........大概魔龙大人也一样吧........",
"\r[#87e291].........心里也跟我想的一般吧.........",
"\r[#87e291]........可是拿什么放弃.........",
"\r[#87e291]........难道为了一份可有可无的关心.........",
"\r[#87e291]......就放弃自己曾经坚持那么久的事业吗!",
"\r[#f49af1](可有可无)",
"\r[#f49af1](是这样的吗)",
"\r[#f49af1]不",
"\r[#f49af1]不是这样的",
"\r[#f49af1]不是这样的...........",
"\r[#87e291].......嗜骨.......谢谢你......",
"\r[#f49af1]...........毒尾你.........",
"\r[#87e291](咕噜咕噜............",
"\r[#f49af1]...........(我什么都做不了)........",
{
"type": "setCurtain",
"color": [

View File

@ -10,7 +10,7 @@ main.floors.huxiao3=
{
"name": "huxiao3.png",
"canvas": "bg",
"x": 0,
"x": 32,
"y": 0
}
],
@ -22,48 +22,46 @@ main.floors.huxiao3=
"type": "setCurtain",
"time": 500
},
"\r[green]海骑士大人..........您就行行好吧...........",
"\r[blue]毒尾,你回去吧。",
"\r[blue]那件事不可能的,你也不用求我了。",
"\r[green].......求求您了海骑士大人.........",
"\r[green].......我从来没有这么求过一个人........",
"\r[green]求求您教血尾一命吧.......她是我唯一的姐妹了",
"\r[green]我求求您海骑士大人.......我求求您",
"\r[green]只有您才能救她她....我求求您跟戾骑士说说好话吧",
"\r[green]求您了海骑士大人........",
"\r[green]求求您了.........",
"\r[blue]...........",
"\r[blue]..........毒尾........这事我没法帮你。",
"\r[green]可是海骑士大人........只有您能劝得了戾骑士",
"\r[green].......只有您能从戾骑士的手中把血尾救出来",
"\r[green].......血尾是我唯一的亲人了.......",
"\r[green].......我不能失去她......真的不能........",
"\r[green]看在我为您效劳这么多年的份上您就帮我这一次吧",
"\r[green]我求求您海骑士大人......求求您了.........",
"\r[green].......求求您了求求您了...........",
"\r[blue]不用再说了,毒尾你可以回去了。",
"\r[green]海骑士大人您不能这样.........",
"\r[green]我这么忠心耿耿..........为了联盟的利益.......",
"\r[blue]少跟我说联盟的利益了......",
"\r[blue]赶快回去,不然我叫人赶你了。",
"\r[green]海骑士大人求求您救救血尾........",
"\r[green]救救她.....求你了.........",
"\r[purple](毒尾.....你又何必去求他呢........)",
"\r[purple](你平时不是最恨他了吗...........最讨厌他了吗...........)",
"\r[purple](你明明知道他不可能帮你.........)",
"\r[purple](.........你还要去求你最恨的人..........)",
"\r[purple](为什么.....)",
"\r[purple](毒尾.........)",
"\r[#87e291]海骑士大人..........您就行行好吧...........",
"\r[#9decf8]毒尾,你回去吧。",
"\r[#9decf8]那件事不可能的,你也不用求我了。",
"\r[#87e291].......求求您了海骑士大人.........",
"\r[#87e291].......我从来没有这么求过一个人........",
"\r[#87e291]求求您教血尾一命吧.......她是我唯一的姐妹了",
"\r[#87e291]我求求您海骑士大人.......我求求您",
"\r[#87e291]只有您才能救她她....我求求您跟戾骑士说说好话吧",
"\r[#87e291]求您了海骑士大人........",
"\r[#87e291]求求您了.........",
"\r[#9decf8]...........",
"\r[#9decf8]..........毒尾........这事我没法帮你。",
"\r[#87e291]可是海骑士大人........只有您能劝得了戾骑士",
"\r[#87e291].......只有您能从戾骑士的手中把血尾救出来",
"\r[#87e291].......血尾是我唯一的亲人了.......",
"\r[#87e291].......我不能失去她......真的不能........",
"\r[#87e291]看在我为您效劳这么多年的份上您就帮我这一次吧",
"\r[#87e291]我求求您海骑士大人......求求您了.........",
"\r[#87e291].......求求您了求求您了...........",
"\r[#9decf8]不用再说了,毒尾你可以回去了。",
"\r[#87e291]海骑士大人您不能这样.........",
"\r[#87e291]我这么忠心耿耿..........为了联盟的利益.......",
"\r[#9decf8]少跟我说联盟的利益了......",
"\r[#9decf8]赶快回去,不然我叫人赶你了。",
"\r[#87e291]海骑士大人求求您救救血尾........",
"\r[#87e291]救救她.....求你了.........",
"\r[#f49af1](毒尾.....你又何必去求他呢........)",
"\r[#f49af1](你平时不是最恨他了吗...........最讨厌他了吗...........)",
"\r[#f49af1](你明明知道他不可能帮你.........)",
"\r[#f49af1](.........你还要去求你最恨的人..........)",
"\r[#f49af1](为什么.....)",
"\r[#f49af1](毒尾.........)",
{
"type": "setCurtain",
"color": [
255,
255,
255,
1
],
"time": 500,
"keep": true
"type": "function",
"function": "function(){\ncore.maskPrepare();\n}"
},
{
"type": "hideImage",
"code": 1,
"time": 0
},
{
"type": "changeFloor",

View File

@ -1,4 +1,3 @@
///<reference path='../runtime.d.ts'/>
var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
{
"events": {
@ -1629,16 +1628,27 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
},
"drawStatusBar": function () {
if (!core.status.floorId) return;
if (core.status.floorId == 'nandu') core.clearMap('caidan');
else core.drawImage('caidan','caidan.png',-161,0);
core.dom.caidan1Ctx.drawImage(core.material.images.images['caidan.png'],0,0)
else core.drawImage('caidan', 'caidan.png', -161, 0);
core.dom.caidan1Ctx.drawImage(core.material.images.images['caidan.png'], 0, 0)
var ctx, fill = function (text, x, y, style) {
core.ui.setFont(ctx, /*(/\w+/.test(text) ? 'italic ' : '') + */'21px fzchyjw');
core.ui.setFont(ctx, /*(/\w+/.test(text) ? 'italic ' : '') + */ '21px fzchyjw');
core.ui.fillText(ctx, text, x, y, style);
}, fill1 = function (text, x, y, style) {
},
fill1 = function (text, x, y, style) {
core.ui.setFont(ctx, '10px fzchyjw');
core.ui.fillText(ctx, text, x, y, style);
};
//回忆画面
if (core.status.hero.flags.Memories_grayscale) {
core.drawImage('caidan', 'caidan_grayscale.png', -161, 0);
core.dom.caidan1Ctx.drawImage(core.material.images.images['caidan_grayscale.png'], 0, 0)
return;
}
if (core.flags.statusCanvas) { // 系统开关「自绘状态栏」开启
core.ui.clearMap(ctx = core.dom.statusCanvasCtx); // 清空状态栏
core.ui.setFillStyle(ctx, core.status.globalAttribute.statusBarColor);
@ -1658,7 +1668,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
core.drawImage(ctx, core.statusBar.icons.exp, 6, 70, 25, 25);
fill(core.formatBigNumber(core.status.hero.exp), 42, 90);
} else if (!core.flags.extendToolbar) { // 横屏且未隐藏状态栏
core.drawImage(ctx, core.material.images.images[flags.hard == 4 ? 'status.png' : 'status2.png'],0,63);
core.drawImage(ctx, core.material.images.images[flags.hard == 4 ? 'status.png' : 'status2.png'], 0, 63);
core.drawImage(ctx, core.statusBar.icons.floor, 124, 24, 32, 32);
ctx.textAlign = 'left';
fill((core.status.thisMap || {}).title || "Loading", 0, 49, '#000000');
@ -1687,7 +1697,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
fill(core.itemCount('blueKey'), 140, 320 + 28, '#80FFFF');
fill(core.itemCount('redKey'), 140, 320 + 56, '#FF8080');
fill(core.itemCount('greenKey'), 140, 320 + 84, '#000000');
core.drawImage(ctx, core.material.images.images[['00005.png','00001.png','00002.png','00003.png','00004.png','00005.png'][flags.hard || 0]], 7, 404 - [0,10,10,0,0,0][flags.hard || 0]);
core.drawImage(ctx, core.material.images.images[['00005.png', '00001.png', '00002.png', '00003.png', '00004.png', '00005.png'][flags.hard || 0]], 7, 404 - [0, 10, 10, 0, 0, 0][flags.hard || 0]);
ctx.textAlign = 'left';
if (flags.poison) fill("中毒", 8, 282, '#00CD00');
if (flags.weak) fill("衰弱", 64, 282, '#FF1493');
@ -1719,7 +1729,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
fill(core.setTwoDigits(core.itemCount('blueKey')), 46 + offset, 267, '#AAAADD');
fill(core.setTwoDigits(core.itemCount('redKey')), 81 + offset, 267, '#FF8888');
}
},
},
"drawStatistics": function () {
// 浏览地图时参与的统计项目

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
project/images/tr003.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

View File

@ -3019,4 +3019,49 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.fillText('ui', damage, offset, position, color, this._buildFont(13, true));
}
},
"仿RM渐变效果": function () {
// 在此增加新插件
// 准备渐变
this.maskPrepare = function () {
// 执行后画面将凝固
core.createCanvas("mask", 0, 0, core.__PIXELS__, core.__PIXELS__, 155);
for (var m in core.canvas) {
core.dymCanvas.mask.drawImage(core.canvas[m].canvas, 0, 0);
};
}
// 执行渐变
this.maskFliter = function (time, sample) { // sample为渐变图名称渐变图需要在全塔属性注册
var tempCanvas = core.bigmap.tempCanvas;
var tempWidth = core.__PIXELS__,
tempHeight = core.__PIXELS__;
tempCanvas.canvas.width = tempWidth;
tempCanvas.canvas.height = tempHeight;
tempCanvas.clearRect(0, 0, tempWidth, tempHeight);
tempCanvas.drawImage(core.material.images.images[sample], 0, 0, tempWidth, tempHeight);
// 读取渐变图开始处理
var sampleData = tempCanvas.getImageData(0, 0, tempWidth, tempHeight);
var processData = core.dymCanvas.mask.getImageData(0, 0, tempWidth, tempHeight);
tempCanvas.clearRect(0, 0, tempWidth, tempHeight);
var timer = 0;
var animate = setInterval(function () {
timer++;
for (var i = 0; i < sampleData.data.length; i += 4) {
if (sampleData.data[i] < timer) {
processData.data[i] = 0;
processData.data[i + 1] = 0;
processData.data[i + 2] = 0;
processData.data[i + 3] = 0;
}
}
core.dymCanvas.mask.putImageData(processData, 0, 0);
if (timer == 255) {
delete core.animateFrame.asyncId[animate];
clearInterval(animate);
core.deleteCanvas("mask");
}
}, time / 256);
core.animateFrame.asyncId[animate] = true;
}
}
}