Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having trouble adding user interface options.
#2
(09-18-2022, 03:37 PM)Albedo Wrote: Hi

I am having an issue adding UI stuff to my script.    I am unable to use two UI of the same type.   I think I'm missing something in my formatting.  For example:

   (PF_OPTION, "useRare", "Select N to Ignore Rare Percents. ", 0,
             (
                 ["N", "Y"]
              )

         )


That works fine.   I am able to get the Y/N info passed into my useRare parameter.  I am able to to pass it to scripts, no issue.  The problem is I want to add another PF_OPTION.  So I added

   (PF_OPTION, "useColor", "Select Y to use color ", 0,
             (
                 ["N", "Y"]
              )

         )


And that breaks my script.   I can add a PF_RADIO, or a PF_TOGGLE and they work fine too, but I cant add a duplicate for either of those.  Can anyone explain to me how I can enter into duplicate PF types to the UI?
Thank you

There is no intrinsic problem with having multiple occurrences of PF- types - I have a script with 2 PF-OPTIONs, 6 PF-BOOLs and 6 PF-SPINNERs.

You do need a comma (not shown in your code above) after the definition of each parameter.

I don't think you need the inner brackets either.
Reply


Messages In This Thread
RE: Having trouble adding user interface options. - by programmer_ceds - 09-18-2022, 03:52 PM

Forum Jump: