public override void Start() { base.Start(); isVisible = true; canFocus = true; isInteractive = true; width = 740f; height = 40f; m_name = UIUtils.CreateLabel(this, 300f, height); m_name.textAlignment = UIHorizontalAlignment.Left; m_name.pivot = UIPivotPoint.MiddleLeft; m_name.relativePosition = new Vector3(10f, 0f); statusLabel = UIUtils.CreateLabelForGrid(this, m_name, 190f, height); m_triangles = UIUtils.CreateLabelForGrid(this, statusLabel, 150f, height); m_textureSize = UIUtils.CreateLabelForGrid(this, m_triangles, 90f, height); eventMouseEnter += (component, eventParam) => Background.opacity = Mathf.Lerp(baseBgOpacity, 1, 0.5f); eventMouseLeave += (component, eventParam) => Background.opacity = baseBgOpacity; eventClick += (component, p) => { Background.opacity = Mathf.Lerp(baseBgOpacity, 1, 0.75f); WorldInfoPanel.Show <CityServiceWorldInfoPanel>(m_meshData.position, m_meshData.instanceID); ToolsModifierControl.cameraController.SetTarget(m_meshData.instanceID, m_meshData.position, true); }; }