Merge branch 'noAnimate' into hasAnimate
This commit is contained in:
commit
9ca08dfe1b
@ -1 +1 @@
|
||||
{"viewportLoc":[0,0],"editorLastFloorId":"U1"}
|
||||
{"viewportLoc":[0,0],"editorLastFloorId":"MT9","lastUsed":[{"idnum":554,"id":"N554","images":"npcs","y":42,"recent":1668243635497,"frequent":2},{"idnum":551,"id":"N551","images":"npcs","y":41,"recent":1668243645267,"frequent":2},{"idnum":46,"id":"fly","images":"items","y":12,"recent":1668239925419,"frequent":1},{"idnum":45,"id":"book","images":"items","y":9,"recent":1668238365160,"frequent":1}]}
|
@ -197,7 +197,7 @@ enemys.prototype.getDamageString = function (enemy, x, y, floorId) {
|
||||
color = '#FF2222';
|
||||
}
|
||||
else {
|
||||
if (damage <= 0) color = '#11FF11';
|
||||
if (damage < 0) color = '#11FF11';
|
||||
else if (damage < core.status.hero.hp / 3) color = '#FFFFFF';
|
||||
else if (damage < core.status.hero.hp * 2 / 3) color = '#FFFF00';
|
||||
else if (damage < core.status.hero.hp) color = '#FF9933';
|
||||
|
@ -1524,7 +1524,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"extendToolbar": false,
|
||||
"flyNearStair": true,
|
||||
"flyRecordPosition": false,
|
||||
"itemFirstText": false,
|
||||
"itemFirstText": true,
|
||||
"equipboxButton": false,
|
||||
"enableAddPoint": false,
|
||||
"enableNegativeDamage": false,
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -295,14 +295,14 @@ main.floors.MT1=
|
||||
[ 0,348, 21, 2, 31, 2, 88, 2, 27, 2, 31, 2, 28,352, 0],
|
||||
[ 0,348,205, 81, 0, 0, 0, 2, 21,209, 0,209, 32,352, 0],
|
||||
[ 0,348, 21, 2,201, 2, 2, 2, 2, 2, 81, 2, 2,352, 0],
|
||||
[ 0,348, 2, 2, 0,121, 2, 0, 22, 2,209, 0, 2,352, 0],
|
||||
[ 0,348, 2, 2, 0,121, 2, 0, 45, 2,209, 22, 2,352, 0],
|
||||
[ 0,348, 31,202, 0, 0,202, 0, 0, 0, 0, 0, 2,352, 0],
|
||||
[ 0,348, 2, 2,210, 2, 2, 2, 82, 2, 2, 0, 2,352, 0],
|
||||
[ 0,348, 31, 21,209, 0, 21, 0,209, 32, 2, 0, 87,352, 0],
|
||||
[ 0,348, 2, 2, 2, 2,209, 2, 2, 2, 2, 2, 2,352, 0],
|
||||
[ 0,348, 21, 0, 2, 21,205, 2, 0, 28, 2, 0, 27,352, 0],
|
||||
[ 0,348, 21,205, 81, 0, 0, 81,217, 31, 81,210, 0,352, 0],
|
||||
[ 0,348, 22, 0, 2, 0, 21, 2, 0, 21, 2, 0, 31,352, 0],
|
||||
[ 0,348, 21,205, 81, 0, 0, 81,217, 31, 81,210, 31,352, 0],
|
||||
[ 0,348, 22, 0, 2, 0, 21, 2, 0, 21, 2, 0, 46,352, 0],
|
||||
[ 0,349,346,346,346,346,346,346,346,346,346,346,346,347, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
|
@ -155,7 +155,7 @@ main.floors.MT10=
|
||||
"time": 500
|
||||
},
|
||||
"\t[嗜骨]...................如果我说了的话...你可不可以放过我啊........",
|
||||
"\t[邵虎]当然,看你的态度,可以。",
|
||||
"\t[邵虎]当然,看你的态度可以。",
|
||||
{
|
||||
"type": "sleep",
|
||||
"time": 1000
|
||||
|
@ -45,7 +45,7 @@ main.floors.MT21=
|
||||
{
|
||||
"type": "moveHero",
|
||||
"steps": [
|
||||
"down"
|
||||
"down:1"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -136,24 +136,38 @@ main.floors.MT21=
|
||||
"text": "否",
|
||||
"action": [
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 1,
|
||||
"image": "shaohuyilv.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
-30,
|
||||
20
|
||||
80,
|
||||
50,
|
||||
"291.2",
|
||||
"466.4"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
},
|
||||
"\t[邵虎]这...这是!?",
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 2,
|
||||
"image": "jiekexiaohei.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -184,7 +198,7 @@ main.floors.MT21=
|
||||
"time": 500,
|
||||
"keep": true,
|
||||
"steps": [
|
||||
"down"
|
||||
"down:1"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -208,7 +222,7 @@ main.floors.MT21=
|
||||
"time": 500,
|
||||
"keep": true,
|
||||
"steps": [
|
||||
"down"
|
||||
"down:1"
|
||||
]
|
||||
},
|
||||
"\t[蓝衣老者]......可恶的魔物!竟然如此嚣张跋扈!今天我就要以联盟的名义将你们消灭!",
|
||||
@ -221,7 +235,7 @@ main.floors.MT21=
|
||||
"time": 500,
|
||||
"keep": true,
|
||||
"steps": [
|
||||
"up"
|
||||
"up:1"
|
||||
]
|
||||
},
|
||||
"\t[蓝衣老者]游荡于空间之中的雷元素啊!我以双手为引,心灵为介,呼唤你伟大的能量!无上之雷元素聚集-------裁决之雷!",
|
||||
@ -260,7 +274,7 @@ main.floors.MT21=
|
||||
"time": 500,
|
||||
"keep": true,
|
||||
"steps": [
|
||||
"up"
|
||||
"up:1"
|
||||
]
|
||||
},
|
||||
"\t[蓝衣老者]哼......马上就气急败坏了呢。",
|
||||
@ -301,12 +315,19 @@ main.floors.MT21=
|
||||
},
|
||||
"\t[蓝衣老者].....你...你是.....!!",
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 3,
|
||||
"image": "jiekedajiao.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -319,12 +340,19 @@ main.floors.MT21=
|
||||
},
|
||||
"\t[蓝衣老者].....啊....全身使不出力气.....",
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 4,
|
||||
"image": "fuyi.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
220,
|
||||
80
|
||||
400,
|
||||
100,
|
||||
192,
|
||||
300
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -341,24 +369,38 @@ main.floors.MT21=
|
||||
"time": 0
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 5,
|
||||
"image": "jiekedajiao2.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
},
|
||||
"\t[杰克]老大咱们快走!!被抓住就麻烦了!!",
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 6,
|
||||
"image": "shaohuyilv.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
-30,
|
||||
20
|
||||
80,
|
||||
50,
|
||||
"291.2",
|
||||
"466.4"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -377,12 +419,19 @@ main.floors.MT21=
|
||||
"time": 0
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 7,
|
||||
"image": "fuyi.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
220,
|
||||
80
|
||||
400,
|
||||
100,
|
||||
192,
|
||||
300
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -473,12 +522,19 @@ main.floors.MT21=
|
||||
"time": 300
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 8,
|
||||
"image": "fuyi.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
220,
|
||||
80
|
||||
400,
|
||||
100,
|
||||
192,
|
||||
300
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -562,24 +618,38 @@ main.floors.MT21=
|
||||
"time": 300
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"code": 9,
|
||||
"type": "showImage2",
|
||||
"code": 6,
|
||||
"image": "shaohusikao.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
-30,
|
||||
20
|
||||
80,
|
||||
50,
|
||||
"291.2",
|
||||
"466.4"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
},
|
||||
"\t[邵虎]........刚才的那个家伙......虽然体型不大,但我能感觉到是个非常难缠的对手.....实力恐怕要比嗜骨和毒尾还高......",
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 10,
|
||||
"image": "jiekezixin.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -591,12 +661,19 @@ main.floors.MT21=
|
||||
"time": 0
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 11,
|
||||
"image": "shaohuyilv.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
-30,
|
||||
20
|
||||
80,
|
||||
50,
|
||||
"291.2",
|
||||
"466.4"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -629,7 +706,7 @@ main.floors.MT21=
|
||||
"time": 500,
|
||||
"keep": true,
|
||||
"steps": [
|
||||
"right"
|
||||
"right:1"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -641,12 +718,19 @@ main.floors.MT21=
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 12,
|
||||
"image": "jiekeyilv.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -658,12 +742,19 @@ main.floors.MT21=
|
||||
"time": 0
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 13,
|
||||
"image": "jiekezixin.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -762,12 +853,19 @@ main.floors.MT21=
|
||||
"condition": "(flag:21fnpc==1)",
|
||||
"true": [
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 4,
|
||||
"image": "jiekedajiao.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -792,12 +890,19 @@ main.floors.MT21=
|
||||
"text": "否",
|
||||
"action": [
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 1,
|
||||
"image": "jiekedajiao.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -809,12 +914,19 @@ main.floors.MT21=
|
||||
"time": 300
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 2,
|
||||
"image": "shaohuzixin.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
-30,
|
||||
20
|
||||
80,
|
||||
50,
|
||||
"291.2",
|
||||
"466.4"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
@ -826,12 +938,19 @@ main.floors.MT21=
|
||||
"time": 0
|
||||
},
|
||||
{
|
||||
"type": "showImage",
|
||||
"type": "showImage2",
|
||||
"code": 3,
|
||||
"image": "jiekeyilv.png",
|
||||
"sloc": [
|
||||
0,
|
||||
0,
|
||||
null
|
||||
],
|
||||
"loc": [
|
||||
200,
|
||||
40
|
||||
330,
|
||||
70,
|
||||
"289.6",
|
||||
"376.8"
|
||||
],
|
||||
"opacity": 1,
|
||||
"time": 0
|
||||
|
@ -139,7 +139,7 @@ main.floors.MT9=
|
||||
},
|
||||
{
|
||||
"type": "animate",
|
||||
"name": "han",
|
||||
"name": "hanyou",
|
||||
"loc": [
|
||||
8,
|
||||
3
|
||||
@ -244,7 +244,7 @@ main.floors.MT9=
|
||||
[ 0,345,350,350,350,350,350,350,350,350,350,350,350,351, 0],
|
||||
[ 0,348, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,352, 0],
|
||||
[ 0,348, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2,352, 0],
|
||||
[ 0,348, 4, 4, 4, 2, 0, 0,211,301, 0, 0, 0,352, 0],
|
||||
[ 0,348, 4, 4, 4, 2, 0, 0,551,554, 0, 0, 0,352, 0],
|
||||
[ 0,348, 4, 4, 4, 2, 0, 2, 0, 0, 0, 0, 89,352, 0],
|
||||
[ 0,348, 4, 4, 4, 2, 0, 2, 2, 2, 2, 2, 2,352, 0],
|
||||
[ 0,348, 4, 4, 4, 2, 0, 2, 4, 4, 4, 4, 4,352, 0],
|
||||
|
@ -260,7 +260,8 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
|
||||
"N519": 38,
|
||||
"N529": 39,
|
||||
"N547": 40,
|
||||
"N551": 41
|
||||
"N551": 41,
|
||||
"N554": 42
|
||||
},
|
||||
"npc48": {
|
||||
"npc0": 0,
|
||||
|
@ -438,5 +438,6 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
|
||||
"550": {"cls":"terrains","id":"T550","canPass":false},
|
||||
"551": {"cls":"npcs","id":"N551"},
|
||||
"552": {"cls":"animates","id":"A552"},
|
||||
"553": {"cls":"animates","id":"A553","trigger":"openDoor","doorInfo":{"time":160,"openSound":"045-Push01.mp3","closeSound":"045-Push01.mp3","keys":{}},"animate":1}
|
||||
"553": {"cls":"animates","id":"A553","trigger":"openDoor","doorInfo":{"time":160,"openSound":"045-Push01.mp3","closeSound":"045-Push01.mp3","keys":{}},"animate":1},
|
||||
"554": {"cls":"npcs","id":"N554"}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 42 KiB |
@ -496,6 +496,38 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
}
|
||||
return;
|
||||
}
|
||||
////// 获得某个物品 //////
|
||||
core.events.getItem = function (id, num, x, y, isGentleClick, callback) {
|
||||
if (num == null) num = 1;
|
||||
var itemCls = core.material.items[id].cls;
|
||||
core.removeBlock(x, y);
|
||||
core.items.getItemEffect(id, num);
|
||||
var text = '获得 ' + core.material.items[id].name;
|
||||
if (num > 1) text += "x" + num;
|
||||
if (itemCls === 'items' && num == 1) text += core.items.getItemEffectTip(id);
|
||||
core.drawTip(text, id);
|
||||
|
||||
// --- 首次获得道具的提示
|
||||
if (!core.hasFlag("__itemHint__")) core.setFlag("__itemHint__", []);
|
||||
var itemHint = core.getFlag("__itemHint__");
|
||||
if (core.flags.itemFirstText && itemHint.indexOf(id) < 0 && itemCls != 'items') {
|
||||
var hint = core.material.items[id].text || "该道具暂无描述";
|
||||
try {
|
||||
hint = core.replaceText(hint);
|
||||
} catch (e) { }
|
||||
if (!core.status.event.id || core.status.event.id == 'action') {
|
||||
core.insertAction("\t[" + core.material.items[id].name + "," + id + "]\b[center]" + hint + "\n"
|
||||
+ (id.endsWith('Key') ? "(钥匙类道具,遇到对应的门时自动打开)"
|
||||
: itemCls == 'tools' ? "(消耗类道具,请按T在道具栏使用)"
|
||||
: itemCls == 'constants' ? "(永久类道具,请按T在道具栏使用)"
|
||||
: itemCls == 'equips' ? "(装备类道具,请按Q在装备栏进行装备)" : ""));
|
||||
}
|
||||
itemHint.push(id);
|
||||
}
|
||||
|
||||
this.afterGetItem(id, x, y, isGentleClick);
|
||||
if (callback) callback();
|
||||
}
|
||||
},
|
||||
"drawLight": function () {
|
||||
|
||||
@ -2847,5 +2879,116 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
}
|
||||
animateHwnd.start();
|
||||
}
|
||||
},
|
||||
"怪物手册和显伤": function () {
|
||||
// 在此增加新插件
|
||||
////// 获得所有特殊属性的名称 /////
|
||||
enemys.prototype.getSpecialText = function (enemy) {
|
||||
if (typeof enemy == 'string') enemy = core.material.enemys[enemy];
|
||||
if (!enemy) return [];
|
||||
var special = enemy.special;
|
||||
var text = [];
|
||||
|
||||
var specials = this.getSpecials();
|
||||
if (specials) {
|
||||
for (var i = 0; i < specials.length; i++) {
|
||||
if (this.hasSpecial(special, specials[i][0]))
|
||||
text.push(this._calSpecialContent(enemy, specials[i][1]));
|
||||
}
|
||||
}
|
||||
if (special === 0) {
|
||||
text.push('普通'); ///////无特殊属性时增加“普通”属性显示
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
////// 获得所有特殊属性的颜色 //////
|
||||
enemys.prototype.getSpecialColor = function (enemy) {
|
||||
if (typeof enemy == 'string') enemy = core.material.enemys[enemy];
|
||||
if (!enemy) return [];
|
||||
var special = enemy.special;
|
||||
var colors = [];
|
||||
|
||||
var specials = this.getSpecials();
|
||||
if (specials) {
|
||||
for (var i = 0; i < specials.length; i++) {
|
||||
if (this.hasSpecial(special, specials[i][0]))
|
||||
colors.push(specials[i][3] || null);
|
||||
}
|
||||
}
|
||||
if (special === 0) {
|
||||
colors.push("#ffffff"); ////“普通”属性显示为白色
|
||||
}
|
||||
return colors;
|
||||
|
||||
}
|
||||
ui.prototype._drawBook_drawDamage = function (index, enemy, offset, position) {
|
||||
core.setTextAlign('ui', 'center');
|
||||
var damage = enemy.damage,
|
||||
color = '#FFFF00';
|
||||
if (damage == null) {
|
||||
damage = '????'; ////////无法战斗怪物手册中改为????显示
|
||||
color = '#FF2222';
|
||||
} else {
|
||||
if (damage >= core.status.hero.hp) color = '#FF2222';
|
||||
else if (damage >= core.status.hero.hp * 2 / 3) color = '#FF9933';
|
||||
else if (damage <= 0) color = '#11FF11';
|
||||
damage = core.formatBigNumber(damage);
|
||||
if (core.enemys.hasSpecial(enemy, 19)) damage += "+";
|
||||
if (core.enemys.hasSpecial(enemy, 21)) damage += "-";
|
||||
if (core.enemys.hasSpecial(enemy, 11)) damage += "^";
|
||||
}
|
||||
if (enemy.notBomb) damage += "[b]";
|
||||
core.fillText('ui', damage, offset, position, color, this._buildFont(13, true));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
"楼传界面": function () {
|
||||
// 在此增加新插件
|
||||
////// 绘制楼层传送器 //////
|
||||
ui.prototype.drawFly = function (page) {
|
||||
core.status.event.data = page;
|
||||
var floorId = core.floorIds[page];
|
||||
var title = core.status.maps[floorId].title;
|
||||
core.clearMap('ui');
|
||||
core.setAlpha('ui', 0.85);
|
||||
core.fillRect('ui', 0, 0, core._PX_, core._PY_, '#000000');
|
||||
core.setAlpha('ui', 1);
|
||||
core.setTextAlign('ui', 'center');
|
||||
core.fillText('ui', '楼层跳跃', core._PX_ / 2, 48, '#FFFFFF', this._buildFont(28, true));
|
||||
core.fillText('ui', '返回游戏', core._PX_ / 2, core._PY_ - 13, null, this._buildFont(15, true))
|
||||
core.setTextAlign('ui', 'right');
|
||||
core.fillText('ui', '浏览地图时也', core._PX_ - 10, core._PY_ - 23, '#aaaaaa', this._buildFont(10, false));
|
||||
core.fillText('ui', '可楼层跳跃!', core._PX_ - 10, core._PY_ - 11, null, this._buildFont(10, false));
|
||||
core.setTextAlign('ui', 'center');
|
||||
|
||||
var middle = core._PY_ / 2 + 39;
|
||||
|
||||
// 换行
|
||||
var lines = core.splitLines('ui', title, 120, this._buildFont(16, true));
|
||||
var start_y = middle - (lines.length - 1) * 11;
|
||||
for (var i in lines) {
|
||||
core.fillText('ui', lines[i], core._PX_ - 60, start_y, '#FFFFFF');
|
||||
start_y += 22;
|
||||
}
|
||||
if (core.actions._getNextFlyFloor(1) != page) {
|
||||
core.fillText('ui', '▲', core._PX_ - 60, middle - 64, null, this._buildFont(17, false));
|
||||
core.fillText('ui', '▲', core._PX_ - 60, middle - 96);
|
||||
core.fillText('ui', '▲', core._PX_ - 60, middle - 96 - 7);
|
||||
}
|
||||
if (core.actions._getNextFlyFloor(-1) != page) {
|
||||
core.fillText('ui', '▼', core._PX_ - 60, middle + 64, null, this._buildFont(17, false));
|
||||
core.fillText('ui', '▼', core._PX_ - 60, middle + 96);
|
||||
core.fillText('ui', '▼', core._PX_ - 60, middle + 96 + 7);
|
||||
}
|
||||
var size = 0.75;
|
||||
core.strokeRect('ui', 16, 64, size * core._PX_, size * core._PY_, '#FFFFFF', 2);
|
||||
core.drawThumbnail(floorId, null, { ctx: 'ui', x: 16, y: 64, size: size, damage: true, all: true });
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user