Author Topic: Help implementing new feature to nevato  (Read 59 times)

hidensity42

  • Newbie
  • *
  • Posts: 1
    • View Profile
Help implementing new feature to nevato
« on: April 12, 2019, 02:40:08 PM »
I want to be able to also display flyers and fan art in addition to the background and snap and marquee options.  I have a really near idea to make nevato look super amazing but I need those two things to display.  Can anyone help me? 

rand0m

  • Sr. Member
  • ****
  • Posts: 193
    • View Profile
Re: Help implementing new feature to nevato
« Reply #1 on: April 12, 2019, 10:11:18 PM »
You can add any number of artwork items in a theme. The process is simple:
1- Add the artwork in [emulator].cfg in AM/emulators. For example to add flyers & fanartin NES, open NES.cfg (or whatever you named it) and add
Code: [Select]
artwork    flyer           Path\to\flyer folder
artwork    fanart         Path\to\fanart folder

2- Add a line in layout.cfg about the new artworks:
Code: [Select]
local flyer = fe.add_artwork ("flyer", 500,500,800,600);
local fanart = fe.add_artwork ("fanart", 500,500,800,600);

You can use following for performance boost
Code: [Select]
flyer.preserve_aspect_ratio = true; #retain aspect ratio
flyer.mipmap = true; #great for items which are scaled down
flyer.trigger = Transition.EndNavigation;   #this will update artwork item when you stop scrolling i.e. performance

(use fanart instead of flyer in above mentioned code or anyother art item. You can add any number of artwork items afaik there is no hard limit)