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

Formspec Improvements #2

Open
4 tasks done
BiLachner opened this issue Oct 22, 2016 · 1 comment
Open
4 tasks done

Formspec Improvements #2

BiLachner opened this issue Oct 22, 2016 · 1 comment
Milestone

Comments

@BiLachner
Copy link
Owner

BiLachner commented Oct 22, 2016

  • new buttons for the new features - may be a better similar design for all of them
  • rearrange the buttons make the formspec as small as possible
  • add an inventory, that can be opened with a button on the remote-formspec
  • the inventory should behave like a chest and you can drag and drop items between turtle and you own inventory
@BiLachner BiLachner changed the title Formspec Formspec for remote controll Oct 22, 2016
@BiLachner BiLachner changed the title Formspec for remote controll formspec for remote control Oct 22, 2016
@octacian
Copy link
Collaborator

I think the best way to do this is to reconsider the entire direction of the formspec. Instead of building a formspec that updates as the player presses a button, we should be building a text-based editor then a visual-based editor for players to interact with. When they press the "Run" button code could then be run. Take a look at my "editor" branch where I've already done a bit of work, but since I'll be unable to do much for at least a week, I committed my work so far.

To get it working properly, I still have to remove sounds and improve the environment as some things still cause the server to crash.

Inventory is quite simple. Though I've never done it before, all you've gotta do is look at the code in the nodes.lua file of the default mod and find the node register for default:chest. Just use the formspec and much of the code there simply adding a button at the top to switch between the inventory and the main formspec. From there it will be simple to get turtles to add nodes they break to the inventory. Or items they pick up.

@octacian octacian added this to the 0.1 milestone Nov 8, 2016
@octacian octacian changed the title formspec for remote control Formspec Improvements - Inventory Dec 2, 2016
@octacian octacian modified the milestones: 0.2, 0.1 Dec 4, 2016
@octacian octacian changed the title Formspec Improvements - Inventory Formspec Improvements Jan 21, 2017
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

No branches or pull requests

2 participants