Texture picker

Hi
I am patching a “texture picker” that would look on a folder and render a grid of pictures and give me the possibility to pick one with a left click and another one with a right click.
The patch is already ok and it only needs to be fine tuned: automatic resize depending on pictures present in the folder, for example.
Before I go on, I d like to know if there is some improvement that you can spot, for example the way I get the “ID” of the picture to pick looks a bit cumbersome…
tx
Simone

  • Ok here it goes finally the attached patch

viewer.v4p (21.2 kB)