Dynamically loading images, is it possible?

Everything about Modding the game, from new courts to the modifications of the player & tournament bases (and including all the bugs they may be creating ! ;) )
Forum rules
Speak English in 1st page of topics, and don't hijack topics, troll, use profanities nor insults

Dynamically loading images, is it possible?

Postby antimouse » 13 Jul 2014, 19:03

Hello Manu and any others capable of answering,

Is it possible to load an image with its filename stored in a variable?
For example, for showing an image file named '178.jpg', instead of:

Code: Select all
Image Ico/178 Width Height


I'd like to use something like:

Code: Select all
def ImageFile 178

(...)

Image Ico/ImageFile Width Height


Is it possible?
Thanks!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 527
Gaming Since: 06 Sep 2013, 01:05

Re: Dynamically loading images, is it possible?

Postby manutoo » 14 Jul 2014, 04:02

Hello,

it's not possible ; everything in the menus is loaded on start.
I'm not sure what you want to do, but the closest of dynamic image selection is the "#ImageGI" parameter. Look for it to see how it's used (most important is the name of the items must be correctly enumerated).
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 15783
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Dynamically loading images, is it possible?

Postby antimouse » 14 Jul 2014, 15:31

Hey Manu, thanks for your answer!

I want to load pictures of the players to show before the start of the game, with head to head information and other stuff. I would use their player ID number as the name of the image file. I'll check if #ImageGI works later.

Thanks ;)
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 527
Gaming Since: 06 Sep 2013, 01:05


Return to Modding [Courts, Players, Tour, ...]

Who is online

Users browsing this forum: Bing [Bot], CCBot [Bot], Dot [Bot] and 1 guest