public static Button NewCheckbox(Box parent, string text, bool on) { var r = new Button(parent, text, parent.FindStyle("toggle")); r.Pressed = on; r.PressedVisible = on; r.SetToggleMode(true); return(r); }
public Slider(Box parent, bool h_not_v, float v, float from, float to) : base(parent, parent.FindStyle(h_not_v ? "horizontalSlider" : "verticalSlider")) { RegisterInitializer(InitializeSuffixes); horizontal = h_not_v; val = v; valueVisible = v; min = from; max = to; thumbStyle = parent.FindStyle(horizontal ? "horizontalSliderThumb" : "verticalSliderThumb"); }
public PopupMenu(Box parent) : base(parent, "", parent.FindStyle("popupMenu")) { IsToggle = true; itemStyle = FindStyle("popupMenuItem"); popupStyle = FindStyle("popupWindow"); list = new ListValue(); SetInitialContentImage(GameDatabase.Instance.GetTexture("kOS/GFX/popupmenu", false)); RegisterInitializer(InitializeSuffixes); }
public PopupMenu(Box parent) : base(parent, "", parent.FindStyle("popupMenu")) { IsToggle = true; itemStyle = FindStyle("popupMenuItem"); popupStyle = FindStyle("popupWindow"); list = new ListValue(); SetInitialContentImage(Utilities.Utils.GetTextureWithErrorMsg("kOS/GFX/dds_popupmenu", false)); RegisterInitializer(InitializeSuffixes); }
public Label(Box parent, string text) : this(parent, text, parent.FindStyle("label")) { }
public Button(Box parent, string text) : this(parent, text, parent.FindStyle("button")) { }
public TextField(Box parent, string text) : base(parent, text, parent.FindStyle("textField")) { emptyHintStyle = FindStyle("emptyHintStyle"); RegisterInitializer(InitializeSuffixes); }
public ScrollBox(Box parent) : base(parent, LayoutMode.Vertical, parent.FindStyle("scrollView")) { hsbStyle = parent.FindStyle("horizontalScrollbar"); vsbStyle = parent.FindStyle("verticalScrollbar"); RegisterInitializer(InitializeSuffixes); }
public TextField(Box parent, string text) : base(parent, text, parent.FindStyle("textField")) { toolTipStyle = FindStyle("labelTipOverlay"); RegisterInitializer(InitializeSuffixes); }
public Box(Box parent, LayoutMode mode) : this(parent, mode, parent.FindStyle("box")) { }
public TipDisplay(Box parent, string text) : this(parent, text, parent.FindStyle("tipDisplay")) { }