Attract-Mode Support > Scripting
Condicional function to showDifferent background and artwork
(1/1)
qqplayer:
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?
iOtero:
--- Quote from: 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?
--- End quote ---
1.
--- Code: ---
try {fe.add_image("bg/[Category].png", 0, 0, fe.layout.width, fe.layout.height); } catch ( e ) {}
--- End code ---
2.
--- Code: ---
try {fe.add_image("bg/[DisplayName].png", 0, 0, fe.layout.width, fe.layout.height);} catch ( e ) {}
--- End code ---
You just have to prepare the pngs for each category or system and put them inside the folder "/bg".
qqplayer:
Thanks , Ill try to show whats exactly I want to do.
The idea is create different artok properties depending on whats the selected system.
Navigation
[0] Message Index
Go to full version