| 1234567891011121314151617181920212223242526272829303132333435 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using System;
- using BansheeEngine;
- namespace BansheeEditor
- {
- /** @addtogroup Library
- * @{
- */
- [DefaultSize(250, 350)]
- internal class FieldSelectionWindow : DropDownWindow
- {
- private GUIFieldSelector guiFieldSelector;
- public Action<string, SerializableProperty.FieldType> OnFieldSelected;
- /// <summary>
- /// Constructs the drop down window.
- /// </summary>
- public FieldSelectionWindow()
- {
- guiFieldSelector = new GUIFieldSelector(GUI, Selection.SceneObject, Width, Height);
- guiFieldSelector.OnElementSelected += (so, comp, path, type) =>
- {
- OnFieldSelected?.Invoke(path, type);
- Close();
- };
- }
- }
- /** @} */
- }
|