Author Topic: edit layout help  (Read 1976 times)

glaysonmestre

  • Full Member
  • ***
  • Posts: 29
    • View Profile
edit layout help
« 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.

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 252
    • View Profile
    • Github Repositories
Re: edit layout help
« Reply #1 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)

glaysonmestre

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Re: edit layout help
« Reply #2 on: March 11, 2021, 05:50:26 PM »
work , thanks    now I can edit almost everything, thank you very much  ;D

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 252
    • View Profile
    • Github Repositories
Re: edit layout help
« Reply #3 on: March 11, 2021, 11:26:08 PM »
Cool!