public override void Start() { base.Start(); relativePosition = new Vector3(438, 58); backgroundSprite = "MenuPanel2"; isVisible = false; canFocus = true; isInteractive = true; m_TableHeader = AddUIComponent <UILabel>(); m_TableHeader.name = "TableHeaderLabel"; m_TableHeader.relativePosition = new Vector3(pad + 124, 50); m_TableHeader.textColor = new Color32(206, 248, 0, 255); m_TableHeader.textScale = 1f; m_TableHeader.text = "Employment Workers vs Jobs"; m_BottomTableHeader = AddUIComponent <UILabel>(); m_BottomTableHeader.name = "BottomTableHeaderLabel"; m_BottomTableHeader.relativePosition = new Vector3(pad, 330f); m_BottomTableHeader.textColor = new Color32(206, 248, 0, byte.MaxValue); m_BottomTableHeader.textScale = 1f; m_BottomTableHeader.text = "Jobs COM OFF IND SRV TOT"; for (int i = 0; i < m_EmploymentLabels.Length; i++) { m_EmploymentLabels[i] = CreateEmploymentLabel(i); m_EmploymentValues[i] = CreateEmploymentValue(i); m_WorkplaceValues[i] = CreateWorkplaceValue(i); m_WorkspaceDetailLabels[i] = CreateWorkspaceDetailLabel(i); for (int j = 0; j < 5; j++) { m_WorkspacesDetailValues[j, i] = CreateWorkspaceDetailValue(i, j); } } var rpos = m_EmploymentValues[m_EmploymentValues.Length - 1].relativePosition.y + sep + 30; m_RadialPanel = AddUIComponent <UIChartPanel>(); m_RadialPanel.name = "ChartPanel"; m_RadialPanel.relativePosition = new Vector3(pad + 40, rpos); m_RadialPanel1 = AddUIComponent <UIChartPanel>(); m_RadialPanel1.RadialChartPrefix = "workplaces"; m_RadialPanel1.name = "WorkplacesChartPanel"; m_RadialPanel1.relativePosition = new Vector3(pad * 4 + UIChartPanel.panelSize.x + 30, rpos); var populationInfoViewPanel = UIView.library.Get <PopulationInfoViewPanel>(typeof(PopulationInfoViewPanel).Name); width = 450; height = populationInfoViewPanel.component.height; _title = AddUIComponent <UITitleContainer>(); _title.name = "EmploymentTitlePanel"; _title.IconSprite = "InfoIconPopulationPressed"; _title.TitleText = "Employment & Workplaces"; tooltip = "Employed workers by education level and total workers compared to workplaces"; }
public override void Start() { base.Start(); relativePosition = new Vector3(438, 58); backgroundSprite = "MenuPanel2"; isVisible = false; canFocus = true; isInteractive = true; m_TableHeader = AddUIComponent <UILabel>(); m_TableHeader.name = "TableHeaderLabel"; m_TableHeader.relativePosition = new Vector3(pad + 130, 50); m_TableHeader.textColor = new Color32(206, 248, 0, 255); m_TableHeader.textScale = 1f; m_TableHeader.text = "Employees Utilization"; for (int i = 0; i < m_EmploymentLabels.Length; i++) { m_EmploymentLabels[i] = CreateEmploymentLabel(i); m_EmploymentValues[i] = CreateEmploymentValue(i); //m_EmploymentSlider[i] = CreateEmploymentSlider(i); m_WorkplaceValues[i] = CreateWorkplaceValue(i); } var rpos = m_EmploymentValues[m_EmploymentValues.Length - 1].relativePosition.y + sep + 30; m_RadialPanel = AddUIComponent <UIChartPanel>(); m_RadialPanel.name = "ChartPanel"; m_RadialPanel.relativePosition = new Vector3(pad, rpos); m_RadialPanel1 = AddUIComponent <UIChartPanel>(); m_RadialPanel1.RadialChartPrefix = "workplaces"; m_RadialPanel1.name = "WorkplacesChartPanel"; m_RadialPanel1.relativePosition = new Vector3(pad * 4 + UIChartPanel.panelSize.x, rpos); var emp = UIView.library.Get <PopulationInfoViewPanel>(typeof(PopulationInfoViewPanel).Name); width = 450; //UIChartPanel.panelSize.x + pad * 2 + 100; height = emp.component.height; //m_RadialPanel.relativePosition.y + UIChartPanel.panelSize.y + pad + 50; _title = AddUIComponent <UITitleContainer>(); _title.name = "EmploymentTitlePanel"; _title.IconSprite = "InfoIconPopulationPressed"; _title.TitleText = "Employment & Workplaces"; tooltip = "Employed workers by education level and total workers compared to workplaces"; }