Exemplo n.º 1
0
 public void PostAttachToAct(FFXIVPingPlugin plugin)
 {
     trackBarOpacity_ValueChanged(this, EventArgs.Empty);
     NumericUpDownPositionOnValueChanged(this, EventArgs.Empty);
     CheckBoxClickthroughOnCheckedChanged(this, EventArgs.Empty);
     checkBoxShowOverlay_CheckedChanged(this, EventArgs.Empty);
     checkBoxAutoHide_CheckedChanged(this, EventArgs.Empty);
 }
Exemplo n.º 2
0
 public void AttachToAct(FFXIVPingPlugin plugin)
 {
     _machinaProbeService = plugin.MachinaService;
     _controller          = plugin.Controller;
     _controller.ActivatedProcessPathChanged += ControllerOnActivatedProcessPathChanged;
     _controller.GameProcessUpdated          += _workingThread.GameProcessUpdated;
     _controller.RefreshIntervalChanged      += ControllerOnRefreshIntervalChanged;
     _controller.OverlayTextTemplateChanged  += ControllerOnOverlayTextTemplateChanged;
 }
Exemplo n.º 3
0
        public void AttachToAct(FFXIVPingPlugin plugin)
        {
            _controller = plugin.Controller;

            _controller.OverlayMoved                += ControllerOnOverlayMoved;
            _controller.OpacityChanged              += ControllerOnOpacityChanged;
            _controller.ClickthroughChanged         += ControllerOnClickthroughChanged;
            _controller.OverlayContentChanged       += ControllerOnOverlayContentChanged;
            _controller.OverlayFontChanged          += ControllerOnOverlayFontChanged;
            _controller.OverlayAutoHideChanged      += ControllerOnOverlayAutoHideChanged;
            _controller.ShowOverlayChanged          += ControllerOnShowOverlayChanged;
            _controller.ActivatedProcessPathChanged += ControllerOnActivatedProcessPathChanged;
        }
Exemplo n.º 4
0
        public void PostAttachToAct(FFXIVPingPlugin plugin)
        {
            trackBarOpacity_ValueChanged(this, EventArgs.Empty);
            NumericUpDownPositionOnValueChanged(this, EventArgs.Empty);
            CheckBoxClickthroughOnCheckedChanged(this, EventArgs.Empty);
            checkBoxShowOverlay_CheckedChanged(this, EventArgs.Empty);
            checkBoxAutoHide_CheckedChanged(this, EventArgs.Empty);

            if (!UpdateChecker.IsEnabled)
            {
                // Hide update checker panel
                groupBoxUpdate.Visible = false;
            }
        }
Exemplo n.º 5
0
        public void AttachToAct(FFXIVPingPlugin plugin)
        {
            Settings.AddStringSetting(nameof(Language));
            Settings.AddStringSetting(nameof(OverlayFont));
            Settings.AddStringSetting(nameof(VersionIgnored));
            Settings.AddStringSetting(nameof(ShortcutHide));
            Settings.AddStringSetting(nameof(OverlayContentNormal));
            Settings.AddStringSetting(nameof(OverlayContentNoData));

            _controller = plugin.Controller;

            _controller.LanguageChanged            += ControllerOnLanguageChanged;
            _controller.OverlayFontChanged         += ControllerOnOverlayFontChanged;
            _controller.NewVersionIgnored          += ControllerOnNewVersionIgnored;
            _controller.ShortcutChanged            += ControllerOnShortcutChanged;
            _controller.OverlayTextTemplateChanged += ControllerOnOverlayTextTemplateChanged;
        }
Exemplo n.º 6
0
        public void AttachToAct(FFXIVPingPlugin plugin)
        {
            _plugin = plugin;
            var parentTabPage = plugin.ParentTabPage;

            parentTabPage.Controls.Add(this);
            parentTabPage.Resize += ParentTabPageOnResize;
            ParentTabPageOnResize(parentTabPage, null);

            var settings = plugin.Settings;

            // add settings
            settings.AddControlSetting(numericUpDownX);
            settings.AddControlSetting(numericUpDownY);
            settings.AddControlSetting(trackBarOpacity);
            settings.AddControlSetting(checkBoxClickthrough);
            settings.AddControlSetting(checkBoxShowOverlay);
            settings.AddControlSetting(checkBoxAutoHide);
            settings.AddControlSetting(checkBoxCheckUpdate);
            settings.AddControlSetting(checkBoxNotifyStableOnly);
            settings.AddControlSetting(checkBoxAdvancedPing);
            settings.AddControlSetting(numericUpDownRefreshInterval);
            settings.AddControlSetting(checkBoxDebugLogging);

            _controller = plugin.Controller;

            numericUpDownX.ValueChanged           += NumericUpDownPositionOnValueChanged;
            numericUpDownY.ValueChanged           += NumericUpDownPositionOnValueChanged;
            checkBoxClickthrough.CheckedChanged   += CheckBoxClickthroughOnCheckedChanged;
            comboBoxLanguage.SelectedIndexChanged += ComboBoxLanguageSelectedIndexChanged;

            _controller.SettingsLoaded        += ControllerOnSettingsLoaded;
            _controller.OverlayMoved          += ControllerOnOverlayMoved;
            _controller.LanguageChanged       += ControllerOnLanguageChanged;
            _controller.LogMessageAppend      += ControllerOnLogMessageAppend;
            _controller.OverlayFontChanged    += ControllerOnOverlayFontChanged;
            _controller.UpdateCheckingStarted += ControllerOnUpdateCheckingStarted;
            _controller.VersionChecked        += ControllerOnVersionChecked;
            _controller.ShortcutChanged       += ControllerOnShortcutChanged;
            _controller.ShortcutRegister      += ControllerOnShortcutRegister;
            _controller.ShortcutFired         += ControllerOnShortcutFired;
        }
Exemplo n.º 7
0
 public void PostAttachToAct(FFXIVPingPlugin plugin)
 {
     _workingThread.StartWorkingThread(_controller);
 }
Exemplo n.º 8
0
 public void AttachToAct(FFXIVPingPlugin plugin)
 {
     _controller = plugin.Controller;
 }
Exemplo n.º 9
0
 public void PostAttachToAct(FFXIVPingPlugin plugin)
 {
 }
Exemplo n.º 10
0
 public void AttachToAct(FFXIVPingPlugin plugin)
 {
     _plugin = plugin;
     plugin.Controller.GameProcessUpdated  += ControllerOnGameProcessUpdated;
     plugin.Controller.AdvancedPingEnabled += ControllerOnAdvancedPingEnabled;
 }