コード例 #1
0
            /// <inheritdoc/>
            protected override GUILayoutX CreateGUI(GUILayoutY layout)
            {
                InspectableListGUI   listParent = (InspectableListGUI)parent;
                SerializableProperty property   = GetValue <SerializableProperty>();

                string entryPath = listParent.Path + "[" + SeqIndex + "]";

                field = CreateInspectable(listParent.Inspector, SeqIndex + ".", entryPath, 0, Depth + 1,
                                          new InspectableFieldLayout(layout), property, new InspectableFieldStyleInfo());

                return(field.GetTitleLayout());
            }
コード例 #2
0
            /// <inheritdoc/>
            protected override GUILayoutX CreateKeyGUI(GUILayoutY layout)
            {
                keyLayout = layout;
                InspectableDictionaryGUI dictParent = (InspectableDictionaryGUI)parent;
                SerializableProperty     property   = GetKey <SerializableProperty>();

                string entryPath = dictParent.Path + "Key[" + RowIdx + "]";

                fieldKey = CreateInspectable(dictParent.Inspector, "Key", entryPath, 0, Depth + 1,
                                             new InspectableFieldLayout(layout), property);

                return(fieldKey.GetTitleLayout());
            }
コード例 #3
0
            /// <inheritdoc/>
            protected override GUILayoutX CreateGUI(GUILayoutY layout)
            {
                InspectableArrayGUI  arrayParent = (InspectableArrayGUI)parent;
                SerializableProperty property    = GetValue <SerializableProperty>();

                InspectableFieldStyleInfo styleInfo = arrayParent.Style.Clone();

                styleInfo.StyleFlags &= ~InspectableFieldStyleFlags.NativeWrapper;

                string entryPath = arrayParent.Path + "[" + SeqIndex + "]";

                field = CreateInspectable(arrayParent.Inspector, SeqIndex + ".", entryPath, 0, Depth + 1,
                                          new InspectableFieldLayout(layout), property, styleInfo);

                return(field.GetTitleLayout());
            }
コード例 #4
0
            /// <inheritdoc/>
            protected override GUILayoutX CreateKeyGUI(GUILayoutY layout)
            {
                keyLayout = layout;
                InspectableDictionaryGUI dictParent = (InspectableDictionaryGUI)parent;
                SerializableProperty property = GetKey<SerializableProperty>();

                string entryPath = dictParent.Path + "Key[" + RowIdx + "]";
                fieldKey = CreateInspectable(dictParent.Inspector, "Key", entryPath, 0, Depth + 1,
                    new InspectableFieldLayout(layout), property);

                return fieldKey.GetTitleLayout();
            }
コード例 #5
0
ファイル: InspectableList.cs プロジェクト: Ruu/BansheeEngine
            /// <inheritdoc/>
            protected override GUILayoutX CreateGUI(GUILayoutY layout)
            {
                InspectableListGUI listParent = (InspectableListGUI)parent;
                SerializableProperty property = GetValue<SerializableProperty>();

                string entryPath = listParent.Path + "[" + SeqIndex + "]";
                field = CreateInspectable(listParent.Inspector, SeqIndex + ".", entryPath, 0, Depth + 1,
                    new InspectableFieldLayout(layout), property);

                return field.GetTitleLayout();
            }