Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: tonberryhunter on August 16, 2017, 10:42:44 PM

Title: Possible to make Robospin scale with aspect ratio?
Post by: tonberryhunter on August 16, 2017, 10:42:44 PM
I have been working for months on a custom Attract Mode theme based off of the original Robospin.  I'm trying to figure out how to scale the wheel images with a 4:3 aspect ratio.  I managed to get the cab (cropped photoshop), snap and background (cropped in photoshop) art to scale correctly but not sure what I need to edit in the layout.nut file to correct the wheel.  Other than intentionally distorting all my 16:9 assets in Photoshop I dont know how to fix this.  Perhaps someone verse with the coding used in these layouts might be of assistance. :)

Here are two example images of my main menu.

16:9

(https://preview.ibb.co/jpG7nF/16_9.png) (https://ibb.co/ew3WEv)
upload and share pictures (https://imgbb.com/)


4:3 (with distorted wheel images and pointer)

(https://preview.ibb.co/iB5uZv/4_3.png) (https://ibb.co/kbxV7F)
upload and share pictures (https://imgbb.com/)

Title: Re: Possible to make Robospin scale with aspect ratio?
Post by: bjose2345 on August 17, 2017, 01:38:29 AM
set the preserve_aspect_ratio = true?
Title: Re: Possible to make Robospin scale with aspect ratio?
Post by: tonberryhunter on August 17, 2017, 02:43:11 PM
I dont see an option for that within the .nut file under the wheel settings.  Also that setting seemed to have no effect on the rest of the elements so I had to manually adjust them til they fit right. 
Title: Re: Possible to make Robospin scale with aspect ratio?
Post by: jedione on August 17, 2017, 06:41:21 PM
O, h    they just covered this in scripting section not theme section ahh what a great idea.
http://forum.attractmode.org/index.php?topic=1844.0 (http://forum.attractmode.org/index.php?topic=1844.0)
Title: Re: Possible to make Robospin scale with aspect ratio?
Post by: tonberryhunter on August 17, 2017, 07:43:33 PM
O, h    they just covered this in scripting section not theme section ahh what a great idea.
http://forum.attractmode.org/index.php?topic=1844.0 (http://forum.attractmode.org/index.php?topic=1844.0)

You're a saint !!  Thank you so much.
Title: Re: Possible to make Robospin scale with aspect ratio?
Post by: tonberryhunter on August 17, 2017, 07:58:58 PM
Still don't know how to fix the aspect ratio of the pointer.  Thats easy enough to remake in photoshop.