public EnumFieldUxmlTraits() { m_Type = new UxmlStringAttributeDescription { name = "type", use = UxmlAttributeDescription.Use.Required }; m_Value = new UxmlStringAttributeDescription { name = "value" }; }
public UxmlTraits() { m_PropertyPath = new UxmlStringAttributeDescription { name = "binding-path" }; m_Label = new UxmlStringAttributeDescription { name = "label" }; }
public PillUxmTraits() { m_Highlighted = new UxmlBoolAttributeDescription { name = "highlighted" }; m_Text = new UxmlStringAttributeDescription { name = "text" }; }
public UxmlTraits() { m_Title = new UxmlStringAttributeDescription { name = "title" }; m_Value = new UxmlFloatAttributeDescription { name = "value" }; }
public UxmlTraits() { UxmlStringAttributeDescription attributeDescription1 = new UxmlStringAttributeDescription(); attributeDescription1.name = "text"; m_Text = attributeDescription1; UxmlBoolAttributeDescription attributeDescription2 = new UxmlBoolAttributeDescription(); attributeDescription2.name = "value"; attributeDescription2.defaultValue = true; m_Value = attributeDescription2; }
public UxmlTraits() { m_Title = new UxmlStringAttributeDescription { name = "title" }; m_EnableLegend = new UxmlBoolAttributeDescription { name = "enableLegend" }; m_EnableLabels = new UxmlBoolAttributeDescription { name = "enableLabels" }; m_AllowLabelsOverflow = new UxmlBoolAttributeDescription { name = "allowLabelsOverflow" }; }
public PropertyControlUxmlTraits() { m_TypeOf = new UxmlStringAttributeDescription { name = "typeOf", use = UxmlAttributeDescription.Use.Required }; UxmlEnumeration typeList = new UxmlEnumeration(); typeList.values = new List <string>(); foreach (DataType dt in Enum.GetValues(typeof(DataType))) { if (dt != DataType.Unsupported) { typeList.values.Add(dt.ToString()); } } m_TypeOf.restriction = typeList; m_Value = new UxmlStringAttributeDescription { name = "value" }; m_Label = new UxmlStringAttributeDescription { name = "label" }; }
public UxmlTraits() { m_Text = new UxmlStringAttributeDescription { name = "text" }; }
public UxmlTraits() { m_PropertyPath = new UxmlStringAttributeDescription { name = "binding-path" }; m_Label = new UxmlStringAttributeDescription { name = "label" }; //m_ShowSize = new UxmlBoolAttributeDescription { name = "show-size" }; m_DisableLabelContextMenu = new UxmlBoolAttributeDescription { name = "disable-label-context-menu" }; m_DisablePropertyLabel = new UxmlBoolAttributeDescription { name = "disable-property-label" }; m_HideAddButton = new UxmlBoolAttributeDescription { name = "hide-add-button" }; m_UseObjectField = new UxmlBoolAttributeDescription { name = "use-object-field", defaultValue = true }; m_HideDeleteAllButton = new UxmlBoolAttributeDescription { name = "hide-delete-all-button" }; m_HideDeleteItemButton = new UxmlBoolAttributeDescription { name = "hide-delete-item-button" }; m_HideReorderItemButtons = new UxmlBoolAttributeDescription { name = "hide-reorder-item-buttons" }; m_AddButtonText = new UxmlStringAttributeDescription { name = "add-button-text", defaultValue = ADD_BUTTON_TEXT }; m_DeleteAllButtonText = new UxmlStringAttributeDescription { name = "delete-all-button-text", defaultValue = DELETE_ALL_BUTTON_TEXT }; m_DeleteAllConfirmLabelText = new UxmlStringAttributeDescription { name = "delete-all-confirm-label-text", defaultValue = DELETE_ALL_CONFIRM_LABEL_TEXT }; m_DeleteAllYesButtonText = new UxmlStringAttributeDescription { name = "delete-all-yes-button-text", defaultValue = DELETE_ALL_YES_BUTTON_TEXT }; m_DeleteAllNoButtonText = new UxmlStringAttributeDescription { name = "delete-all-no-button-text", defaultValue = DELETE_ALL_NO_BUTTON_TEXT }; m_AddObjectFieldText = new UxmlStringAttributeDescription { name = "add-object-field-text", defaultValue = ADD_OBJECT_FIELD_TEXT }; m_DeleteItemButtonText = new UxmlStringAttributeDescription { name = "delete-item-button-text", defaultValue = DELETE_ITEM_BUTTON_TEXT }; m_ReorderItemUpButtonText = new UxmlStringAttributeDescription { name = "reorder-item-up-button-text", defaultValue = MOVE_UP_BUTTON_TEXT }; m_ReorderItemDownButtonText = new UxmlStringAttributeDescription { name = "reorder-item-down-button-text", defaultValue = MOVE_DOWN_BUTTON_TEXT }; }