GithubHelp home page GithubHelp logo

Comments (5)

KvaGram avatar KvaGram commented on June 1, 2024 2

The video, sorry.

from bluemap.

TechnicJelle avatar TechnicJelle commented on June 1, 2024

I actually made an addon like this a while ago!
It's not as polished as what you're asking for, but it does work!
Here's the link: https://gist.github.com/TechnicJelle/6ae16856e8060b3bd9142c6d6dcbe3d2
It's not a normal plugin or mod, so the installation process is a bit different:
First, you need to download the file (or copy the code into a new text file manually)
Then you need to put it inside BlueMap's web folder. You will find that in your server's root, in the bluemap folder.
It should be the same place as the index.html file.
Then you need to register the file with BlueMap, which you do by editing webapp.conf.
Then find the scripts section and add it:

scripts: [
    "BlueMapDistanceMeasurer.js"
]

I hope this will be useful to you!
Feel free to edit this script further to polish it up more! This was mostly just a proof of concept.

from bluemap.

KvaGram avatar KvaGram commented on June 1, 2024

Nice, that tool is halfway there, judging by the video. Definitely wanna try it out.
But before I do, I need to know:
What are the controls, though? How do I activate or deactivate the feature on the front-end?
I wouldn't want to install a proof of concept feature that overwrites normal left-right click behavior for the other users.
If I did that, the other moderators might get mad at me :)

from bluemap.

TechnicJelle avatar TechnicJelle commented on June 1, 2024

It's always active, but it doesn't override anything. It just adds a small white line between the last two places you left-clicked.

Activating and deactivating the feature is indeed one of the things I didn't bother adding, back then. It shouldn't be that hard to do, though.
Well.. if you want an actual right-click menu, then it will be a bit harder.

But maybe you can change the controls from being "just left click any block" to a button in the (left-click) popup that appears when you click any block?
Or maybe when you press the space bar, it toggles on/off?

Oh and what did you mean with "judging by the ."? Is that sentence unfinished? :p

from bluemap.

TBlueF avatar TBlueF commented on June 1, 2024

Closing as Feature-Requests are meant to go into our Discord, not to GitHub. (See Contributing Guidelines) :)

from bluemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.