void OnGUI() { GUI.Box(new Rect(Screen.width * 0.5f - 300f, Screen.height * 0.5f - 250f, 600f, 500f), "", guiSkin.customStyles[1]); GUI.BeginGroup(new Rect(Screen.width * 0.5f - 300f, Screen.height * 0.5f - 250f, 600f, 500f)); GUI.DrawTexture(new Rect(110, 20f, 150f, 114f), giantBombLogo, ScaleMode.ScaleToFit, true); GUI.Label(new Rect(300f, 42f, 220f, 70f), "Polygonally 3D Viewer", guiSkin.customStyles[0]); GUI.Label(new Rect(30f, 205f, 100f, 30f), "Search"); GUI.SetNextControlName("SearchInput"); searchInput = GUI.TextField(new Rect(120f, 200f, 435f, 30f), searchInput, guiSkin.textField); GUI.Label(new Rect(120f, 232f, 435f, 20f), "Eg: Pikmin (franchise), Man (character). Platforms aren't supported yet", guiSkin.customStyles[3]); GUI.Label(new Rect(30f, 275f, 100f, 30f), "Search Type"); resourceTypePopup.Draw(); if (string.IsNullOrEmpty(searchInput) == false && searchInput.Trim().Length != 0) { if (Event.current.keyCode == KeyCode.Return) { SettingsManager.LoadSearch(searchInput, resourceTypes[resourceTypePopup.selectedItem]); } if (GUI.Button(new Rect(420f, 380f, 100f, 40f), "Search", guiSkin.button)) { SettingsManager.LoadSearch(searchInput, resourceTypes[resourceTypePopup.selectedItem]); } } GUI.Label(new Rect(25f, 450f, 400f, 40f), "Created by Jesse Stiller. This program is Whiskey powered."); GUI.EndGroup(); }