Foreign/SonyLE/LevelEditorCore/GenericAdapters/IResolveable.cs
/// <summary>
/// Provides info for the ProjectLister tree view and other controls</summary>
/// <param name="info">Item info passed in and modified by the method</param>
Provides info for the ProjectLister tree view and other controls
Provides info for the ProjectLister tree view and other controls
public void GetInfo(ItemInfo info)
        {
            info.ImageIndex = (m_target != null)
                ? info.GetImageList().Images.IndexOfKey(LevelEditorCore.Resources.FolderRefImage)
                : info.GetImageList().Images.IndexOfKey(
                    LevelEditorCore.Resources.MissingFolderRefImage);
            IDocument gameDoc = Adapters.As<IDocument>(m_target);
            string name = GetAttribute<string>(s_nameAttribute);
            if (name == null) name = string.Empty;
            if (gameDoc != null && gameDoc.Dirty)
                name += "*";
            if (m_target == null && !string.IsNullOrEmpty(m_error))
            {
                name += " [ Error: " + m_error + " ]";
            }
            info.Label = name;
            info.IsLeaf = m_target == null;
            var lockable = this.As<ILockable>();
            if (lockable != null && lockable.IsLocked)
                info.StateImageIndex = info.GetImageList().Images.IndexOfKey(Sce.Atf.Resources.LockImage);
        }
public void GetInfo ( ItemInfo info ) { info . ImageIndex = ( m_target != null ) ? info . GetImageList ( ) . Images . IndexOfKey ( LevelEditorCore . Resources . FolderRefImage ) : info . GetImageList ( ) . Images . IndexOfKey ( LevelEditorCore . Resources . MissingFolderRefImage ) ; IDocument gameDoc = Adapters . As < IDocument > ( m_target ) ; string name = GetAttribute < string > ( s_nameAttribute ) ; if ( name == null ) name = string . Empty ; if ( gameDoc != null && gameDoc . Dirty ) name += " " ; if ( m_target == null && ! string . IsNullOrEmpty ( m_error ) ) { name += " " + m_error + " " ; } info . Label = name ; info . IsLeaf = m_target == null ; var lockable = this . As < ILockable > ( ) ; if ( lockable != null && lockable . IsLocked ) info . StateImageIndex = info . GetImageList ( ) . Images . IndexOfKey ( Sce . Atf . Resources . LockImage ) ; }
Provides info for the ProjectLister tree view and other controls
Provides info for the ProjectLister tree view and other controls
info
ItemInfo
Item info passed in and modified by the method
Item info passed in and modified by the method