Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: glaysonmestre on March 10, 2021, 05:51:07 PM

Title: edit layout help
Post by: glaysonmestre on March 10, 2021, 05:51:07 PM
i'm venturing to create a layout i chose nevato as a base i don't know much about programming, i wanted to know how to change the position of this snap screen i would like to move it a little more to the right, i already learned how to remove the inclination hers.
Title: Re: edit layout help
Post by: mahuti on March 10, 2021, 11:04:20 PM
https://github.com/mickelson/attract/blob/master/Layouts.md#Text

I don't have the Nevato theme on my system, so I can't provide specifics, but I can give you some general guidance. Somewhere in that layout file there will probably be something that looks similar to this:

Code: [Select]
local snap = fe.add_artwork( "snap", x, y, w, h )
You'll need to change the x value to move the snap further to the right. x might be a number, or a variable defined somewhere else in the layout file. It's possible that the image is contained in a surface. If its in a surface you will probably need to move the surface to the right instead. You'll know it's in a surface if you see something like:

Code: [Select]
local snap = name_of_the_surface.add_artwork("snap", x,y,w,h)
Title: Re: edit layout help
Post by: glaysonmestre on March 11, 2021, 05:50:26 PM
work , thanks    now I can edit almost everything, thank you very much  ;D
Title: Re: edit layout help
Post by: mahuti on March 11, 2021, 11:26:08 PM
Cool!