コード例 #1
0
 public void OnKeyValueChange(KeyTextBox o, EventKey e)
 {
     if (KeyChanged != null)
     {
         KeyChanged(o, e);
     }
 }
コード例 #2
0
 void ktxtReposition_KeyChanged(KeyTextBox o, EventKey e)
 {
     PSettings.PreferenceAll.Global.ChangeSizeAndPosition = o.HotKeyValue;
 }
コード例 #3
0
        void ktxtOverlaysHotkey3_KeyChanged(KeyTextBox o, EventKey e)
        {
            var parent = HelpFunctions.findParentByName(o, "pnlOverlays");

            if (parent.Name.Contains("Resource"))
                PSettings.PreferenceAll.OverlayResources.Hotkey3 = o.HotKeyValue;

            else if (parent.Name.Contains("Income"))
                PSettings.PreferenceAll.OverlayIncome.Hotkey3 = o.HotKeyValue;

            else if (parent.Name.Contains("Worker"))
                PSettings.PreferenceAll.OverlayWorker.Hotkey3 = o.HotKeyValue;

            else if (parent.Name.Contains("Apm"))
                PSettings.PreferenceAll.OverlayApm.Hotkey3 = o.HotKeyValue;

            else if (parent.Name.Contains("Army"))
                PSettings.PreferenceAll.OverlayArmy.Hotkey3 = o.HotKeyValue;

            else if (parent.Name.Contains("Maphack"))
                PSettings.PreferenceAll.OverlayMaphack.Hotkey3 = o.HotKeyValue;

            else if (parent.Name.Contains("Production"))
                PSettings.PreferenceAll.OverlayProduction.Hotkey3 = o.HotKeyValue;

            else if (parent.Name.Contains("Unit"))
                PSettings.PreferenceAll.OverlayUnits.Hotkey3 = o.HotKeyValue;

            else
                Messages.Show("Couldn't find parent!");
        }
コード例 #4
0
ファイル: KeyTextBox.cs プロジェクト: hfenigma/AnotherSc2Hack
 public void OnKeyValueChange(KeyTextBox o, EventKey e)
 {
     if (KeyChanged != null)
         KeyChanged(o, e);
 }