Author Topic: Condicional function to showDifferent background and artwork  (Read 2107 times)

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
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

  • Sr. Member
  • ****
  • Posts: 414
    • View Profile
Re: Condicional function to showDifferent background and artwork
« Reply #1 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".
Nacer a los 15 años Una novela de iOtero

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Condicional function to showDifferent background and artwork
« Reply #2 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.