Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

The basics

Matei Adriel edited this page May 7, 2020 · 2 revisions

Navigating the editor

The editor has a panel on the left. To open the panel you can either:

  1. Press ctrl + b
  2. Click on the highlighted icon frmo the tab bar

The panel has multiple tabs. To open a particular tab click on it's icon (Note: if the panel is closed this won't open it as well, for example if the panel is close and focused on the settings tab and I want to open the explorer tab I would have to click on the explorer icon and then use one of the above ways of toggling the state of the panel)

The settings tab

This is by far the most simple tab in lunarbox at the moment. At the moment non-adnim users can only set the name of the project.

The add node tab

This tab is used to do anything related to nodes. The most important element here is the node list. For every node you can see any combination of the following icons:

  • The add icon adds the node to the current function
  • The edit node opens the content of that node in the editor
  • The delte node deletes the function

The nodes also show the type definition next to them

On top of the node list there's a search bar. You can use this search for specific nodes.

  • You can focus on the search bar at any point by pressing s
  • While focused on the search bar you can press Enter to add the best match to the current function
  • While focused on the search bar you can press ctrl + space to start editing the best match
  • While focused on the search bar you can press ctrl + shift + space to start editing the function with the exact same name as the search term or create it if it doesn't exist

Searching using the search bar will still show up all the nodes but in an order based on how much each node matches the search

At the bottom of this tab there's the create input button. This is used to create an argument for the custom function being edited at the moment. To learn more about custom function check out the wiki page about that

The explorer tab:

The same way the add node tab has everything node-related the explorer tab contains everything function related.

  • To create a new custom function simply click the add icon and type in the name.
  • To start editing a particular function click the name of that function

How to...

Connect an input to an output:

Click on the input and then on the output or the other way around.

After clicking on an input / output a bunch of inputs / outputs will become darker which manes you cannot connect to them (because they would either create a dependency cycle or the types don't match)

Delete a connection:

Click on that connection

Zoom

Scroll

Pan

Drag and drop the background with the right mouse button

Move a node

Drag the node using the left mouse button in the space between the inputs and the output

Other useful keybindings

  • To delete a node press delete or ctrl + backspace while holding it
  • To save the project use ctrl + s