예제 #1
0
        public DocumentItem(JsonObject document, IdAllocator idAllocator)
        {
            id   = idAllocator.NextId();
            icon = (Texture2D)EditorGUIUtility.IconContent(
                "GameObject Icon"
                ).image;

            SetDocument(document);
        }
예제 #2
0
        public SessionIdItem(
            ClientSessionIdRepository repository,
            IdAllocator idAllocator
            )
        {
            this.Repository  = repository;
            this.idAllocator = idAllocator;

            string sessionId = Repository.GetSessionId() ?? "null";

            id          = idAllocator.NextId();
            displayName = "Session ID [" + sessionId + "]";
            icon        = (Texture2D)EditorGUIUtility.IconContent(
                "CloudConnect"
                ).image;
        }
예제 #3
0
        public EmulatedDatabasesItem(
            ArangoRepository repository,
            IdAllocator idAllocator
            )
        {
            this.Repository  = repository;
            this.idAllocator = idAllocator;

            id          = idAllocator.NextId();
            displayName = "Emulated databases";
            icon        = (Texture2D)EditorGUIUtility.IconContent(
                "d_Profiler.Physics"
                ).image;

            BuildChildren();
        }
예제 #4
0
        public CollectionItem(
            string collectionName,
            Collection collection,
            IdAllocator idAllocator
            )
        {
            CollectionName   = collectionName;
            Collection       = collection;
            this.idAllocator = idAllocator;

            id          = idAllocator.NextId();
            displayName = collectionName;
            icon        = (Texture2D)EditorGUIUtility.IconContent(
                "Folder Icon"
                ).image;

            BuildChildren();
        }
예제 #5
0
파일: DatabaseItem.cs 프로젝트: owen36/SLG
        public DatabaseItem(
            string databaseName,
            ArangoInMemory database,
            IdAllocator idAllocator
            )
        {
            DatabaseName     = databaseName;
            Database         = database;
            this.idAllocator = idAllocator;

            id          = idAllocator.NextId();
            displayName = databaseName;
            icon        = (Texture2D)EditorGUIUtility.IconContent(
                "Collab.BuildSucceeded"
                ).image;

            BuildChildren();
        }