prev replays
This commit is contained in:
parent
16980c527a
commit
e822543bf1
@ -1302,8 +1302,12 @@ control.prototype._replay_save = function () {
|
|||||||
|
|
||||||
control.prototype._replay_error = function (action) {
|
control.prototype._replay_error = function (action) {
|
||||||
core.status.replay.replaying = false;
|
core.status.replay.replaying = false;
|
||||||
main.log("录像文件出错,当前操作:" + action +
|
var len = core.status.replay.toReplay.length;
|
||||||
"\n接下来10个操作是:"+core.status.replay.toReplay.slice(0, 10).toString());
|
var prevList = core.status.replay.totalList.slice(-len - 11, -len - 1);
|
||||||
|
var nextList = core.status.replay.toReplay.slice(0, 10);
|
||||||
|
main.log("录像文件出错,当前操作:" + action);
|
||||||
|
main.log("之前的10个操作是:\n" + prevList.toString());
|
||||||
|
main.log("接下来10个操作是:\n" + nextList.toString());
|
||||||
core.ui.drawConfirmBox("录像文件出错,你想回到上个节点吗?", function () {
|
core.ui.drawConfirmBox("录像文件出错,你想回到上个节点吗?", function () {
|
||||||
core.ui.closePanel();
|
core.ui.closePanel();
|
||||||
if (core.status.replay.save.length > 0) {
|
if (core.status.replay.save.length > 0) {
|
||||||
|
|||||||
13
libs/maps.js
13
libs/maps.js
@ -30,11 +30,14 @@ maps.prototype.loadFloor = function (floorId, map) {
|
|||||||
map = {"map": map};
|
map = {"map": map};
|
||||||
}
|
}
|
||||||
var content = {};
|
var content = {};
|
||||||
["floorId", "title", "name", "canFlyTo", "canUseQuickShop", "cannotViewMap", "cannotMoveDirectly", "color", "weather",
|
for (var name in floor) {
|
||||||
"defaultGround", "images", "item_ratio", "upFloor", "bgm", "downFloor", "underGround"].forEach(function (e) {
|
if (name != 'map' && name != 'bgmap' && name != 'fgmap' && floor[name] != null)
|
||||||
if (map[e] != null) content[e] = core.clone(map[e]);
|
content[name] = core.clone(floor[name]);
|
||||||
else content[e] = core.clone(floor[e]);
|
}
|
||||||
});
|
for (var name in map) {
|
||||||
|
if (name != 'map' && name != 'bgmap' && name != 'fgmap' && map[name] != null)
|
||||||
|
content[name] = core.clone(map[name]);
|
||||||
|
}
|
||||||
map = this.decompressMap(map.map, floorId);
|
map = this.decompressMap(map.map, floorId);
|
||||||
// 事件处理
|
// 事件处理
|
||||||
content['blocks'] = this._mapIntoBlocks(map, floor, floorId);
|
content['blocks'] = this._mapIntoBlocks(map, floor, floorId);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user