Guest xvnon Posted May 19, 2020 Share Posted May 19, 2020 Anyone here familiar with the lua in the ui.menu that would know how to do this?: I have a table.. which is the sound option toggles.. the table being: selectOpt = { {'ALWAYS_LABEL',0, 58, 0, 0}, {'SELDOM_LABEL',0, 59, 0, 0}, {'NEVER_LABEL',0, 60, 0, 0} } I wanted to add an enabled/disabled inside of the list that will make it so the label next to the middle row only appears... something like this: Always (button) Selections Always (button) Selections Seldom (button) ... as of current it displays like this: Selections Seldom (button) Never (button) Selections Never (button) I know I have to creature a function to check for the other var[] inside of the table, however things like journalDisplay use different formats from something like this. Here is what the list looks like: Spoiler list { column { width 85 label { area 0 0 -1 -1 text lua "t(selectOpt[rowNumber][1])" } } column { width 15 label { area 0 0 -1 -1 bam ROUNDBUT align center center frame lua "selectOpt[rowNumber][4]" } } area 10 10 10 10 rowheight 30 table "selectOpt" var selectSel hidehighlight } So under the two columns I'd have to add an 'enabled "conditional here" ... So it only shows up in the middle section of the table. So does anyone know what would have to be done for that? Quote Link to comment
lefreut Posted May 20, 2020 Share Posted May 20, 2020 Just to be sure, you want to change from this: to this ? You can add this in the second label: enabled "selectOpt[rowNumber][4] == 2" Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.