Is it possible at all to know which imageSuffix (as specified in the config.lua file) is being used? [import]uid: 44037 topic_id: 35108 reply_id: 335108[/import]
Hello,
I would suggest you just reverse-determine this value based on your config. The following calculation should give you the “scale” that Corona is using at Runtime based on your configured content width and height. Based on this, you could determine where the value falls within your hierarchy of suffixes, and thus, you could get the “imageSuffix” that way.
1/display.contentScaleX
Hope this helps somewhat,
Brent Sorrentino [import]uid: 200026 topic_id: 35108 reply_id: 139759[/import]
Thanks. I’ve been using something similar, but thought there might be a more direct approach…
[import]uid: 44037 topic_id: 35108 reply_id: 139767[/import]
Hello,
I would suggest you just reverse-determine this value based on your config. The following calculation should give you the “scale” that Corona is using at Runtime based on your configured content width and height. Based on this, you could determine where the value falls within your hierarchy of suffixes, and thus, you could get the “imageSuffix” that way.
1/display.contentScaleX
Hope this helps somewhat,
Brent Sorrentino [import]uid: 200026 topic_id: 35108 reply_id: 139759[/import]
Thanks. I’ve been using something similar, but thought there might be a more direct approach…
[import]uid: 44037 topic_id: 35108 reply_id: 139767[/import]