32 Commits

Author SHA1 Message Date
Auke Kok
4fdbdc020b player atributes: use player:get_meta() instead. 2021-07-07 21:20:04 -07:00
Auke Kok
7ed72218e0 Don't translate the number. It is parsed by the form code. 2019-09-12 11:04:34 -07:00
Wuzzy
207de4dc2c Add I18N support
This adds I18N support for ITB by using Minetest 5.0.0's locale system.
2019-09-11 21:06:59 -07:00
Auke Kok
047ef1b578 Also show builder name in the inventory game tab. 2019-08-28 21:23:10 -07:00
Auke Kok
80cbd6d34a Add license headers to all lua files.
Some of these are copies from the respective origins from mtg,
to make sure we have headers everywhere listing the proper code.

I've relicensed spectator_mode from WT*PL to LGPL-2.1. No other
licenses were changed.
2018-06-21 22:56:48 -07:00
Auke Kok
2670782cfb Bugfix: Don't just *save* num_items after erase.
We also need to set the current box meta in memory to 0 num_items,
because otherwise it retains the old (non-0) value, and re-saves that
value when the box is saved.
2018-06-10 14:42:34 -07:00
Auke Kok
44e0ef1647 fsc: secure formspec code.
Implemented for terminal, and signs, rules, inspector and creator interface code.

Also, fix a bazillion usability bugs in here.
2017-12-27 17:46:00 -08:00
Auke Kok
4da5592e2f Listring for landscape menu, use torches for omitting instead of tools.
Tools still work, too, but torches stack.
2017-11-22 23:23:45 -08:00
Auke Kok
f7846eccae Also wipe build_time if you use erase/landscape functionality. 2017-10-23 10:28:18 -07:00
Auke Kok
3dab78e86e Erase num_items when landscaping/erasing a box. 2017-10-21 16:17:22 -07:00
Auke Kok
f7f155d23a Typo fix. 2017-10-16 11:27:29 -07:00
Auke Kok
4853bb65ed Add some minor FIXME's 2017-10-09 16:23:01 -07:00
Auke Kok
93cd821f91 Landscape/fill box option.
Allows players to fill the bottom of their box with an arbitrary
fill stack. The box is filled bottom-to-top, and can have holes.
Stack size determines the thickness of the layers. The box can't
be overfilled. Uses vmanip to fill, so it's very fast. Extra input
checking is done to assure user has the correct privs and token to
perform the action, as it is destructive.
2017-10-06 19:50:10 -07:00
Auke Kok
d979eac4d5 Allow players to erase box content.
This is strictly secured. Admins can wipe user boxes. A token
is generated and the user has to type the token to confirm they
want to erase it. Erasing is logged on the server. All data is
validated before being accepted.

Erasing is done with a single vmanip. Nodes with meta are removed
separately, to assure all node meta is gone afterwards.
2017-10-05 00:02:48 -07:00
Auke Kok
cd6438a222 Update node and tool description lines.
WIP. More need to be done.
2017-09-19 22:29:58 -07:00
Auke Kok
df5d238d05 Show the box number and name in the inventory game menu. 2017-09-18 22:57:42 -07:00
Auke Kok
e0734f68a1 Write some text to the player about music status. 2017-09-07 15:15:57 -07:00
Auke Kok
6330165a79 Fix music toggling. 2017-09-06 17:15:33 -07:00
Auke Kok
ad779d4b3e Slightly nudge this button down here. 2017-09-06 16:44:48 -07:00
Auke Kok
0db063dedd Stop music at these interactions as well. 2017-09-06 16:44:29 -07:00
Auke Kok
2c0ef18d2a Add music toggle.
Visible in all the game menus. It'll be the bottom one
since I'm lazy and don't want to reorder things too much.
2017-09-06 12:23:45 -07:00
Auke Kok
6d68976ccb Loop music after entering a box.
If a box is started with a "tag", then the music track code will
now continuously play tag_add songs (a table) after as long as the
player is in the box.

I've added a `create` tag as well so we can have music while editing
boxes.

Defaults to one song every 7 minutes.
2017-09-05 23:48:46 -07:00
Auke Kok
2a7254c489 Add conf mod to cache all settings.
Remove the need to call setting_get() all the time for no
reason, and parsing it.

All settings are now consolidated into a single namespace `conf`.
2017-04-29 20:57:58 -07:00
Auke Kok
3aea61a890 Fix misc errors, luacheck warning.
Turns out text fields are always sent on change, so always
process them and do not elseif out after one text field change
processing cycle.
2017-04-14 23:49:14 -07:00
Auke Kok
7edea4f84d Remove debug print. 2017-04-13 22:47:33 -07:00
Auke Kok
d69b74294b Skyboxes: select when editing!
Modified (stripped down) skybox mod. No priv or chat command,
hard coded 0 is default (off) skybox. Store by numerical value
in box meta.
2017-04-13 21:30:44 -07:00
Auke Kok
83334a1c18 3 skins.
Male, female, and unknown gender. Using appropriate names assuming
that "Jesse" can both be boy or girl names.

Uses sfinv. Always available to the player.
2017-04-01 22:43:32 -07:00
Ekdohibs
6cc91bc1d7 Menu: avoid a crash (still wondering why it crashed) 2017-02-14 12:45:53 +01:00
Auke Kok
6056ba51ae Remove a print. 2017-02-13 22:36:13 -08:00
Ekdohibs
43724a8211 Fix crash when editing lobby 2017-02-12 11:34:42 +01:00
Ekdohibs
3155e1cef3 Allow player to edit box name 2017-02-12 11:29:25 +01:00
Auke Kok
f06d87f092 Custom inventory menus.
This adds 3 menus for the inventory:
- lobby: pretty much empty for now.
- play: shows /leave button when playing in a box.
- edit: shows /save and /stopedit buttons while editing.
2017-02-05 23:54:15 -08:00