Commit Graph

88 Commits

Author SHA1 Message Date
Hugues Ross
6a3938d996 Refactor coordinate api into its own file 2020-06-13 07:50:34 -04:00
Hugues Ross
ca910ad29d Documentation pass, part 1
- Also added more optional parameters to the gui api
2020-06-13 07:41:56 -04:00
Hugues Ross
a6b96fa28f Fix obvious errors 2020-06-10 20:54:00 -04:00
Hugues Ross
a895acb978 Move autofill code into its own file 2020-06-10 20:49:21 -04:00
Hugues Ross
412e214f88 Fix remaining luacheck warnings 2020-06-10 20:10:15 -04:00
Hugues Ross
9099390842 Move material methods into separate api object 2020-06-10 20:01:58 -04:00
Hugues Ross
3d6ebe66c1 Move detail_texture into internal utility api 2020-06-10 19:54:28 -04:00
Hugues Ross
ad9c5e77b0 Move map item functions into a separate api object 2020-06-10 19:45:13 -04:00
Hugues Ross
e53bd8af41 Refactor marker api calls into marker_api.lua 2020-06-10 19:39:26 -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
d7f7210a2d Refactor biome calls into separate file 2020-06-10 19:18:36 -04:00
Hugues Ross
3f641f6d63 Fix remaining luacheck warnings in commands.lua 2020-06-10 07:06:59 -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
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