Ejemplo n.º 1
0
        /// <summary>
        /// Adds controls (custom tab pages containing keybindingControls) for displaying each keybinding
        /// </summary>
        public void AddKeyBindingGuiControls()
        {
            for (int kmi = 0; kmi < keyMaps.keyMaps.Count; kmi++)
            {
                FlowLayoutTabPage fltp = new FlowLayoutTabPage();
                tcControlGroups.TabPages.Add(fltp);
                KeyMap km = keyMaps.keyMaps.Values[kmi];
                fltp.Text = km.Alias;
                foreach (Input.KeyBinding kb in km.KeyBindings.Values)
                {
                    KeyBindingControl kbc = new KeyBindingControl(kb);

                    fltp.AddControl(kbc);
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds controls (custom tab pages containing keybindingControls) for displaying each keybinding
        /// </summary>
        public void AddKeyBindingGuiControls()
        {
            for (int kmi = 0; kmi < keyMaps.keyMaps.Count; kmi++)
            {
                FlowLayoutTabPage fltp = new FlowLayoutTabPage();
                tcControlGroups.TabPages.Add(fltp);
                KeyMap km = keyMaps.keyMaps.Values[kmi];
                fltp.Text = km.Alias;
                foreach (Input.KeyBinding kb in km.KeyBindings.Values)
                {
                    KeyBindingControl kbc = new KeyBindingControl(kb);

                    fltp.AddControl(kbc);
                }
            }
        }
Ejemplo n.º 3
0
 internal void AddControl(KeyBindingControl kbc)
 {
     flpBindings.Controls.Add(kbc);
     kbc.BindFieldClicked += new Handlers.voidEH(kbc_BindFieldClicked); // prevent multiple keybindingcontrols from being edited at the same time. that would cause anarchy.
 }
Ejemplo n.º 4
0
 internal void AddControl(KeyBindingControl kbc)
 {
     flpBindings.Controls.Add(kbc);
     kbc.BindFieldClicked += new Handlers.voidEH(kbc_BindFieldClicked); // prevent multiple keybindingcontrols from being edited at the same time. that would cause anarchy.
 }