Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to auto reload image layer image on change #825

Open
ghassanpl opened this issue Nov 12, 2014 · 18 comments
Open

Option to auto reload image layer image on change #825

ghassanpl opened this issue Nov 12, 2014 · 18 comments
Labels
missing feature It's not just a feature, it's a feature that really should be there!

Comments

@ghassanpl
Copy link

It would be great to have something like the auto-reload of tileset images right now, but for images on image layers.

@bjorn
Copy link
Member

bjorn commented Nov 12, 2014

You're right of course.

@bjorn bjorn added missing feature It's not just a feature, it's a feature that really should be there! bounty labels Nov 12, 2014
@HenryJia
Copy link
Contributor

Hi,

I'm going to start working on this. However, I'm completely new to this project and I am an amateur developer so I can't guarantee that I finish it.

I'll create a pull request when I finish.

@HenryJia
Copy link
Contributor

Also, what do you mean by that?

Auto reload the tileset images if they change? or is it something else as well?

@HenryJia
Copy link
Contributor

I've completed the task. It should all be in the pull request now.

@bjorn
Copy link
Member

bjorn commented Dec 24, 2014

@HenryJia I think you misunderstood something. Your pull request #847 is only attempting an optimization while this issue is about an actual feature, and one which your pull request does not address at all.

Your pull request aims to optimize the case of reloading a tileset image when it is in use by multiple tilesets, while this issue is about the functionality of reloading image layer images when they change on disk.

@HenryJia
Copy link
Contributor

Wait I thought the image layers were the same thing as the tilesets which were already implemented?

@bjorn
Copy link
Member

bjorn commented Dec 24, 2014

No. I've tried to tell you before, that the image layers are something different and the reload system is missing there. The classes relevant for image layers are ImageLayer and ImageLayerItem. Something like the TilesetManager is missing there, which is why I mentioned introducing an ImageManager.

@HenryJia
Copy link
Contributor

Would you mind telling me what image layer is in the compiled program?

@bjorn
Copy link
Member

bjorn commented Dec 24, 2014

You can add one to the map through the "Layers" menu, it's called "Add Image Layer". You set up its image in the Properties view.

@HenryJia
Copy link
Contributor

ok, great thanks

@DeXP
Copy link
Contributor

DeXP commented Sep 13, 2016

ImageManager can be implemented by analogy to TilesetManager. Can you suggest, how to integrate it? TilesetManager is called from a from a large number of places...
Also, there are a lot of places where imageLayer used - loaders, converters etc. Add ImageManager to every such place?
Maybe add public signal to imageLayer when loadFromImage and connect it to ImageManager?

@Phlosioneer
Copy link
Contributor

FYI there is no bounty on this issue.

@ninovanhooff
Copy link

Would be great to have this!

@bengalack
Copy link

bengalack commented Jul 19, 2024

Voting for this one. I have other tools in the toolchain updating images for several iamge layers, and it is cumbersome to manually open the layer properties and re-specify the filename(s) all the time (or restart the tool)

@eishiya
Copy link
Contributor

eishiya commented Jul 19, 2024

Voting for this one. I have other tools in the toolchain updating images for several iamge layers, and it is cumbersome to manually open the layer properties and re-specify the filename(s) all the time (or restart the tool)

You should be able to use Reload (default shortcut Ctrl+R) to reload the current document (and therefore also the images in its Image Layers), no need to edit the properties or restart Tiled.

@ninovanhooff
Copy link

This is what I do, but forgetting to hit save before reload is kind of frightening

@eishiya
Copy link
Contributor

eishiya commented Jul 19, 2024

This is what I do, but forgetting to hit save before reload is kind of frightening

Tiled warns you on Reload if your map is has unsaved changes and gives you the opportunity to save or cancel, so it shouldn't be so scary.

(In case it wasn't clear: my previous reply was to someone else, they seem to not be aware of Reload. I am only hoping to ease their life a little until automatic reloading is added.)

@bengalack
Copy link

Thanks. Just tested. Reload/Ctrl-R works very well for me, thank you! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing feature It's not just a feature, it's a feature that really should be there!
Projects
None yet
Development

No branches or pull requests

8 participants