Пример #1
0
        public DebugUI(VASComponent component) : base(component)
        {
            InitializeComponent();
            _TextWriter = new StringWriter();

            _UpdateTimer = new Timer()
            {
                Interval = UPDATE_RATE
            };
            _UpdateTimer.Tick   += (sender, args) => UpdatetxtDebug(sender, args);
            _UpdateTimer.Enabled = false;
        }
Пример #2
0
        public SettingsUI(VASComponent component) : base(component)
        {
            InitializeComponent();

            UpdateCustomSettingsVisibility();

            BasicSettings = new Dictionary <string, CheckBox>
            {
                // Capitalized names for saving it in XML.
                ["Start"] = ckbStart,
                ["Split"] = ckbSplit,
                ["Reset"] = ckbReset,
            };

            _Component.ProfileChanged += (sender, gameProfile) => txtGameProfile.Text = ProfilePath;
        }
        internal ComponentUI(VASComponent component)
        {
            InitializeComponent();

            Component = component;

            SettingsUI   = new SettingsUI(Component);
            ScanRegionUI = new ScanRegionUI(Component);
            FeaturesUI   = new FeaturesUI(Component);
            DebugUI      = new DebugUI(Component);
            SetChildControlSettings(SettingsUI, tabSettings, "Settings");
            SetChildControlSettings(ScanRegionUI, tabScanRegion, "ScanRegion");
            SetChildControlSettings(FeaturesUI, tabFeatures, "Features");
            SetChildControlSettings(DebugUI, tabDebug, "Debug");

            tabScanRegion.SuspendLayout();
            tabFeatures.SuspendLayout();
            tabDebug.SuspendLayout();
        }
        public ComponentUI(VASComponent component)
        {
            InitializeComponent();

            Component = component;

            // The tabs are still created in this window so that the entire codebase doesn't have to be rewritten
            SettingsUI   = new SettingsUI(Component);
            ScanRegionUI = new ScanRegionUI(Component);
            FeaturesUI   = new FeaturesUI(Component);
            DebugUI      = new DebugUI(Component);

            SettingsWindow = new MainVASSettings();

            SettingsWindow.AddTab(SettingsUI, SettingsWindow.tabSettings, "Settings");
            SettingsWindow.AddTab(ScanRegionUI, SettingsWindow.tabScanRegion, "ScanRegion");
            SettingsWindow.AddTab(FeaturesUI, SettingsWindow.tabFeatures, "Features");
            SettingsWindow.AddTab(DebugUI, SettingsWindow.tabDebug, "Debug");

            this.Dock = DockStyle.Fill;
        }
Пример #5
0
 public FeaturesUI(VASComponent component) : base(component)
 {
     InitializeComponent();
     _Updating = false;
 }
Пример #6
0
 public ScanRegionUI(VASComponent component) : base(component)
 {
     InitializeComponent();
     FillboxPreviewType();
 }
 public AbstractUI(VASComponent component) : base()
 {
     _Component = component;
 }