Commit Graph

38 Commits

Author SHA1 Message Date
Hugues Ross 4afde6ef83 Fix luacheck warnings 2020-06-27 13:54:01 -04:00
Hugues Ross f528ac78bd Fix bounds-checking on marker pages 2020-06-27 13:45:44 -04:00
Hugues Ross 40e1f474c1 Properly update scale when upgrading a map 2020-06-13 17:13:07 -04:00
Hugues Ross 9bcc2e717c Various fixes 2020-06-13 16:33:41 -04:00
Hugues Ross 4fedd4275e Add configuration settings 2020-06-13 16:21:34 -04:00
Hugues Ross cef6495f4a Fix coordinates in marker calls 2020-06-13 12:14:07 -04:00
Hugues Ross 675281b8c3 Properly handle map items missing metadata 2020-06-13 11:59:08 -04:00
Hugues Ross c0e541a7e7 Fix coordinates being handled incorrectly in some places 2020-06-13 11:50:43 -04:00
Hugues Ross db45633b16 Documentation pass, part 2 2020-06-13 08:50:36 -04:00
Hugues Ross 6187137158 Refactor marker_lookup out of init.lua 2020-06-13 08:01:56 -04:00
Hugues Ross ad9c5e77b0 Move map item functions into a separate api object 2020-06-10 19:45:13 -04:00
Hugues Ross a2e6597763 Refactor map creation / indexing into api object 2020-06-10 19:29:06 -04:00
Hugues Ross 30249edf44 Make fill_local a function of map objects 2020-06-10 19:23:03 -04:00
Hugues Ross 51ef36c50c Refactor audio out of api.lua 2020-06-10 07:02:46 -04:00
Hugues Ross 43406ded7e OO-ifiy map tables 2020-06-09 20:20:54 -04:00
Hugues Ross 3510bbcb35 Return map formspec methods instead of modifying the api object 2020-06-08 19:49:23 -04:00
Hugues Ross 5af69ccd14 Move marker formspec code into items.lua 2020-06-08 18:12:05 -04:00
Hugues Ross 8aba2d8c57 Parameterize biome / marker tables 2020-06-08 07:26:18 -04:00
Hugues Ross 93b6ab6ee8 items.lua: Start formspec cleanup and refactor map description into a function 2020-06-07 20:35:17 -04:00
Hugues Ross 43c193279d items.lua: Parameterize coordinate conversion functions 2020-06-07 18:31:42 -04:00
Hugues Ross bb03fd547b Cleanup unused vars in items.lua 2020-06-01 18:00:53 -04:00
Hugues Ross 7c667b04e7 Refactor out global variable 'data' 2020-06-01 07:59:34 -04:00
Hugues Ross 8f0e161b7c Add tooltips to the map formspec 2020-04-21 07:54:16 -04:00
Hugues Ross e16893f82e Add height mode toggle to maps 2020-04-21 07:36:48 -04:00
Hugues Ross 12b933ea1e Various map item fixes
- Fix appearance in hand/in item form
- Allow placed maps to be dug by punching them
- Properly save metadata when creating a new map for the first time
2020-04-18 20:10:02 -04:00
Hugues Ross 19ca1bf0f1 Add feedback sounds for table-related actions, and make sounds play for everyone 2020-04-18 11:29:09 -04:00
Hugues Ross fa95a8705e Add audio feedback for opening the map and editing markers 2020-04-18 10:24:26 -04:00
Hugues Ross af0a801801 Small refactor: Add some constants to map_formspec.lua
- Make map formspec calls return the formspec dimensions for more
  accurate marker editor palcement
2020-04-17 20:28:15 -04:00
Hugues Ross c0e1414a88 Fix marker editor ordering and add pagination 2020-04-16 19:50:03 -04:00
Hugues Ross 7c858d5264 Add skinned styling to the marker editor 2020-04-15 21:01:56 -04:00
Hugues Ross 4cc3a4cfaa Fix copied maps not retaining marker information 2020-04-11 15:36:15 -04:00
Hugues Ross a5ded9bc11 Add world coord -> map coord conversion method
- Fix some coordinate-related bugs with markers
2020-04-10 17:52:09 -04:00
Hugues Ross ade84c374d First draft marker editor in the map formspec 2020-03-28 09:51:38 -04:00
Hugues Ross bda796c101 Placed map improvements
- Make placed maps walkable
- Add proper hitbox for placed maps
- Let placed maps propagate sunlight
2020-03-20 20:38:46 -04:00
Hugues Ross 7bb3b544e2 Bugfixes
- Fix crash on map placement
- Add temp map texture
- Fix player marker on map
2020-03-20 08:02:30 -04:00
Hugues Ross 8f786cda9a Add map scale support to the advanced table 2020-03-08 10:34:20 -04:00
Hugues Ross 85eeb529b6 Remove home/death marker code 2020-03-08 10:06:26 -04:00
Hugues Ross d0f7c58c47 Initial commit 2020-02-16 12:55:07 -05:00