- May 7, 2017
- 359
- 1,099
I was looking trough some of the code used in Adam and Gaia.
More specifically I looked at a widget which allows the game to use either gif or webm. If the game's img folder contains a file named anon.gif the code <<showImageOrVideo "img/anon">> will display it in game. The same being the case if anon.gif had used the extension anon.webm.
I'm trying to get the code to also display jpg and png in the widget like this
But this means the game will try and display three paths to image/videos, which causes a lot of duplicated empty space.
My question is, does anyone of you bright fellows know how to extend to line <<='<video muted loop autoplay poster="' + _wFullFileName + '.gif"><source src="' + _wFullFileName + '.webm"></video>'>> which allows for both gif and webm - to also include jpg and png?
More specifically I looked at a widget which allows the game to use either gif or webm. If the game's img folder contains a file named anon.gif the code <<showImageOrVideo "img/anon">> will display it in game. The same being the case if anon.gif had used the extension anon.webm.
I'm trying to get the code to also display jpg and png in the widget like this
You don't have permission to view the spoiler content.
Log in or register now.
But this means the game will try and display three paths to image/videos, which causes a lot of duplicated empty space.
My question is, does anyone of you bright fellows know how to extend to line <<='<video muted loop autoplay poster="' + _wFullFileName + '.gif"><source src="' + _wFullFileName + '.webm"></video>'>> which allows for both gif and webm - to also include jpg and png?