Page 1 of 1

help - module inside module properties -Spog?

Posted: Sat Mar 28, 2020 5:05 am
by pshannon
Hello everyone,

I hate asking for help with this. But I could not get this to work. In my mind it should be simple and maybe I am missing something obvious.
1. I used a simple selector item module, but I do not want to see it in the main part of the module. Turn off G and select P for properties.
2. Once I have set the items in the menu selector, I don't want to change the selection values, I will keep those static.
3. I want to use the values in the menu selector drop down, but to use it as a property in the main module.
4. The menu item change will change how ruby code responds inside.
In a not shell: Once the selector values are created, they won't change, so I won't need to use the properties of the selector Item1, Item2, Item3. I do want to use the menu drop down to change it from item1 to item2 and have ruby reflect that inside the module.
Prims are easy, you right click and select property. I can get the same effect from a module inside. It will just transfer its own properties to the main module. Turn off properties and it disappears completely. I added a prim to show I get the idea of how to use properties, but not with a module that I could tell.
Attached is the simplest form I could create. I hope this makes sense. Thanks!

Re: help - module inside module properties -Spog?

Posted: Sat Mar 28, 2020 2:40 pm
by trogluddite
There are two ways that you could do this....

1) Swap the selector module for an 'Index Selector' primitive. This does the same thing as a selector module, but it has no module GUI, and can be made directly into a labelled property, exactly as you would a numeric/string primitive.

2) The selector module's MGUI primitive has a wireless receiver on it's view input, which is normally unlabelled and passes the GUI drawing along to the parent module. However, if you give the wireless receiver the label "Properties" (case-sensitive!), the drawing will be redirected to the parent module's properties panel instead. This will work for any GUI module that you want shown on its parent's properties panel.

Note that there's also a 'Module Properties GUI' primitive, which works just like a normal MGUI, but draws directly to the properties panel of the containing module (rather than the parent module's properties, as the wireless connector does).

(PS: Sorry no example schematic, I'm not on my FS machine at the moment!)

Re: help - module inside module properties -Spog?

Posted: Sat Mar 28, 2020 2:50 pm
by pshannon
Thanks Trog! worked as described, I know simple right? :) I was not sure if Spog , you or Tula would just know off the top. I love the support here and still learning the flow of FS.