Fix uievent drawThumbnail
This commit is contained in:
parent
1d756fd223
commit
eeb9c6a912
@ -481,6 +481,8 @@ uievent.selectPoint = function (floorId, x, y, hideFloor, callback) {
|
||||
uievent.updateSelectPoint = function (redraw) {
|
||||
uievent.elements.title.innerText = '地图选点 ('+uievent.values.x+","+uievent.values.y+')';
|
||||
if (redraw) {
|
||||
core.setAlpha('uievent', 1);
|
||||
core.clearMap('uievent');
|
||||
core.drawThumbnail(uievent.values.floorId, null, null,
|
||||
{ctx: 'uievent', centerX: uievent.values.left + core.__HALF_SIZE__,
|
||||
centerY: uievent.values.top + core.__HALF_SIZE__});
|
||||
|
||||
@ -363,7 +363,8 @@ maps.prototype._getBgFgMapArray = function (name, floorId, noCache) {
|
||||
return core.status[name + "maps"][floorId];
|
||||
|
||||
var arr = core.clone(core.floors[floorId][name + "map"] || []);
|
||||
if (main.mode == 'editor') arr = core.clone(editor[name + "map"]) || arr;
|
||||
if (main.mode == 'editor' && !(uievent && uievent.isOpen))
|
||||
arr = core.clone(editor[name + "map"]) || arr;
|
||||
for (var x = 0; x < width; x++) {
|
||||
for (var y = 0; y < height; y++) {
|
||||
arr[y] = arr[y] || [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user