Commit Graph

73 Commits

Author SHA1 Message Date
Hugues Ross
490104f646 Switch coordinate conversion in commands.lua 2020-06-08 20:28:36 -04:00
Hugues Ross
8aed769b97 Remove material value lookup from global API 2020-06-08 20:21:58 -04:00
Hugues Ross
25319d8053 Remove all global refs from scanner, and return API 2020-06-08 20:08:24 -04:00
Hugues Ross
1f76359fbd map_formspec: Remove final cartographer.skin reference 2020-06-08 20:05:51 -04:00
Hugues Ross
1d3c6dec97 Move scan_queue to local scope 2020-06-08 20:03:44 -04:00
Hugues Ross
b42c9d051f Remove _cartographer global 2020-06-08 20:01:26 -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
9ce982c7cf map_formspec cleanup part 1 - Fix some long lines and start using gui API 2020-06-08 18:36:18 -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
d38a666f5a map_api.lua: Parameterize coordinate covnersion methods 2020-06-07 18:27:19 -04:00
Hugues Ross
28360f585c scanner.lua: Parameterize coordinate conversion methods 2020-06-07 18:20:35 -04:00
Hugues Ross
c26265e2c3 Table cleanup part 2 - use gui api 2020-06-07 18:09:58 -04:00
Hugues Ross
06b509ed94 Table cleanup part 1 - Replace global tables with file inputs 2020-06-02 19:36:33 -04:00
Hugues Ross
2461c66f99 Add experimental declarative GUI API
- Refactor marker UI to use the new API
2020-06-02 08:01:11 -04:00
Hugues Ross
9e47171b30 Remove unused vars from table code, fix bug in copy cost calculation 2020-06-01 18:30:21 -04:00
Hugues Ross
dc8cc1e10b More unused var cleanup 2020-06-01 18:22:08 -04:00
Hugues Ross
a761c9323f Replace fill globalstep with timer and fix axes 2020-06-01 18:10:26 -04:00
Hugues Ross
bb03fd547b Cleanup unused vars in items.lua 2020-06-01 18:00:53 -04:00
Hugues Ross
a9aa8d1891 Make skin_api return a simple table and assign in init.lua 2020-06-01 18:00:02 -04:00
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