public override void SetComponent() { this.m_ListBox_ListBox = new ListBox[3]; this.m_ItemsCount = new int[3]; this.m_DrawTexture_Line = new DrawTexture[2]; this.m_DrawTexture_ListBG1 = (base.GetControl("DrawTexture_ListBG1") as DrawTexture); this.m_DrawTexture_Name1 = (base.GetControl("DrawTexture_Name1") as DrawTexture); this.m_ListBox_ListBox[0] = (base.GetControl("ListBox_ListBox0") as ListBox); this.m_ListBox_ListBox[0].Reserve = false; this.m_ListBox_ListBox[1] = (base.GetControl("ListBox_ListBox1") as ListBox); this.m_ListBox_ListBox[1].Reserve = false; this.m_ListBox_ListBox[2] = (base.GetControl("ListBox_ListBox2") as ListBox); this.m_ListBox_ListBox[2].Reserve = false; this.m_Label_Label4 = (base.GetControl("Label_Label4") as Label); this.m_DrawTexture_Line[0] = (base.GetControl("DrawTexture_Line1") as DrawTexture); this.m_DrawTexture_Line[1] = (base.GetControl("DrawTexture_Line2") as DrawTexture); for (int i = 0; i < 3; i++) { if (this.m_ListBox_ListBox[i].slider != null) { UnityEngine.Object.Destroy(this.m_ListBox_ListBox[i].slider.gameObject); } this.m_ListBox_ListBox[i].OffsetX = 0f; if (TsPlatform.IsMobile) { this.m_ListBox_ListBox[i].LineHeight = 80f; this.m_ListBox_ListBox[i].ColumnNum = 1; this.m_ListBox_ListBox[i].SetColumnWidth((int)this.m_ListBox_ListBox[i].GetSize().x, 0, 0, 0, 0, 32f); } else { this.m_ListBox_ListBox[i].LineHeight = 20f; this.m_ListBox_ListBox[i].ColumnNum = 1; this.m_ListBox_ListBox[i].SetColumnWidth((int)this.m_ListBox_ListBox[i].GetSize().x, 0, 0, 0, 0); } this.m_ListBox_ListBox[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ListBoxSelect)); this.m_ListBox_ListBox[i].AddLongTapDelegate(new EZValueChangedDelegate(this.ListBoxSelect)); } if (TsPlatform.IsWeb || TsPlatform.IsEditor || TsPlatform.IsAndroid) { float x = NkInputManager.mousePosition.x; float num = GUICamera.height - NkInputManager.mousePosition.y; base.SetLocation((float)((int)x), (float)((int)num)); } else { Vector3 vector = GUICamera.ScreenToGUIPoint(new Vector3(NkInputManager.GetTouch(0).position.x, GUICamera.height - NkInputManager.GetTouch(0).position.y, 1f)); base.SetLocation((float)((int)vector.x), (float)((int)vector.y)); } }