mtasa-resources icon indicating copy to clipboard operation
mtasa-resources copied to clipboard

editor: add some way to restore removed objects

Open stoneage-mta opened this issue 4 years ago • 7 comments

Is your feature request related to a problem? Please describe. Apparently at this moment there is no way to restore objects that were removed from the original map... (we have to manually find and remove the correct line in the .map file)

Describe the solution you'd like As we can list the changes through this window, maybe we could add some button to restore the removed object? image image (we can also add navigation using the keyboard arrows to the above list, as is already possible in other lists, such as the list of objects/ids)

Describe alternatives you've considered N/A

Additional context N/A

stoneage-mta avatar Dec 24 '21 14:12 stoneage-mta

Actually, there's a way of restoring world objects using the 'current elements' tool:

  • Click twice in the line so it opens the properties
  • There will be a symbol (>) on the lower right side
  • Press 'delete'

https://i.imgur.com/ZNsnE24.png

Vampiiree avatar Dec 24 '21 17:12 Vampiiree

Actually, there's a way of restoring world objects using the 'current elements' tool:

  • Click twice in the line so it opens the properties
  • There will be a symbol (>) on the lower right side
  • Press 'delete'

https://i.imgur.com/ZNsnE24.png

But perhaps he gave a more practical idea of ​​restoring the removed object.

myusernamewo avatar Dec 24 '21 20:12 myusernamewo

Well, I didn't say that his idea isn't good. I just pointed out that it already exists within the tool he mentioned.

Vampiiree avatar Dec 24 '21 22:12 Vampiiree

+1

Button to restore removed world object from the list + delete key to restore + navigating with arrow keys

All good enhancements

Fernando-A-Rocha avatar Dec 25 '21 10:12 Fernando-A-Rocha

Actually, there's a way of restoring world objects using the 'current elements' tool:

  • Click twice in the line so it opens the properties
  • There will be a symbol (>) on the lower right side
  • Press 'delete'

https://i.imgur.com/ZNsnE24.png

Yeah, I didn't know about that...

stoneage-mta avatar Dec 27 '21 01:12 stoneage-mta

Actually, there's a way of restoring world objects using the 'current elements' tool:

  • Click twice in the line so it opens the properties
  • There will be a symbol (>) on the lower right side
  • Press 'delete'

https://i.imgur.com/ZNsnE24.png

Yeah, I didn't know about that...

But the Issue you created talking about restoring the object is great, I had in mind to create a function to restore the removed objects more practical.

myusernamewo avatar Dec 27 '21 04:12 myusernamewo

Another thing that I believe can be fixed if someone decides to touch this part of the code: https://streamable.com/49fe3i

*If you select an element from the "Current Elements" list and then press the "delete" key on your keyboard, it will visually disappear, but it will remain bugged in the list. (if you re-select and press "delete" again, it will delete the next element, and the next list item will be bugged aswell)

stoneage-mta avatar Jan 08 '22 04:01 stoneage-mta

fixed by #401

Haxardous avatar Jan 16 '23 20:01 Haxardous