asamy / forgottenmapeditor

Map editor written in lua for Open Tibia. Written with OtClient's framework.
Other
46 stars 20 forks source link

Item Animations #20

Closed tosty33 closed 10 years ago

tosty33 commented 11 years ago

There's problem with showing items on map. They are animated only on first two zoom levels (16, 24), but they should be animated also on default zoom level (32).

asamy commented 11 years ago

That's quite odd, might be a limitation, i'll look into it.

tosty33 commented 11 years ago

I've found similar bug, I think it's related. When you use setShowZones / setShowZone functions on zoom levels other than first two, showing of zones Isn't updated. You have to zoom in/out/move map in order to update it.

asamy commented 11 years ago

I can't reproduce this bug, It's working fine for me: screenshot Zoomed from 16 to like 128

This is the code I used to reproduce: in modules/mapeditor_interface/interface.lua in function updateZoom():

if delta then
  zoomLevel = ...
  g_map.setShowZones(not g_map.showZones())
end
asamy commented 10 years ago

This is kept for near views only for performance reasons, e.g. 2048x2048 will cause million loops which will cause a lot of freezes on low-end pcs.