void Start() { dropList = GetComponent<DropDownList> (); dropList.AddItems (new DropDownListItem ("No")); dropList.AddItems (new DropDownListItem ("Yes")); txt.text = (QualitySettings.vSyncCount == 0) ? ("No") : ("Yes"); }
// Use this for initialization void Start() { dropList = GetComponent<DropDownList> (); for (int i = 0; i < QualitySettings.names.Length; i++) { DropDownListItem newButton = new DropDownListItem (QualitySettings.names[i]); dropList.AddItems (newButton); } txt.text = QualitySettings.names[QualitySettings.GetQualityLevel()]; }
// Use this for initialization void Start() { dropList = GetComponent<DropDownList> (); resolutions = Screen.resolutions; for (int i = 0; i < resolutions.Length; i++) { DropDownListItem newButton = new DropDownListItem (ResToString(resolutions[i])); dropList.AddItems (newButton); } txt.text = ResToString(Screen.currentResolution); }
static public int Start(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); self.Start(); return(0); } catch (Exception e) { return(error(l, e)); } }
static public int get_Items(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); pushValue(l, self.Items); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_Items(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); System.Collections.Generic.List <UnityEngine.UI.Extensions.DropDownListItem> v; checkType(l, 2, out v); self.Items = v; return(0); } catch (Exception e) { return(error(l, e)); } }
static public int set_disabledTextColor(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); UnityEngine.Color v; checkType(l, 2, out v); self.disabledTextColor = v; return(0); } catch (Exception e) { return(error(l, e)); } }
static public int ToggleDropdownPanel(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); System.Boolean a1; checkType(l, 2, out a1); self.ToggleDropdownPanel(a1); return(0); } catch (Exception e) { return(error(l, e)); } }
static public int set_ItemsToDisplay(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); int v; checkType(l, 2, out v); self.ItemsToDisplay = v; return(0); } catch (Exception e) { return(error(l, e)); } }
static public int set_ScrollBarWidth(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); float v; checkType(l, 2, out v); self.ScrollBarWidth = v; return(0); } catch (Exception e) { return(error(l, e)); } }
static public int set_OverrideHighlighted(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); System.Boolean v; checkType(l, 2, out v); self.OverrideHighlighted = v; return(0); } catch (Exception e) { return(error(l, e)); } }
// Use this for initialization void Start() { dropList = GetComponent<DropDownList> (); savedCoords = GameObject.Find ("World Data Storage").GetComponent<WorldSavedCoordinates>(); movement = GameObject.Find ("World Loading Object").GetComponent<WorldMovement> (); coords = savedCoords.GetSavedLocations (); int numLocations = coords.GetLength (0) - 1; //Debug.Log (numLocations); for (int i = 0; i <= numLocations; i++) { string locationName = savedCoords.GetLocationName(i); DropDownListItem newButton = new DropDownListItem (locationName); dropList.AddItems (newButton); } }
static public int set_OnSelectionChanged(IntPtr l) { try { UnityEngine.UI.Extensions.DropDownList self = (UnityEngine.UI.Extensions.DropDownList)checkSelf(l); System.Action <System.Int32> v; int op = LuaDelegation.checkDelegate(l, 2, out v); if (op == 0) { self.OnSelectionChanged = v; } else if (op == 1) { self.OnSelectionChanged += v; } else if (op == 2) { self.OnSelectionChanged -= v; } return(0); } catch (Exception e) { return(error(l, e)); } }