public void SetAboutData()
        {
            scrollbarAbout.value = 1; //set scrollbar to top

            //clear the transform
            foreach (Transform child in objList.transform)
            {
                Destroy(child.gameObject);
            }
            //build listing
            AddHeader("SOFTWARE");
            AddTextLine("NAME", "PROJECTION TOOLKIT");
            AddTextLine("VERSION", Application.version);
            AddTextLine("CREATED BY", "PETE CLEARY");
            AddTextLine("MODELS BY", "RICH HALL");
            TextLineButton btnSite = AddTextLineButton("SUPORT SITE", "www.piandmash.com", imgWebsiteLink);

            btnSite.OnButtonClick += BtnSite_OnButtonClick;
            AddSeperator();

            AddHeader("FUNDED BY");
            TextLineButton btnSitePi = AddTextLineButton("", "PI & MASH", imgWebsiteLink);

            btnSitePi.OnButtonClick += btnSitePi_OnButtonClick;
            TextLineButton btnCollusion = AddTextLineButton("", "COLLUSION", imgWebsiteLink);

            btnCollusion.OnButtonClick += btnCollusion_OnButtonClick;
            TextLineButton btnSiteArts = AddTextLineButton("", "ARTS COUNCIL ENGLAND", imgWebsiteLink);

            btnSiteArts.OnButtonClick += btnSiteArts_OnButtonClick;
            TextLineButton BtnCouncil = AddTextLineButton("", "KINGS LYNN & WEST NORFOLK BOROUGH COUNCIL", imgWebsiteLink);

            BtnCouncil.OnButtonClick += BtnCouncil_OnButtonClick;
            AddSeperator();
            string licenses = "MIT License";

            licenses += "\nCopyright(c) 2019, Pete Cleary, Rich Hall, Pi & Mash, Collusion";
            licenses += "\n";
            licenses += "\n";
            licenses += @"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/ or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:";
            licenses += "\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.";
            licenses += "\n";
            licenses += "\n";
            licenses += @"THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.";
            licenses += "\n\nSome icons were generated from FontAwesome under the license agreement at https://fontawesome.com/license";
            AddTextLine("LICENSES", licenses, true, false, 800);
        }
Пример #2
0
        public void SetData(ProjectionSite projectionSite)
        {
            _projectionSite = projectionSite;
            Header header = objTitle.GetComponent <Header>();

            header.SetData(_projectionSite.name);

            //clear the transform
            foreach (Transform child in objList.transform)
            {
                Destroy(child.gameObject);
            }
            //build listing
            AddHeader("OVERVIEW");
            AddTextLine("NAME", _projectionSite.name);
            AddTextLine("VERSION", _projectionSite.version);
            AddTextLine("LOCATION", _projectionSite.location.name);
            AddTextLine("CITY/TOWN", _projectionSite.location.town);
            TextLineButton btnLoc = AddTextLineButton("GEO LOCATION", _projectionSite.location.geoLocation.latLng, imgLocationIcon);

            btnLoc.OnButtonClick += BtnLoc_OnButtonClick;

            AddHeader("PROJECTORS");
            AddTextLine("COUNT", _projectionSite.projectors.Count.ToString());

            AddHeader("CAMERAS");
            AddTextLine("COUNT", _projectionSite.cameras.Count.ToString());

            AddHeader("DETAILS");
            AddTextLine("ID", _projectionSite.id);
            AddTextLine("VERSION ID", _projectionSite.versionId);
            AddTextLine("ASSET BUNDLE", _projectionSite.assetBundleName);

            AddHeader("AUDIT");
            AddTextLine("LAST UPDATED", _projectionSite.updatedAsString);
            AddTextLine("UPDATED BY", _projectionSite.updatedBy);
            AddTextLine("CREATED", _projectionSite.createdAsString);
            AddTextLine("CREATED BY", _projectionSite.createdBy);
        }
        public void SetData(ProjectionSite projectionSite, ApplicationManager applicationManager)
        {
            if (firstTime)
            {
                FileBrowser.AddQuickLink("Projects", applicationManager.rootPath + applicationManager.projectsFolder, null);
                FileBrowser.AddQuickLink("Users", "C:\\Users", null);
                firstTime = false;
            }

            _projectionSite     = projectionSite;
            _applicationManager = applicationManager;
            this.colorAlert     = applicationManager.colorAlert;
            _project            = new Project()
            {
                createdBy      = applicationManager.users.current.email,
                updatedBy      = applicationManager.users.current.email,
                projectionSite = _projectionSite,
                path           = applicationManager.rootPath + applicationManager.projectsFolder,
                siteId         = _projectionSite.id,
                siteVersionId  = _projectionSite.versionId
            };
            scrollbar.value = 1; //set scrollbar to top
            //clear the transform
            foreach (Transform child in objList.transform)
            {
                Destroy(child.gameObject);
            }
            //build listing
            AddHeader("PROJECT SETTINGS");
            _inputName             = AddEditTextLine("NAME", _project.name);
            _inputName.colorAltert = this.colorAlert;
            _inputName.input.Select();
            _folderLine = AddTextLineButton("FOLDER", _project.path, imgFolderIcon, false);
            _folderLine.OnButtonClick += _folderLine_OnButtonClick;
            _newFolderLine             = AddSwitch("CREATE NEW FOLDER", true);
            //build listing
            AddHeader("PROJECTION SITE");
            AddTextLine("NAME", _projectionSite.name);
            AddTextLine("VERSION", _projectionSite.version);
            switch (_projectionSite.status)
            {
            case ProjectionSiteStatus.Unknown:
                AddTextLine("VERSION STATUS", "UNKNOWN");
                break;

            case ProjectionSiteStatus.OutOfDate:
                AddTextLine("VERSION STATUS", "OUT OF DATE", false, true);
                break;

            case ProjectionSiteStatus.NotOnServer:
                AddTextLine("VERSION STATUS", "NOT ON SERVER", false, true);
                break;

            case ProjectionSiteStatus.UpToDate:
                AddTextLine("VERSION STATUS", "UP TO DATE");
                break;

            case ProjectionSiteStatus.NewOnServer:
                AddTextLine("VERSION STATUS", "NEW");
                break;
            }
        }
Пример #4
0
        public void SetData(ProjectionSite projectionSite, ApplicationManager applicationManager)
        {
            _projectionSite     = projectionSite;
            _applicationManager = applicationManager;
            this.colorAlert     = applicationManager.colorAlert;
            Header header = objTitle.GetComponent <Header>();

            header.SetData(_projectionSite.name);
            scrollbar.value = 1; //set scrollbar to top

            //clear the transform
            foreach (Transform child in objList.transform)
            {
                Destroy(child.gameObject);
            }
            //build listing
            AddHeader("OVERVIEW");
            AddTextLine("NAME", _projectionSite.name);
            AddTextLine("VERSION", _projectionSite.version);
            switch (_projectionSite.status)
            {
            case ProjectionSiteStatus.Unknown:
                TextLineButton btnUnknown = AddTextLineButton("VERSION STATUS", "UNKNOWN", imgRefreshIcon);
                btnUnknown.OnButtonClick += BtnUnknown_OnButtonClick;
                break;

            case ProjectionSiteStatus.OutOfDate:
                AddTextLine("VERSION STATUS", "OUT OF DATE", false, true);
                break;

            case ProjectionSiteStatus.NotOnServer:
                AddTextLine("VERSION STATUS", "NOT ON SERVER", false, true);
                break;

            case ProjectionSiteStatus.UpToDate:
                AddTextLine("VERSION STATUS", "UP TO DATE");
                break;

            case ProjectionSiteStatus.NewOnServer:
                AddTextLine("VERSION STATUS", "NEW");
                break;
            }
            AddTextLine("LOCATION", _projectionSite.location.name);
            AddTextLine("CITY/TOWN", _projectionSite.location.town);
            TextLineButton btnLoc = AddTextLineButton("GEO LOCATION", _projectionSite.location.geoLocation.latLng, imgLocationIcon);

            btnLoc.OnButtonClick += BtnLoc_OnButtonClick;
            AddTextLine("PROJECTOR STACKS", _projectionSite.projectors.Count.ToString());
            AddTextLine("CAMERAS", _projectionSite.cameras.Count.ToString());
            AddTextLine("NOTES", _projectionSite.notes, true);
            AddSeperator();

            AddProjectorStack(_projectionSite.projectors);

            AddCamera(_projectionSite.cameras, true);

            AddHeader("DETAILS");
            AddTextLine("ID", _projectionSite.id);
            AddTextLine("VERSION ID", _projectionSite.versionId);
            AddTextLine("ASSET BUNDLE", _projectionSite.assetBundleName);
            var textLineProjectResources = AddTextLine("PROJECT RECOURSES", string.Join("\n", _projectionSite.projectResources.ToArray()), true);

            textLineProjectResources.AlignValue();
            var textLineSiteResources = AddTextLine("SITE RECOURSES", string.Join("\n", _projectionSite.siteResources.ToArray()), true);

            textLineSiteResources.AlignValue();
            AddSeperator();


            AddHeader("AUDIT");
            AddTextLine("LAST UPDATED", _projectionSite.updatedAsString);
            AddTextLine("UPDATED BY", _projectionSite.updatedBy);
            AddTextLine("CREATED", _projectionSite.createdAsString);
            AddTextLine("CREATED BY", _projectionSite.createdBy);
            AddSeperator();
        }