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

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

Материал из GravityWiki
Новая страница: «General Information/Macro Key Bind»
 
Обновление для соответствия новой версии исходной страницы.
 
(не показано 47 промежуточных версий 2 участников)
Строка 3: Строка 3:
|название=Macro Key Bind
|название=Macro Key Bind
|изобрразм=x230px
|изобрразм=x230px
|изображение= mkb.png
|изображение= Макро.png
|версия=1.7.10}}
|версия=1.7.10}}
<div lang="ru" dir="ltr" class="mw-content-ltr">
'''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''' - модификация добавленная на сервера версии 1.7.10 проекта [https://gravitycraft.ru/rd/wiki GravityCraft], позволяет настроить кнопки на выполнение заданных команд.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<span id="Использование"></span>
== Использование ==
== Usage ==
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
To start working with Macro Key Bind, open the chat and click on the GUI editor in the lower right corner:
Для начала работы с Macro Key Bind необходимо открыть чат и в нижнем правом углу нажать на GUI редактор:
[[Файл:key1.png|none|обрамить|GUI editor]]
</div>
[[Файл:key1.png|none|обрамить|<span lang="ru" dir="ltr" class="mw-content-ltr">GUI редактор</span>]]


<div lang="ru" dir="ltr" class="mw-content-ltr">
Next, the settings window will open:
Далее, откроется окно настройки:
</div>


[[Файл:key2.png|none|Окно настройки Macro Key Bind|мини|<span lang="ru" dir="ltr" class="mw-content-ltr">500x500пкс</span>]]
[[Файл:Key2.png|none|Macro Key Bind settings window|мини|500x500пкс]]


<div lang="ru" dir="ltr" class="mw-content-ltr">
There are the following 3 buttons in the lower left corner:
В левом нижнем углу есть следующие 3 кнопки:
<ul>
<ul>
<li>Удалить объект;</li>
<li>Delete object;</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Edit object (Change button size);</li>
<li>Редактировать объект (Изменить размер кнопки);</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Object panel commands (adding and editing buttons).</li>
<li>Команды панели объекта (Добавление и редактирование кнопок).</li>
</ul>
</ul>
Для создания объекта и дальнейшего его настройки необходимо нажать на кнопку "Команды панели кнопок". После нажатия на эту кнопку откроется следующее окно:
To create an object and configure it, click the “Button panel commands” button. After clicking this button, the following window will open:
</div>


[[Файл:key3.png|none|Создание объекта Macro Key Bind|мини|<span lang="ru" dir="ltr" class="mw-content-ltr">337x337пкс</span>]]
[[Файл:Key3.png|none|Creating a Macro Key Bind object|мини|337x337пкс]]


<div lang="ru" dir="ltr" class="mw-content-ltr">
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:
Первым делом необходимо нажать на раздел "Настройка сетки" и настроить рабочую область. После нажатия на вышеупомянутую кнопку откроется меню настройки рабочей области, где можно задать свои настройки:
</div>


[[Файл:key4.png|none|Параметры сетки|мини|<span lang="ru" dir="ltr" class="mw-content-ltr">496x496пкс</span>]]
[[Файл:Key4.png|none|Grid parameters|мини|496x496пкс]]


<div lang="ru" dir="ltr" class="mw-content-ltr">
Next, click “Add button,” after which the object will appear in the chat menu and can be configured and moved as needed.
Далее, необходимо нажать "Добавить кнопку", после чего объект появится в меню чата и его можно будет настроить и переместить куда необходимо.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
The button settings menu looks like this:
Меню настройки кнопки выглядит следующим образом:
</div>


[[Файл:key5.png|none|Меню настройки кнопки|мини|<span lang="ru" dir="ltr" class="mw-content-ltr">494x494пкс</span>]]
[[Файл:Key5.png|none|Button settings menu|мини|494x494пкс]]


<div lang="ru" dir="ltr" class="mw-content-ltr">
The button settings include the following fields:
В настройках кнопки есть следующие поля:
<ul>
<ul>
<li>Имя - отвечает за идентификатор кнопки (Для более сложных скриптов);</li>
<li>Name - responsible for the button identifier (for more complex scripts);</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Text - button name (You can also use various text modifiers. For example: &l - Bold and &c - Red);</li>
<li>Текст - название кнопки (Также можно использовать различные модификаторы текста. Например: &l - Жирный и &c - Красный);</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Hide if not related;</li>
<li>Скрыть если не связанная;</li>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<li>Do not close the GUI when clicked - the chat will not close after clicking the button;</li>
<li>Не закрыть GUI при клике - не будет закрыть чат после нажатия на кнопку;</li>
</div>


<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">506x506пкс</span>]]
[[Файл: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|Использование аргумента $$u|мини|<span lang="ru" dir="ltr" class="mw-content-ltr">508x508пкс</span>]]
[[Файл: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">509x509пкс</span>]]
[[Файл:Key8.png|none|Entering parameters for the first argument|мини|509x509пкс]]
[[Файл:key9.png|none|Ввод параметров для второго аргумента|мини|<span lang="ru" dir="ltr" class="mw-content-ltr">506x506пкс</span>]]
[[Файл: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">496x496пкс</span>]]
[[Файл: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