Пример #1
0
 public UIDropdownButton(float x, float y, float width, float height, int layer, Texture texName, UIText label) : this(x, y, width, height, layer, texName, label, null)
 {
 }
Пример #2
0
 /// <summary>
 /// Complete Declaration for UIDropdownButton
 /// </summary>
 /// <param name="x">X position on the screen</param>
 /// <param name="y">Y position on the screen</param>
 /// <param name="width">Distance to the left and right</param>
 /// <param name="height">Distance to the top and bottom</param>
 /// <param name="layer">Render layer</param>
 /// <param name="texName">Name of the texture</param>
 /// <param name="label">UIText label to be displayed on the dropdown button</param>
 /// <param name="dropdowns">array of UIButtons to consist of the dropdown options</param>
 public UIDropdownButton(float x, float y, float width, float height, int layer, Texture texName, UIText label, UIButton[] dropdowns) : base(x, y, width, height, layer, texName)
 {
     displayLabel = label;
     SetDropdowns(dropdowns);
     buttonAction = new Action(ToggleDropdowns);
 }