Properties tab
The Properties tab (at the bottom of the screen) displays all attributes of the selected element. Studio divides the attribute workspace into Basic and Advanced sections. You can expand or collapse a workspace section by clicking the title of that section. Studio maintains the expanded or collapsed state of a section across all element selections and persists this state to new Studio sessions.
The workspace displays each attribute as a row in a table, with the attribute name in the left column and the value in the right column. Studio grays out the name if you have not set a value for that attribute (if the attribute value is nothing or is only a default value). Studio also grays out the attribute value if it is a default value. If the PCF schema requires an attribute, Studio displays the attribute name in bold font, with an asterisk, and with a different background color.
If you hover the mouse cursor over an attribute name, Studio displays a tooltip with the documentation for that attribute.
For each attribute:
- If the attribute takes a non-Gosu string value, Studio displays the value in a text field.
- If the attribute takes a non-Gosu Boolean value, Studio displays the value in a drop-down menu with two choices,
trueandfalse. - If the attribute takes an enumeration value, Studio displays the value in a drop-down menu with a choice for each value of the enumeration, plus a
<none selected>option. - If the attribute takes a Gosu value, Studio displays the value in a single-line Gosu editor. Gosu editor commands that operate on multiple lines have no effect in a single-line editor. (For example, the SmartFix Add uses statement command does not work in a single-line editor.) Studio displays the single-line editor with a red background if it contains any errors, and a yellow background if it contains warnings but no errors.
- If the attribute requires a return type, Studio colors the value background red under the following circumstances:
- If the entered expression does not evaluate to that type
- If the entered statement does not return a value of that type
- If the attribute requires a Boolean return value, Studio displays a drop-down menu on the right side with two options,
trueandfalse. If you select one of these options, Studio sets the text of the editor to the appropriate value.
If the value editor for an attribute has focus, Studio displays the attribute name in a different background color and adds an X icon. If you click the X icon, Studio sets the value of the attribute to its default.
If you press Enter on the keyboard while editing a property, Studio moves the focus to the next property in the list.
