Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: qqplayer on July 24, 2018, 05:33:45 AM

Title: Condicional function to showDifferent background and artwork
Post by: qqplayer on July 24, 2018, 05:33:45 AM
I want to create two different functions.

1. I want to showw different backgrounds based on game categories.

2. Different artwork deppending on wich system is selected.

Any suggestion?
Title: Re: Condicional function to showDifferent background and artwork
Post by: iOtero on July 24, 2018, 06:56:46 AM
I want to create two different functions.

1. I want to showw different backgrounds based on game categories.

2. Different artwork deppending on wich system is selected.

Any suggestion?

1.

Code: [Select]

try {fe.add_image("bg/[Category].png", 0, 0, fe.layout.width, fe.layout.height); } catch ( e ) {}


2.

Code: [Select]

try {fe.add_image("bg/[DisplayName].png", 0, 0, fe.layout.width, fe.layout.height);} catch ( e ) {}


You just have to prepare the pngs for each category or system and put them inside the folder "/bg".
Title: Re: Condicional function to showDifferent background and artwork
Post by: qqplayer on August 02, 2018, 05:01:36 AM
Thanks , Ill try to show whats exactly I want to do.
The idea is create different artok properties depending on whats the selected system.