Перейти к содержанию

common information/macro key bind/en: различия между версиями

Материал из GravityWiki
Обновление для соответствия новой версии исходной страницы.
Обновление для соответствия новой версии исходной страницы.
 
(не показано 27 промежуточных версий 2 участников)
Строка 3: Строка 3:
|название=Macro Key Bind
|название=Macro Key Bind
|изобрразм=x230px
|изобрразм=x230px
|изображение= mkb.png
|изображение= Макро.png
|версия=1.7.10}}
|версия=1.7.10}}
'''Macro Key Bind''' - a modification added to the 1.7.10 server version of the [https://gravitycraft.net/rd/wiki GravityCraft] project, allows you to configure buttons to execute specified commands.
'''Macro Key Bind''' - a modification added to the 1.7.10 server version of the [https://gravitycraft.net/rd/wiki GravityCraft] project, allows you to configure buttons to execute specified commands.
Строка 15: Строка 15:
Next, the settings window will open:
Next, the settings window will open:


[[Файл:key2.png|none|Macro Key Bind settings window|мини|500x500пкс]]
[[Файл:Key2.png|none|Macro Key Bind settings window|мини|500x500пкс]]


There are the following 3 buttons in the lower left corner:
There are the following 3 buttons in the lower left corner:
Строка 27: Строка 27:
To create an object and configure it, click the “Button panel commands” button. After clicking this button, the following window will open:
To create an object and configure it, click the “Button panel commands” button. After clicking this button, the following window will open:


[[Файл:key3.png|none|<span class="mw-translate-fuzzy">337x337пкс</span>|мини|337x337пкс]]
[[Файл:Key3.png|none|Creating a Macro Key Bind object|мини|337x337пкс]]


First, click on the “Grid Settings” section and configure the workspace. After clicking on the above button, the workspace settings menu will open, where you can specify your settings:
First, click on the “Grid Settings” section and configure the workspace. After clicking on the above button, the workspace settings menu will open, where you can specify your settings:


[[Файл:key4.png|none|<span class="mw-translate-fuzzy">496x496пкс</span>|мини|496x496пкс]]
[[Файл:Key4.png|none|Grid parameters|мини|496x496пкс]]


Next, click “Add button,” after which the object will appear in the chat menu and can be configured and moved as needed.
Next, click “Add button,” after which the object will appear in the chat menu and can be configured and moved as needed.
Строка 37: Строка 37:
The button settings menu looks like this:
The button settings menu looks like this:


[[Файл:key5.png|none|<span class="mw-translate-fuzzy">494x494пкс</span>|мини|494x494пкс]]
[[Файл:Key5.png|none|Button settings menu|мини|494x494пкс]]


The button settings include the following fields:
The button settings include the following fields:
Строка 49: Строка 49:
<li>Do not close the GUI when clicked - the chat will not close after clicking the button;</li>
<li>Do not close the GUI when clicked - the chat will not close after clicking the button;</li>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Text color - change the color of the button text;</li>
<li>Цвет текста - изменят цвет текста кнопки;</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Background color - changes the background color of the buttons.</li>
<li>Цвет фона - изменяет цвет заднего фона кнопок.</li>
</ul>
</ul>
После создания кнопки можно задать ей исполняемые команды или отредактировать внешний вид по нажатию следующих клавиш в окне настройки Macro Key Bind:
After creating a button, you can assign commands to it or edit its appearance by pressing the following keys in the Macro Key Bind settings window:
<ul>
<ul>
<li>ЛКМ по кнопке - редактирование макроса;</li>
<li>Left mouse button on the button - edit macro;</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Right-click on the button to customize its appearance.</li>
<li>ПКМ по кнопке - настройка внешнего вида кнопки.</li>
</ul>
</ul>
Для создания макроса потребуется нажать ЛКМ по кнопке. Далее, откроется следующее меню настройки макроса:
To create a macro, left-click on the button. The following macro settings menu will open:  
</div>


[[Файл:key6.png|none|<span lang="ru" dir="ltr" class="mw-content-ltr">Меню настройки макроса</span>|мини|506x506пкс]]
[[Файл:Key6.png|none|Macro settings menu|мини|506x506пкс]]


<div lang="ru" dir="ltr" class="mw-content-ltr">
In the lower field, you need to specify a command or message. For example:
В нижнем поле надо указать команду или сообщение. Например:
<ul>
<ul>
<li>!Сообщение - отправить сообщение в глобальный чат;</li>
<li>!Message - send a message to the global chat;</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>@Message - send a message to the trading chat;</li>
<li>@Сообщение - отправить сообщение в торговый чат;</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Message - send a message to the local chat;</li>
<li>Сообщение - отправить сообщение в локальный чат;</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>/command - use the command.</li>
<li>/команда - использовать команду.</li>
</ul>
</ul>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
Also, when writing a command, you can specify the following arguments:
Также, при прописывании команды можно указать следующие аргументы:
<ul>
<ul>
<li>$$u - выводит список игроков, которые находятся в онлайне (Удобно для таких команд, как /tpa, /pay и т.д.);</li>
<li>$$u - displays a list of players who are online (useful for commands such as /tpa, /pay, etc.);</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>$$0−$$9 - displays a screen where you can enter a number of values and insert them by pressing a button;</li>
<li>$$0−$$9 - выводит экран в который вы можете вписать некоторое количество значений и вставлять их нажатием кнопки;</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>$$[CustomName] - instead of CustomName, you can enter any value, and when executing, you will be prompted for each value separately (if the values are repeated, it is better to use the previous argument).</li>
<li>$$[CustomName] - вместо CustomName можно вписать любое значение и при выполнении у вас будет запрашивать значение для каждого значения отдельно (если значения повторяются лучше использовать предыдущий аргумент).</li>
</ul>
</ul>
Если нужно написать несколько команд в одну кнопку то их нужно разделать символом | “. Например: /home | !Я дома
If you need to write several commands in one button, they must be separated by the symbol “|”. For example: /home | !I'm home
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
Example of using the $$u argument, which displays a list of online players: Select a player from the list and press Enter.
Пример использования аргумента $$u который выводит список игроков онлайн: Выбираем игрока в списке и нажимаем Enter
</div>


[[Файл:key7.png|none|<span lang="ru" dir="ltr" class="mw-content-ltr">Использование аргумента $$u</span>|мини|508x508пкс]]
[[Файл:Key7.png|none|Using the argument $$u|мини|508x508пкс]]


<div lang="ru" dir="ltr" class="mw-content-ltr">
Example of using the $$[CustomName] argument. In this case, <em>[text1]</em> and <em>[text2]</em>. It requests both arguments in turn:
Пример использования аргумента $$[CustomName]. В данном случае <em>[text1]</em>и<em>[text2]</em>. Он запрашивает оба аргумента по очереди:
</div>


[[Файл:key8.png|none|<span lang="ru" dir="ltr" class="mw-content-ltr">Ввод параметров для первого аргумента</span>|мини|509x509пкс]]
[[Файл:Key8.png|none|Entering parameters for the first argument|мини|509x509пкс]]
[[Файл:key9.png|none|<span lang="ru" dir="ltr" class="mw-content-ltr">Ввод параметров для второго аргумента</span>|мини|506x506пкс]]
[[Файл:Key9.png|none|Entering parameters for the second argument|мини|506x506пкс]]


<div lang="ru" dir="ltr" class="mw-content-ltr">
The result will be as follows:
Получится следующее:
</div>


[[Файл:key10.png|none|<span lang="ru" dir="ltr" class="mw-content-ltr">Пример использования</span>|мини|496x496пкс]]
[[Файл:Key10.png|none|Example of use|мини|496x496пкс]]

Текущая версия от 14:15, 30 октября 2025

Macro Key Bind
Версия
1.7.10


Macro Key Bind - a modification added to the 1.7.10 server version of the GravityCraft project, allows you to configure buttons to execute specified commands.

Usage

To start working with Macro Key Bind, open the chat and click on the GUI editor in the lower right corner:

GUI editor

Next, the settings window will open:

Macro Key Bind settings window

There are the following 3 buttons in the lower left corner:

  • Delete object;
  • Edit object (Change button size);
  • Object panel commands (adding and editing buttons).

To create an object and configure it, click the “Button panel commands” button. After clicking this button, the following window will open:

Creating a Macro Key Bind object

First, click on the “Grid Settings” section and configure the workspace. After clicking on the above button, the workspace settings menu will open, where you can specify your settings:

Grid parameters

Next, click “Add button,” after which the object will appear in the chat menu and can be configured and moved as needed.

The button settings menu looks like this:

Button settings menu

The button settings include the following fields:

  • Name - responsible for the button identifier (for more complex scripts);
  • Text - button name (You can also use various text modifiers. For example: &l - Bold and &c - Red);
  • Hide if not related;
  • Do not close the GUI when clicked - the chat will not close after clicking the button;
  • Text color - change the color of the button text;
  • Background color - changes the background color of the buttons.

After creating a button, you can assign commands to it or edit its appearance by pressing the following keys in the Macro Key Bind settings window:

  • Left mouse button on the button - edit macro;
  • Right-click on the button to customize its appearance.

To create a macro, left-click on the button. The following macro settings menu will open:

Macro settings menu

In the lower field, you need to specify a command or message. For example:

  • !Message - send a message to the global chat;
  • @Message - send a message to the trading chat;
  • Message - send a message to the local chat;
  • /command - use the command.

Also, when writing a command, you can specify the following arguments:

  • $$u - displays a list of players who are online (useful for commands such as /tpa, /pay, etc.);
  • $$0−$$9 - displays a screen where you can enter a number of values and insert them by pressing a button;
  • $$[CustomName] - instead of CustomName, you can enter any value, and when executing, you will be prompted for each value separately (if the values are repeated, it is better to use the previous argument).

If you need to write several commands in one button, they must be separated by the symbol “|”. For example: /home | !I'm home

Example of using the $$u argument, which displays a list of online players: Select a player from the list and press Enter.

Using the argument $$u

Example of using the $$[CustomName] argument. In this case, [text1] and [text2]. It requests both arguments in turn:

Entering parameters for the first argument
Entering parameters for the second argument

The result will be as follows:

Example of use