示例#1
0
        /// <summary>
        /// Add a checkbox option.
        /// </summary>
        private Checkbox AddCheckbox(Panel panel, string key, bool isChecked)
        {
            Checkbox checkbox = DaggerfallUI.AddCheckbox(new Vector2(0, y), isChecked, panel);
            checkbox.Label.Text = GetText(key);
            checkbox.Label.TextColor = itemColor;
            checkbox.Label.TextScale = itemTextScale;
            checkbox.CheckBoxColor = itemColor;
            checkbox.ToolTip = defaultToolTip;
            checkbox.ToolTipText = GetInfo(key);
            y += itemSpacing;

            return checkbox;
        }
示例#2
0
        /// <summary>
        /// Add a checkbox option.
        /// </summary>
        private Checkbox AddCheckbox(Panel panel, string text, string tip, bool isChecked)
        {
            Checkbox checkbox = DaggerfallUI.AddCheckbox(new Vector2(0, y), isChecked, panel);

            checkbox.Label.Text      = text;
            checkbox.Label.TextColor = itemColor;
            checkbox.Label.TextScale = itemTextScale;
            checkbox.CheckBoxColor   = itemColor;
            checkbox.ToolTip         = defaultToolTip;
            checkbox.ToolTipText     = tip;
            y += itemSpacing;

            return(checkbox);
        }
 public override BaseScreenComponent OnWindow(ModSettingsWindow window, float x, float y, ref int height)
 {
     return(DaggerfallUI.AddCheckbox(new Vector2(x + 95, y), Value));
 }