23 Commits

Author SHA1 Message Date
Valentin Anger
16b541a0e1 Remove a false return in f_tablet that made Last unusable
Returning false in a register_on_player_receive_fields callback
activates the next registered callback.
We don't need to return false if there is a expected form incoming.
2017-01-04 13:56:28 +01:00
kamirama
2b612c7d67 usability improvements for tablet 2017-01-04 00:59:10 +01:00
Valentin Anger
12f876dee5 Fix tablet not being usable when pointing at nothing 2017-01-03 18:10:09 +01:00
Valentin Anger
a2a2190947 Merge branch 'master' of gitlab.com:SyrupThinker/minetest-mod-sparktech 2017-01-03 18:04:11 +01:00
Valentin Anger
1ce3ed7801 Nodes in group sparktech_energy_storeonbreak keep energy after break 2017-01-03 17:48:45 +01:00
kamirama
65a656a760 changed tablet formspec 2017-01-03 16:41:03 +01:00
kamirama
7123645cba added optional alt dig style for sparktools 2017-01-03 16:29:18 +01:00
Valentin Anger
6b35f8ccf9 Like 1d402e3c66d10eb5444b568a8365c28a6fc30121 for sparkdebug:tablet 2017-01-03 15:10:47 +01:00
Valentin Anger
1d402e3c66 Make sparkdebug:multimeter a tool and use on_place
The multimeter should appear in the tool tab and the usage
of sparktech tools should be consistent
2017-01-03 14:54:39 +01:00
Valentin Anger
d0eb74d9e5 Check for nil in the code field of the tablet form - Closes #13
When fields.code in the f_tablet form is nil replace it with an empty
string to prevent a type error in set_metadata
2017-01-03 14:49:06 +01:00
Valentin Anger
2b10b2eb40 Rename instawrench to debugwrench
The name instawrench is redundant as the sparkcore:wrench removes nodes
at the same speed
2017-01-03 14:41:58 +01:00
Valentin Anger
a4f648ce02 Use on_place for node removal with wrenches
Instead of mining a sparktech_techy node with a wrench
the wrench is "placed" to remove the node
2017-01-03 14:37:35 +01:00
Valentin Anger
ad1ddbfcf4 Switch to on_use for the multimeter - Closes #10 2017-01-03 12:52:18 +01:00
kamirama
8dbdd41cd2 changed group of sparkdebug:d_block 2017-01-02 21:18:51 +01:00
Valentin Anger
001dbb33f9 Add sparktech_techy group and wrenches - Closes #8
sparktech_techy is for technological nodes
- current sparktech nodes are only minable
  with a tool implementing this group
2017-01-02 20:53:44 +01:00
Valentin Anger
0e4cf52a31 Isolated tablet and d_block from sparkdebug init - Closes #4 and #5
Reduced the amount of global data:
- The last command is stored in the tablet item metadata
Limited tablet an tablet and multimeter stack size to 1
2017-01-02 19:55:47 +01:00
kamirama
60ac347ba3 cleaned up debug messages of sparkdebug - Closes #2 2016-12-31 13:50:44 +01:00
Valentin Anger
9c4b90ec12 Move sparktech global variable to sparkdebug - Closes #1
It is not required by sparktech
2016-12-31 14:41:24 +01:00
Valentin Anger
4ca694f0fe Improve multimeter output 2016-12-30 21:16:49 +01:00
Valentin Anger
99eee19d41 Add an example for settingtypes 2016-12-30 17:46:55 +01:00
Valentin Anger
64c64aeb3d Fix the tablet not working
After moving the code the formspec name hasn't been updated
2016-12-30 17:04:51 +01:00
Valentin Anger
9dfe0da584 Isolate multimeter logic and move it to sparkdebug
Removes "dependency" sparkdebug for sparktech
2016-12-30 17:00:48 +01:00
kamirama
c7299b007a moved debug components to a seperate module 2016-12-30 15:45:24 +01:00