Ejemplo n.º 1
0
        /// <summary>
        /// Creates a BodyCatalogBrowser. Only used by the 
        /// CAS (Create A Sim) screen.
        /// </summary>
        /// <param name="X">The X-coordinate of the BodyCatalogBrowser.</param>
        /// <param name="Y">The Y-coordinate of the BodyCatalogBrowser.</param>
        /// <param name="strID">The string ID of the BodyCatalogBrowser.</param>
        /// <returns>A new UICollectionViewer instance.</returns>
        public UICollectionViewerOutfits CreateBodyCatalogBrowser(int X, int Y, string strID)
        {
            //0x1d00000010  ./avatardata/bodies/collections/ea_male.col
            //0x1e00000010  ./avatardata/bodies/collections/ea_female.col
            UICollectionViewerOutfits viewer = new UICollectionViewerOutfits(X, Y, 39, 78, 6, 6, 33, 70, 2, 2, 2, 8, 0x1d00000010, 0x1e00000010, this, strID, m_ScreenMgr);

            m_UIElements.Add(viewer);

            return viewer;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a BodyCatalogBrowser. Only used by the 
        /// CAS (Create A Sim) screen.
        /// </summary>
        /// <param name="X">The X-coordinate of the BodyCatalogBrowser.</param>
        /// <param name="Y">The Y-coordinate of the BodyCatalogBrowser.</param>
        /// <param name="strID">The string ID of the BodyCatalogBrowser.</param>
        /// <returns>A new UICollectionViewer instance.</returns>
        public UICollectionViewerOutfits CreateBodyCatalogBrowser(float X, float Y, string strID)
        {
            try
            {
                UICollectionViewerOutfits viewer = new UICollectionViewerOutfits(X, Y, 39, 78, 6, 6, 33, 70, 2, 2, 2, 8, (ulong)FileIDs.CollectionsFileIDs.ea_male, (ulong)FileIDs.CollectionsFileIDs.ea_female, this, strID, m_ScreenMgr);

                m_UIElements.Add(viewer);

                return viewer;
            }
            catch (Exception e)
            {
                Log.LogThis("Exception in UIScreen.CreateBodyCatalogBrowser!", eloglevel.error);
                return null;
            }
        }