Exemplo n.º 1
0
 public EditHotkeyScreen( Game game, Hotkey original )
     : base(game)
 {
     hotkeys = game.InputHandler.Hotkeys;
     origHotkey = original;
     curHotkey = original;
 }
Exemplo n.º 2
0
 static int CompareHotkeys(Hotkey a, Hotkey b)
 {
     return(b.Flags.CompareTo(a.Flags));
 }
Exemplo n.º 3
0
        void TextButtonClick( Game game, Widget widget )
        {
            LostFocus();
            ButtonWidget button = (ButtonWidget)widget;

            curHotkey = (Hotkey)button.Metadata;
            origHotkey = curHotkey;
            CreateEditingWidgets();
        }
        void TextButtonClick( Game game, Widget widget, MouseButton mouseBtn )
        {
            if( mouseBtn != MouseButton.Left ) return;
            LostFocus();
            ButtonWidget button = (ButtonWidget)widget;

            curHotkey = (Hotkey)button.Metadata;
            origHotkey = curHotkey;
            CreateEditingWidgets();
        }
Exemplo n.º 5
0
        void TextButtonClick( Game game, Widget widget )
        {
            LostFocus();
            ButtonWidget button = (ButtonWidget)widget;

            if( button.Metadata != null ) {
                curHotkey = (Hotkey)button.Metadata;
                origHotkey = curHotkey;
                // do stuff here
                CreateEditingWidgets();
            }
        }