GreenXenith / minetest-tools

Minetest extension for Visual Studio Code
MIT License
28 stars 6 forks source link

Builtin Nodebox editor #25

Open AFCMS opened 1 year ago

AFCMS commented 1 year ago

Using ThreeJS or some similar libraries its possible to render 3D in a VSCode webview.

LoneWolfHT commented 1 year ago

A nodebox viewer (allowing you to preview manually written code) would be helpful, but I don't see myself using the editing feature

GreenXenith commented 1 year ago

I don't see myself using the editing feature

I don't see why we couldn't make it both a previewer and editor.

LoneWolfHT commented 1 year ago

If it turns out harder than you think then feel free to abandon it in favor of other things that could be implemented. :P

AFCMS commented 1 year ago

Here is a web based editor implementation:

https://github.com/LunaSquee/nodebox-editor

Editing is not a good as the original NodeBoxEditor by rubenwardy, but it can be a starting base.

I would see the integration in VSCode as a code action shown when you hover a nodebox definition.

I would suggest making a web based nodebox editor standalone and then integrate to VSCode so non-VSCode users can use it.