Retrieving cached images?
Posted: Wed Feb 03, 2016 8:41 am
Hii... It's me again. ^^"
If you don't mind, I'd like to ask a question.
Are there ways to retrieve a cached image by integer?
I've already used two ways to do similar things, in the past.
Like naming the actual files as the corresponding integers, then I can convert the integer to a string and it accesses the file directly from the integer. That does make the filenames harder to understand though.
And I've also used a list of the filenames, and pass the index to it to get the actual filename. Which works, except it's additional work, and feels redundant since renpy already caches the images.
...Now that I think about it, though, I haven't seen anything to suggest that renpy even assigns an integer id to images.
Does any of you have any thoughts about this?
If you don't mind, I'd like to ask a question.
Are there ways to retrieve a cached image by integer?
I've already used two ways to do similar things, in the past.
Like naming the actual files as the corresponding integers, then I can convert the integer to a string and it accesses the file directly from the integer. That does make the filenames harder to understand though.
And I've also used a list of the filenames, and pass the index to it to get the actual filename. Which works, except it's additional work, and feels redundant since renpy already caches the images.
...Now that I think about it, though, I haven't seen anything to suggest that renpy even assigns an integer id to images.
Does any of you have any thoughts about this?