Author Topic: Layout Option Order  (Read 5514 times)

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 320
  • He who laughs lasts.
    • View Profile
Layout Option Order
« on: March 22, 2016, 05:31:38 PM »
What determines the order of the layout options?

I have them listed in the order I want in the layout.nut file, but they aren't displayed in that order within attractmode.

chrisvg

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: Layout Option Order
« Reply #1 on: March 22, 2016, 08:06:28 PM »
What determines the order of the layout options?

I have them listed in the order I want in the layout.nut file, but they aren't displayed in that order within attractmode.

Add order=x attributes to each of the options. eg:

Code: [Select]
class UserConfig </ help="description of my layout" />
{
    </ label="option 1", help="option 1 description", options="value1,value2", order=2 /> option1 = "value1";
    </ label="option 2", help="option 2 description", options="value1,value2", order=1 /> option2 = "value1";
}

would display in the order:

option 2
option 1

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 320
  • He who laughs lasts.
    • View Profile
Re: Layout Option Order
« Reply #2 on: March 23, 2016, 02:51:28 AM »
Thanks! The display order shows option 1 at top when looking...as hoped.
« Last Edit: March 23, 2016, 04:09:24 AM by bionictoothpick »