Fix bugs
This commit is contained in:
parent
372b6ea976
commit
6169c1b092
@ -2634,7 +2634,7 @@ control.prototype.triggerStatusBar = function (name, showToolbox) {
|
||||
if (name!='hide') name='show';
|
||||
|
||||
// 如果是隐藏 -> 显示工具栏,则先显示
|
||||
if (name == 'hide' && showToolbox && !core.domStyle.showStatusBar && !core.hasFlag("showToolbox")) {
|
||||
if (name == 'hide' && !core.domStyle.showStatusBar) {
|
||||
this.triggerStatusBar("show");
|
||||
this.triggerStatusBar("hide", showToolbox);
|
||||
return;
|
||||
|
||||
@ -1272,7 +1272,6 @@ events.prototype.getItem = function (itemId, itemNum, itemX, itemY, callback) {
|
||||
if (itemNum > 1) text += "x" + itemNum;
|
||||
if (itemCls === 'items') text += core.items.getItemEffectTip(itemId);
|
||||
core.drawTip(text, core.material.icons.items[itemId]);
|
||||
core.clearMap('event', itemX * 32, itemY * 32, 32, 32);
|
||||
core.updateStatusBar();
|
||||
|
||||
this.eventdata.afterGetItem(itemId, itemX, itemY, callback);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user