Skip to content

Conversation

@user84918342
Copy link
Contributor

@user84918342 user84918342 commented Apr 10, 2021

I added a Module which opens a screen when the middle mouse button is clicked.
You can customize the screen via the command interaction where you can add or remove an entry, list or clear all.
An entry is constructed out of an alias ( which gets shown on the interaction screen ) and a command ( which runs once the alias on the screen is selected )
The command can be customized with following two options: %name and %suggestion%. %name will become the name of the entity which is focused when the screen is opened.
%suggestion% has to be at the start of the specified command. When it is present the command won´t be send to the chat immediately rather it will open the chat hud and just puts in the text of the command. This allows for commands like %suggestion /msg %user -> When the command is executed the chat hud will appear and you can type the rest of the command. Now you don´t have to type the hole name yourself if you are standing in front of a person you want to talk to.

Here a short example video (in the old GUI): https://streamable.com/y19dz7

This is in completely alpha state and propably generates merge conflicts 👍
Things to improve:

  • fix merge conflicts
  • better way to add and remove alias and command (maybe it´s own screen)
  • cleaner code (HashMap bad)
  • port to 1.16
  • more options like %name%

@user84918342
Copy link
Contributor Author

How is this possible? Why did it build sucessfully?

@BleachDev BleachDev merged commit 29cb49f into BleachDev:master Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants