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) {
|
||||
core.status.replay.replaying = false;
|
||||
main.log("录像文件出错,当前操作:" + action +
|
||||
"\n接下来10个操作是:"+core.status.replay.toReplay.slice(0, 10).toString());
|
||||
var len = core.status.replay.toReplay.length;
|
||||
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.closePanel();
|
||||
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};
|
||||
}
|
||||
var content = {};
|
||||
["floorId", "title", "name", "canFlyTo", "canUseQuickShop", "cannotViewMap", "cannotMoveDirectly", "color", "weather",
|
||||
"defaultGround", "images", "item_ratio", "upFloor", "bgm", "downFloor", "underGround"].forEach(function (e) {
|
||||
if (map[e] != null) content[e] = core.clone(map[e]);
|
||||
else content[e] = core.clone(floor[e]);
|
||||
});
|
||||
for (var name in floor) {
|
||||
if (name != 'map' && name != 'bgmap' && name != 'fgmap' && floor[name] != null)
|
||||
content[name] = core.clone(floor[name]);
|
||||
}
|
||||
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);
|
||||
// 事件处理
|
||||
content['blocks'] = this._mapIntoBlocks(map, floor, floorId);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user