Skip to content

Conversation

@qaisjp
Copy link
Contributor

@qaisjp qaisjp commented Mar 21, 2020

This adds a new console variable _beta_qc_rightclick_command that lets you execute a command of your choice when you right click the "quick connect" button.

By default this CVAR is set to reconnect, but you can set it to anything - connect orange.mtasa.com or nick timw0w.

This pull request replaces #1072 and improves on it by providing a solution for:

I'd say it's a "power tool" and if this eventually exposed in the settings menu, we can change the cvar to something neater.

How to use

To get the current value of the CVAR

Open the console, type _beta_qc_rightclick_command and press enter.

image

To change the value of the CVAR

Open the console, type _beta_qc_rightclick_command=YOUR COMMAND HERE, and press enter.

For example, _beta_qc_rightclick_command=nick timw0w.

image

How to make it work

Right click the "quick connect" button and it will execute the value of the setting as a command.

image

@qaisjp qaisjp added the enhancement New feature or request label Mar 21, 2020
qaisjp added 2 commits March 21, 2020 03:38
This variable lets you execute a command of your choice when you right
click the "quick connect" button.

By default this CVAR is set to "reconnect", but you can set it to
anything - "connect orange.mtasa.com" or "nick timw0w".

In the console, type "_beta_qc_rightclick_command" and press enter. This
will tell you the current value of the CVAR.

You can do "_beta_qc_rightclick_command=nick timw0w" to change the
value of the CVAR.
@qaisjp qaisjp force-pushed the feature/qc_rightclick branch from d652065 to 92e1c73 Compare March 21, 2020 03:38
Copy link
Member

@botder botder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, but executing ANY command could be problematic

@qaisjp qaisjp merged commit d1c6067 into master Mar 21, 2020
@qaisjp qaisjp deleted the feature/qc_rightclick branch March 21, 2020 16:15
@qaisjp qaisjp added this to the 1.6 milestone Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants