Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Idea" for an interaction screen #211

Merged
merged 17 commits into from
Apr 10, 2021

Conversation

lasnikr
Copy link
Contributor

@lasnikr lasnikr 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%

@lasnikr
Copy link
Contributor Author

lasnikr commented Apr 10, 2021

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.

None yet

2 participants