Example #1
0
        private void OnControlledCompanyProjectAdded(Scrum scrumObj)
        {
            ListViewElementProject newElement = CreateListViewElement(scrumObj.BindedProject);

            ButtonSelectorProjects.AddButton(newElement.GetComponent <Button>());
            ListViewCompanyProjects.AddControl(newElement.gameObject);
            newElement.Text.text = base.GetProjectListViewElementText(scrumObj.BindedProject);

            scrumObj.BindedProject.ProgressUpdated       += OnProjectProgressUpdated;
            scrumObj.BindedProject.Completed             += OnProjectCompleted;
            scrumObj.BindedProject.CompletionTimeUpdated += OnCompanyProjectCompletionTimeUpdated;

            SetListViewCompanyProjectsText();
        }
        private void OnControlledCompanyProjectAdded(Scrum scrumObj)
        {
            ListViewElementProject newElement = CreateListViewElement(scrumObj.BindedProject);

            newElement.Text.text         = GetProjectListViewElementText(scrumObj.BindedProject);
            newElement.FrontImage.sprite = scrumObj.BindedProject.Icon;
            ButtonSelectorProjects.AddButton(newElement.Button);

            ListViewCompanyProjects.AddControl(newElement.gameObject);

            scrumObj.BindedProject.ProgressUpdated += OnProjectProgressUpdated;
            scrumObj.BindedProject.Completed       += OnProjectCompleted;
            scrumObj.BindedProject.WorkerRemoved   += OnProjectWorkerRemoved;
            SetListViewCompanyProjectsText();
        }
Example #3
0
        private void OnProjectsMarketProjectAdded(SharedProject proj)
        {
            ListViewElementProject newElement   = CreateListViewElement(proj);
            MousePointerEvents     mousePtrEvts = newElement.GetComponent <MousePointerEvents>();

            mousePtrEvts.PointerDoubleClick += () =>
            {
                OnButtonTakeProjectClicked();
            };

            ButtonSelectorProjects.AddButton(newElement.Button);
            ListViewMarketProjects.AddControl(newElement.gameObject);
            newElement.Text.text         = GetProjectListViewElementText(proj);
            newElement.FrontImage.sprite = proj.Icon;
            SetListViewMarketProjectsText();

            proj.CompletionTimeUpdated += OnMarketProjectCompletionTimeUpdated;
        }