Initially I couldn't get any user properties to show in Create/Edit or Panels but after an AM restart they appeared in Panels. I've asked in another post about having the user properties also in Create/Edit but I'd also like to see them update without having to restart AM. Other script changes and the result of user property selection changes are implemented by simply hiding and re showing the given panel but scripting changes affecting the appearance of the actual user property controls in the settings window require AM to be restarted as far as I can tell.
If this is indeed the case can this be changed so they update in a better way.
I was hoping to display the user properties in a conditional way but if i implement this as I had it becomes un-intuitive for the user. Basically you have to select the first user property, restart AM and then the 2nd property becomes visible or vice versa when de-selecting. I know I could show them all and still have the conditional code work but I was hoping not to clutter the settings window with user properties that have no effect. i.e. only show them when they become active.
What i mean by this is something like this.
Code: Select all
user_id = user_prop_add_boolean("Sim or User", false, "Select for User selectable value.")
setting = user_prop_get(user_id)
if setting == false then
--get value from sim or use a default
value = 100
else
--display a new user property for the user to enter their value.
val_id = user_prop_add_integer("value", 80, 120, 100, "Enter value".")
value = user_prop_get(val_id)
end