Ticket #1720: gui_button_queueing.patch

File gui_button_queueing.patch, 687 bytes (added by Imarok, 8 years ago)

Allow queueing with the command buttons by pressing them only once

  • binaries/data/mods/public/gui/session/input.js

     
    927940                var action = determineAction(ev.x, ev.y);
    928941                if (!action)
    929942                    break;
    930                 preSelectedAction = ACTION_NONE;
    931                 inputState = INPUT_NORMAL;
     943                if (!Engine.HotkeyIsPressed("session.queue"))
     944                {
     945                    preSelectedAction = ACTION_NONE;
     946                    inputState = INPUT_NORMAL;
     947                }
    932948                return doAction(action, ev);
    933949            }
    934950            else if (ev.button == SDL_BUTTON_RIGHT && preSelectedAction != ACTION_NONE)