Commit Graph

101 Commits

Author SHA1 Message Date
Hugues Ross
7c667b04e7 Refactor out global variable 'data' 2020-06-01 07:59:34 -04:00
Hugues Ross
acf04377bf Add gitlab CI configuration to run luacheck automatically 2020-06-01 07:33:57 -04:00
Hugues Ross
1293c0c55c Add luacheck configuration 2020-06-01 07:32:12 -04:00
Hugues Ross
efa93baa97 Fix seed format 2020-06-01 07:31:38 -04:00
Hugues Ross
7c55cfaeaf Various command-related fixes 2020-04-26 10:21:24 -04:00
Hugues Ross
8ccf1afbb6 Table UI adjustments 2020-04-23 07:13:23 -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
777f09fbe7 Add height mode to map api, and scale in map command 2020-04-21 07:29:30 -04:00
Hugues Ross
e6035d9e2b Rework size/scaling
- Size is now always large
- Size settings replaced by 4 scaling levels: 1x, 2x, 4x, and 8x
2020-04-20 19:38:33 -04:00
Hugues Ross
bb6b1233cd Scale down height based on the map scaling 2020-04-20 19:33:26 -04:00
Hugues Ross
fcb6de872c Fix player position on scaled maps 2020-04-20 19:27:43 -04:00
Hugues Ross
b4acab145e Fix bug with costs being deducted incorrectly 2020-04-20 06:28:52 -04:00
Hugues Ross
59c359a3a3 'Disable' table buttons when an action is invalid 2020-04-19 18:23:28 -04:00
Hugues Ross
913cd03594 Update table material costs/values when items are placed/removed from them 2020-04-19 15:30:18 -04:00
Hugues Ross
05a831d643 Add basic validation for moving items into the table's slots 2020-04-19 13:50:54 -04:00
Hugues Ross
840c1b0105 Split table background in two to handle different UI sizes better 2020-04-19 09:33:24 -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
8642fbfa1b Add detail texture support for map skin data 2020-04-18 09:15:13 -04:00
Hugues Ross
62ace2394b Replace map variant randomness with perlin noise 2020-04-18 07:53:32 -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
0f706533b6 Fix numerous scan-related bugs 2020-04-11 14:02:12 -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
c27d96b89f Formspec marker API fixes
- Fix marker count not properly incrementing
- Fix registration of ids with : in their names
2020-04-10 17:23:35 -04:00
Hugues Ross
a964f42270 Mild refactoring 2020-04-10 07:14:47 -04:00
Hugues Ross
a45e3ca66a Fix missing player marker 2020-04-10 07:00:29 -04:00
Hugues Ross
da2c510835 Add advanced table skin 2020-04-03 19:39:22 -04:00
Hugues Ross
aee49162b8 Fix hardcoded label color in fs.cost() 2020-04-03 19:35:59 -04:00
Hugues Ross
2a618a4861 Add standard table assets 2020-04-02 19:37:09 -04:00
Hugues Ross
f31dc4d32d Fix simple table bg image 2020-04-02 18:31:11 -04:00
Hugues Ross
966b407637 Add initial table formspec skinning
- Update table formspec design
- Add styling for simple table
2020-04-02 07:06:50 -04:00
Hugues Ross
2b204f67b4 Add advanced table assets 2020-03-29 20:34:48 -04:00
Hugues Ross
38d24aba7d Split off game support and turn into a pure API mod
- Add API table for skinning
2020-03-29 14:12:10 -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
26e4377cf9 Add marker registration function and support for multi-detail markers 2020-03-17 07:15:38 -04:00
Hugues Ross
23da5f8900 Add support for displaying markers on maps 2020-03-17 06:52:15 -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
17e0ade3f4 Fix crash when scanning biome data
- Cleanup table node definitions a little
2020-03-08 09:56:12 -04:00
Hugues Ross
950414baf2 Various changes 2020-03-07 10:26:24 -05:00
Hugues Ross
bce0db5e7a Add graphics for 2nd tier table 2020-02-25 20:23:09 -05:00
Hugues Ross
1404058a06 Add height data to maps 2020-02-19 19:56:31 -05:00
Hugues Ross
e5371e19ed Record heightmap when scanning
- Use heightmap value for more granular biome texture selection
2020-02-16 20:18:47 -05:00