This method is executed when the runtime user changes the value of the UI element. This method should change the field on the actual target respectively.
Implements AVR.UI.Link.AVRUI_Link.
Definition at line 56 of file AVRUI_Link_Dropdown.cs.
59 string text = input.options[input.value].text;
65 case MemberType.FIELD:
67 int numval = (int)System.Enum.Parse(
target.GetType().GetField(
field).FieldType, text);
68 target.GetType().GetField(
field).SetValue(
target, numval);
71 case MemberType.PROPERTY:
73 int numval = (int)System.Enum.Parse(
target.GetType().GetProperty(
field).PropertyType, text);
74 target.GetType().GetProperty(
field).SetValue(
target, numval);
79 catch(System.Exception) {
80 AVR_DevConsole.cwarn(
"Could not update the given target value to "+text,
this);