97 Commits

Author SHA1 Message Date
9e83fe0a10 i18n: update i18n
- update i18n template and translation.
- fix lost translation context in code.
2025-08-26 21:54:32 +08:00
33fb1a65d3 chore: remove useless gitkeep 2025-08-26 20:47:06 +08:00
415cc98758 doc: update document
- add hint for gray virtools import export button
- add outcome of leaving blank ballance texture folder setting.
- update compile chapter according to the change of build scripts.
2025-08-26 20:42:11 +08:00
2d93ce1340 feat: allow export all object for virtools file. 2025-08-26 19:59:36 +08:00
1129872234 fix: fix UTIL_naming_convention rename in i18n files. 2025-08-25 14:22:42 +08:00
2b2b18cfa4 fix: add error report for invalid file path when importing or exporting virtools file.
- add error report for invalid file path when importing or exporting virtools to avoid BMapException was thrown. Reported by SongRui
2025-08-25 14:09:10 +08:00
b19800e37f fix: fix bug that there is no preset encoding names.
- fix the issue that there is no preset encoding names in list when enable plugin without any extra operations.
2025-08-25 13:53:57 +08:00
e14729500c fix: fix rail adders poll issue
- add Ballance Texture requirement for all rail adders because they need it.
2025-08-25 13:24:15 +08:00
48bfc54830 i18n: modify i18n file batchly.
- update translation context in i18n files batchly due to previous BME prototype changes.
2025-08-25 13:13:42 +08:00
7e74e42bd7 feat: add BME category display in blender.
- add BME category display in blender, including add menu and side menu.
2025-08-25 13:07:55 +08:00
96a81b165b feat: add category fields for BME.
- add category for BME prorotypes.
- update validator and extractor for this change.
2025-08-25 10:30:44 +08:00
0681f0d240 fix: optimize the ui layout for BME boolean property. 2025-08-20 14:40:14 +08:00
d700f1276a fix: fix the wrong showcase type of Is Sink field in BME prototype Flat. 2025-08-20 14:32:57 +08:00
3bea3d67b9 feat: add OP_OBJECT_game_view operator.
- add OP_OBJECT_game_view operator for changing blender render resolution to some game resolution presets.
2025-08-18 21:55:15 +08:00
ec41b7553a feat: add game camera feature.
- add game camera operator which allow user see camera view as Ballance game presented.
2025-08-18 16:02:50 +08:00
9e2539499e fix: fix wrong UI words in legacy align. 2025-08-04 13:50:56 +08:00
3a5cd1c937 feat: support macos arm64 arch
- specially thank doyaGu for compiling macos arm64 BMap binary.
2025-08-04 11:22:09 +08:00
1afa5f9893 fix: change the shape of BME floor terminal.
- change the shape of all BME floor terminal (normal, sink and wide) from 5x2.5 to 5x5 requested by Zzq and Lee623.
- change icons according to above changes.
- add some comment in prototype files.
2025-08-01 15:13:38 +08:00
1383e87104 feat: allow 3D Cursor as align source in legacy align operator.
- allow 3D Cursor as align source in legacy align operator. this feature is requested by Zzq.
- add icon for legacy align.
2025-08-01 15:13:21 +08:00
a2b8f41a21 fix: fix performance after adding sidebar panel.
- resolve a performance issue by removing useless feature.
- more details about this issue can be seen the content inside this commit.
2025-07-31 16:50:32 +08:00
93f23abeb9 feat: add Ballance menu in 3d view sidebar for convenient adding. 2025-07-31 12:02:40 +08:00
4ba3ff9e5a fix: fix the aftermath of changing EnumPropHelper.
- fix the generic error of EnumPropHelper.
- use EnumPropHelper in UTIL_ioport_shared.ExportParams field instead of raw Blender string.
- remove useless type hint in various modules.
2025-07-30 13:35:36 +08:00
a9a889a8fd refactor: use generic type in EnumPropHelper
- use typing.Generic in EnumPropHelper and its child classes.
- change Doxygen docstring into reStructedText docstring.
2025-07-30 10:56:24 +08:00
fc34b19a42 feat: allow exporting selected objects as Virtools file
- add Selected Objects option in exporting Virtools file window requested by ZZQ.
2025-07-29 21:43:59 +08:00
9e65d258d7 refactor: use JSON5 instead of JSON for BME prototype.
- use JSON5 for BME prototype description file instead of JSON to make us have ability that make comment in declaration files (TBD in future).
- upgrade corresponding scripts.
- confirm the finish of upgrading script into modern Python.
2025-07-29 21:14:02 +08:00
ab266a07fb fix: fix BME JSONs validator error 2025-07-24 22:03:42 +08:00
61c7709b97 chore: finish BME JSON validator 2025-07-24 21:51:01 +08:00
1044d4b450 chore: remove useless scripts 2025-07-24 14:55:59 +08:00
54edc4dab7 chore: finish BME JSONs extractor 2025-07-24 14:51:05 +08:00
f40efb0467 chore: finish icons builder
- finish icons builder in scripts.
2025-07-24 14:00:25 +08:00
10de948a79 feat: update scripts
- add meshes builder (copyer).
- fix json compressor.
2025-07-24 10:16:58 +08:00
0ae95e927f refactor: re-layput project
- move assets (raw jsons, icons, meshes and i18n data) into the root of repo.
- move script into the root of repo.
- modify blender manifest according to this changes.
- optimize gitignore.
2025-07-24 09:44:38 +08:00
9f591113f8 refactor: refactor toolset (not finished) 2025-07-23 22:35:47 +08:00
685a0b8066 fix: rotate 4 flames when creating sector pair.
- according to Lee623 report, rotate 90 degree for 4 flames startpoint when creating sector pair to correspond with models in ballance asset library.
2025-07-18 14:42:33 +08:00
a1a215ec19 fix: fix span between checkpoint and resetpoint.
- change the span between checkpoint and resetpoint to prevent paper ball model respawn offset error.
- the span between 4 flames and resetpoint now is 3.65
- the span for 2 flames now is 3.3258
- these data were measured by Lee623 and picked by mode number in all original levels (because there is no uniform number in original levels).
2025-07-18 14:30:18 +08:00
3bed920f11 refactor: rename some operators and modules.
- rename module OP_MTL_fix_all_material to OP_MTL_fix_all_materials.
- rename operator BBP_OT_fix_all_material to BBP_OT_fix_all_materials.
- rename module UTIL_naming_convension to UTIL_naming_convention.
- change some translation contexts to correspond with this change.
2025-07-18 14:13:19 +08:00
6dc82aade6 doc: update fake-bpy-module.
- update fake-bpy-module for dev and write its version, which is suit for blender 4.5, in doc.
2025-07-18 09:43:27 +08:00
ac6692cd97 feat: bump version up to 4.3
- update blender version to 4.5 LTS.
- there is no compatibility issue when porting to blender 4.5.
- bump plugin version up to 4.3 in manifest and document (which has not been updated a while).
2025-07-17 20:08:07 +08:00
14de9f3f1b i18n: update translation 2025-01-23 13:09:11 +08:00
dd64c0ce04 feat: finish work of release
- bump up version to 4.2
- update document about translation.
2025-01-21 10:10:36 +08:00
84f6baae6a i18n: basically finish translation 2025-01-20 22:38:29 +08:00
5afbf679ed i18n: update translations 2025-01-20 20:32:08 +08:00
89f5b5990d i18n: update translation 2025-01-20 18:21:14 +08:00
b441063061 i18n: first commit about i18n translation.
- add i18n translation files.
- add document about how to translate this plugin.
- fix some field descriptions in source code.
2025-01-20 16:08:46 +08:00
b96550ca5c feat: finish BME prototype improvement 2025-01-20 10:07:45 +08:00
cc74a2ca8b feat: add i18n for forgetten entries.
- add i18n for progress hints when importing or exporting virtools file.
- add i18n for naming convention report.
2025-01-19 10:52:20 +08:00
f9fe4af1fe feat: update BME structure 2025-01-19 10:29:58 +08:00
4a96906002 feat: update BME prototypes
- update BMe prototypes. add chris suggested component for future changes.
- add new 2 custom function in BME environment.
2025-01-18 19:09:32 +08:00
c448216496 doc: update document 2025-01-17 22:22:51 +08:00
f10c273067 fix: improve BME extractor
- improve BMe extractor with new added classes.
- I have written a half of BME validator, but I gave up now.
	* it takes too much time and I don't want to pay more on it. postpone it to next update.
	* I annotate all of BMe validator code for future implementation.
	* the improvement of BME json files (upgrade them to YAML format) also is postponed.
- change some interface in common.py. synchronize it to other modules using it.
2025-01-17 17:53:03 +08:00
04aa879c22 feat: finish i18n extract work
- masically finish u18n extract work (most fields are extracted)
2025-01-12 15:15:29 +08:00
4ffe29654b feat: add translation context for operators and their properties.
- add translation context for operator, menu, panel and etc. and their associated properties.
- improve some name and description but not finished.
- move reset BME material function inside BMEMaterialsHelper.
- rename variable of collection visitor in BME adder operator for clear meaning.
- replace some message box to report in ballance elements reset operator, BME materials reset operator and rail UV operator
2025-01-11 21:36:11 +08:00
1d7ac76d0e chore: update the generator of json
- add PO file extractor for BME prototypes.
- add validator for BME prototypes but not finished.
- update json builder script.
2025-01-09 21:41:52 +08:00
77315ffbea fix: fix previous commit remained issues.
- vt encodings in list showcase now works.
- modify some usage of message_box to Operator.report to make it more like blender suggested.
2025-01-08 20:20:10 +08:00
0862ecd269 feat: use list to display virtools encodings settings, instead of raw string.
- use list to show bmap encoding settings, instead of user input raw string. it will give a more obvisous interface.
	* add bmap encoding setting properties in ptrprop_resolver.
	* update ptrprop_resolver for more clear usage.
- following features has not been implemented yet.
	* default value for bmap encoding list.
	* the bridge function in ioport_shared module (filter empty item in result)
	* validate encoding list result when importing and exporting virtools file.
2025-01-08 13:21:35 +08:00
f4d3e48be2 refactor: add 2 classes to refactor old code which raise too much erros by linter.
- add TinyMutex to resolve the issue that we can not operate the virtools group infos of 2 individual objects.
	* use this new class for all class need resource mutex, such as ballance element, bme materials and etc.
- add CollectionVisitor to resolve that blender have bad document and type hint for runtime bpy.types.CollectionProperty.
	* now all visit to CollectionProperty are delegated by this class.
2025-01-06 15:12:14 +08:00
6ae8899912 feat: add new operator about convert curve to mesh with group infos.
- add a new operator which can converte selected object to mesh, and if object is curve and has bevel object, it will copy the virtools group info of bevel object at the same time.
- add a hint in virtools group panel to tell user that the virtools group of non-mesh object will not be saved.
2025-01-05 20:06:40 +08:00
76f1cdc3c7 fix: fix various rail creation issue.
- move rail creation function into an individual file, UTIL_rail_creator.py
- add flip options for screw rails. this allow user to create any types of screw rail they needed.
2025-01-04 20:13:20 +08:00
8105b110f2 feat: add default rail material when creating rail.
- add default rail material when creating rail.
	* add Rail material in bme material.
- remove negative screw radius feature when creating curve rail.
	* originally negative screw radius will cause normal flip issue when creating.
	* however, negative screw radius feature can no fulfill each shapes of screw style. it is more convenient using blender mirror feature after creating screw rail.
	* thus I remove this feature, not fix it (I can fix it).
2025-01-04 12:28:59 +08:00
acb87b3844 fix: fix step count error when exporting virtools file 2025-01-04 10:19:31 +08:00
94d5c934c6 fix: fix light direction issue when importing and exporting virtools file. 2025-01-03 23:42:44 +08:00
3372c7a4b7 feat: add light support in exporting virtools file.
Some checks failed
Publish docs via GitHub Pages / Deploy docs (push) Has been cancelled
- support light type when exporting virtools.
- both import and export virtools file now support light type. however there is a slight bug about light direction need to be resolved.
- fix bug that exporter throw exception if exported collection contain non-mesh object or exported object is not mesh object.
- fix the usage of BMMeshTrans according to upstream changes.
2025-01-03 17:36:44 +08:00
4181096a9e fix: redirect some reference of bpy.context to context passed by operator argument 2025-01-03 10:37:26 +08:00
89a5e6367b feat: improve name conflict strategy UI layout 2025-01-03 09:55:02 +08:00
cb893b770a feat: add light object support in importing virtools file.
- fix all `def poll(self)` to `def poll(cls)` to let it fit class method name convention.
- fix wrong progress counter when importing virtools file.
- add light support when importing virtools file.
- add corresponding conflict strategy and resolver for light.
2025-01-03 09:36:32 +08:00
2f08455518 feat: add virtools light features.
- add virtools light feature for blender light type and add all essential operators, functions and structs.
- remove PyBMap from repository. order builder fetch it on their own.
- update gitignore.
2024-12-31 14:40:41 +08:00
729e12ed7b feat: update virtools file importer and exporter
- use panel to organise property group in virtools file importer and exporter.
- move all ballance params and virtools params into ioport_shared module and enable different showcase according to the argument passed to show function presenting whether current window is importer or exporter.
- add multiple type ignore to ignore the error of bpy operator member field type hints.
2024-12-30 17:53:42 +08:00
fe47861bd0 fix: fix issue of BME module prototype 2024-11-02 17:44:06 +08:00
c894d88c54 doc: modify document to mark changes
- add universal encoding infos in documentation.
- bump up version to 4.1 for release.
2024-09-21 23:30:56 +08:00
c8d59ef5f4 feat: update PyBMap dependency.
- update PyBMap dependency.
- use BMap 0.2 instead of old one.
- change default encoding name string according to the change of LibCmo changes.
2024-09-21 22:59:14 +08:00
f5c50ae079 fix: fix legacy align issue.
- fix issus that legacy align can not align object with non-1 scale factors.
- refactor some functions in legacy align to have better looking.
- fix issus that legacy fail to align objects since second executing by forcely updating view layer.
2024-09-07 20:34:22 +08:00
b1199f6a21 doc: translate documentation 2024-07-27 11:44:35 +08:00
47a8d81ecd doc: translate documentation 2024-07-26 09:46:16 +08:00
24ac07a3b3 doc: translate documentation 2024-07-25 10:37:16 +08:00
b647d7256f doc: translate documentation 2024-07-24 13:49:13 +08:00
421f01b3db doc: translate documentation 2024-07-23 11:01:41 +08:00
f215d3487f doc: translate documentation 2024-07-22 16:40:52 +08:00
1661f82a07 doc: update english documentation 2024-07-21 14:42:02 +08:00
512e7e868b doc: add english documentation.
- add english documentation for install-plugin and tech-info chapters.
- modify gitignore because we do not need redist folder any more.
2024-07-20 10:26:50 +08:00
427bad4f6b fix: fix various trivial issues
- update blender_manifest.toml to the latest version and fix the issues raised by blender when packaging.
- use blender do packaging work. remove redist.py because blender_manifest.toml has gitignore like filter feature when packaging.
- update document about installing, configurating, building plugin for blender 4.2.
- update a document image for blender 4.2.
2024-07-19 15:25:38 +08:00
209d212287 fix: fix blender mesh writer issue.
- fix blender mesh writer with the reference of FBX Importer.
- ballance map importer now may works as expected (still need more review).
2024-07-18 20:23:21 +08:00
2271b0a621 fix: remove bl_info.
- remove bl_info in __init__.py because blender_manifest.toml has replace it.
2024-07-17 21:20:40 +08:00
6940428b88 fix: fix blender 4.2 mesh issue.
- fix issue that blender 4.2 lost use_auto_smooth and calc_split_normals. (it almost works but not perfect. still need more debugging)
- remove depracted material blend_mode. use modern one instead. (the modern setting make me consufes but it works)
2024-07-17 19:45:35 +08:00
aa602a7bb8 fix: update to blender 4.2 LTS
- update to Blender 4.2 LTS
- fix issue that can not find specular property in priniciple BSDF when applying virtools material.
- update blender manifest toml to let plugin works.
- there are various mesh works need to be fixed in later commits. this commit can not works normally on blender 4.2
2024-07-17 09:23:16 +08:00
8588f097a2 fix: change default screw steps to 28.
- change default screw steps to 28 (7 steps for 90 degree)
- update blender mesh annotation.
2024-05-25 20:32:30 +08:00
5d8ffb7e48 feat: add redist script
- add redist script for the convenience of building plugin package, especially for Blender 4.2
2024-05-21 16:19:13 +08:00
270fddff52 feat: do some trivial adaptions for blender 4.2 LTS
- add blender_manifest.toml
- add a removal note for bl_info in __init__.py.
- it doesn't mean that this plugin now can be used in blender 4.2. I just add some trivial changes which do not break current compatibility to reduce migration work in future.
2024-05-17 09:15:12 +08:00
084e7fbe61 feat: add extra transform for rail creation
- add extra transform for rail creation.
- remove scale from extra transform because it is rarely used. because Ballance can not handle the physicalization of scaled object.
2024-05-13 13:39:42 +08:00
190be6ec61 fix: restore extra transform to identy when entering bme operator. 2024-05-10 15:33:28 +08:00
36e925101e feat: extra transform properties for bme creation.
- add extra transform properties (translation, rotation and scale) for bme creation operator. this is good for "what you seen is what you gotten" and can increase user experience when add bme protorypes. please note these extra transform is applied to object after moving to cursor, not the mesh self.
- fix a weired bug that bme creation execute() may get outdated configurations when switch bme type in pop up window. the solution is simply adding an extra outdated flag checker at the head of execute(). but i have no spare time to research whether this patch is correct for this bug.
2024-05-10 14:44:37 +08:00
84e7e8380f feat: hide some operators in edit mode and add some notify for grouping oper.
- now grouping, ungrouping clear groups operators will show a report at the bottom of blender to indicate their work have done.
- disable fix material, 3ds max align, select by virtools group operators in edit mode to prevent any possible undefined behavior.
2024-04-22 21:06:41 +08:00
c58af8ce48 fix: fix face generation error of BME streets prototype. 2024-04-22 21:06:35 +08:00
07298fd21c feat: add blc params in exporter. fix bme.
- add ballance params section and successive switch in virtools file exporter to allow user manually cancel sector group ensurance which give user a way to export component, not the whole level.
- add mirror matrix detection in bme creation. a mirror matrix will reverse triangle indice order. we need reverse it again when facing mirror matrix. this resolves the issue when applying term 3.
- use mirror, not rotation to create straight floor in bme which give a better looks in game.
2024-04-07 10:35:06 +08:00
3a1a0fb0f6 doc: update document
- add section about ballance related props
2024-04-06 15:43:42 +08:00
3396947115 feat: add ballance map sector field in scene
- add ballance map sector info in scene to indicate the maximum sector count of this map.
- this adding will prevent the bug that the exported ballance map do not have successive sector groups. because original implement will not create sector group if no component in corresponding sector and previous remedy still have bug. and if this happended, ballance will show spaceship in wrong sector. this adding is the final solution of this bug.
- exlarge ballance map sector info when user adding component. the enlarged value will be calculated by user input sector.
- auto enlarge ballance map sector info when importing. this will give user a fluent experience when modifying existing map.
- exporting map will also use ballance map sector info to pre-create successive sector group as term 2 stated.
- move sector name extractor from virtools file exporting module to naming convention module.
2024-04-01 14:39:11 +08:00
6cf2ab895d fix: fix unregister error in virtools group
- fix del attribute error when unregister virtools group.
2024-03-30 16:12:34 +08:00
b039dd8b43 fix: fix grouping and naming error
- fix wood and rail soundeffect grouping error.
- fix checkpoint and resetpoint naming error again (forget to change PC/PR).
2024-02-20 21:52:50 +08:00
212 changed files with 20843 additions and 7299 deletions

11
.gitattributes vendored
View File

@ -1,7 +1,6 @@
# all png are binary # All PNG image are binary
*.png binary *.png binary
# our generated mesh should be save as binary # Element placeholder mesh should be save as binary
*.bin binary *.ph binary
# the raw json data should be binary # Raw json data should be binary, although i edit it manually
# although i edit it manually assets/jsons/*.json5 binary
bbp_ng/raw_jsons/*.json binary

5
.gitignore vendored
View File

@ -1,2 +1,3 @@
# disable distribution build folder ## ===== Personal =====
redist/ # Disable VSCode
.vscode/

View File

Before

Width:  |  Height:  |  Size: 785 B

After

Width:  |  Height:  |  Size: 785 B

View File

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 663 B

After

Width:  |  Height:  |  Size: 663 B

View File

Before

Width:  |  Height:  |  Size: 745 B

After

Width:  |  Height:  |  Size: 745 B

View File

Before

Width:  |  Height:  |  Size: 945 B

After

Width:  |  Height:  |  Size: 945 B

View File

Before

Width:  |  Height:  |  Size: 818 B

After

Width:  |  Height:  |  Size: 818 B

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 984 B

After

Width:  |  Height:  |  Size: 984 B

View File

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 471 B

After

Width:  |  Height:  |  Size: 471 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 494 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 992 B

After

Width:  |  Height:  |  Size: 992 B

View File

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

View File

Before

Width:  |  Height:  |  Size: 691 B

After

Width:  |  Height:  |  Size: 691 B

View File

Before

Width:  |  Height:  |  Size: 775 B

After

Width:  |  Height:  |  Size: 775 B

View File

Before

Width:  |  Height:  |  Size: 807 B

After

Width:  |  Height:  |  Size: 807 B

View File

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 652 B

View File

Before

Width:  |  Height:  |  Size: 695 B

After

Width:  |  Height:  |  Size: 695 B

View File

Before

Width:  |  Height:  |  Size: 550 B

After

Width:  |  Height:  |  Size: 550 B

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 265 B

After

Width:  |  Height:  |  Size: 265 B

View File

@ -1,174 +1,185 @@
[ [
{ {
"identifier": "raw_floor_1x1", "identifier": "raw_floor_1x1",
"showcase": null, "showcase": null,
"params": [ "params": [
{ {
"field": "height", "field": "height",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "face", "field": "face",
"data": "(True, False, True, True, True, True)" "data": "(True, False, True, True, True, True)"
}, },
{ {
"field": "is_sink", "field": "is_sink",
"data": "False" "data": "False"
} }
], ],
"skip": "False", "skip": "False",
"vars": [], "vars": [],
"vertices": [], "vertices": [],
"faces": [], "faces": [],
"instances": [ "instances": [
{ {
"identifier": "raw_floor_corner", "identifier": "cv_triangle_side",
"skip": "False", "skip": "False",
"params": { "params": {
"height": "height", "edge_length": "5",
"face": "(face[0], face[1], face[4], False, face[3], False)", "tip_offset": "2.5",
"is_sink": "is_sink", "height": "height",
"is_inner": "False", "face": "(face[0], False, False, False, face[3], None)",
"is_ribbon": "False" "is_sink": "is_sink"
}, },
"transform": "move(5, 0, 0) @ rot(0, 0, -270)" "transform": "move(5, 0, 0) @ rot(0, 0, 90)"
}, },
{ {
"identifier": "raw_floor_corner", "identifier": "cv_triangle_side",
"skip": "False", "skip": "False",
"params": { "params": {
"height": "height", "edge_length": "5",
"face": "(face[0], face[1], face[3], False, face[5], False)", "tip_offset": "2.5",
"is_sink": "is_sink", "height": "height",
"is_inner": "False", "face": "(face[0], False, False, False, face[5], None)",
"is_ribbon": "False" "is_sink": "is_sink"
}, },
"transform": "move(5, 5, 0) @ rot(0, 0, -180)" "transform": "move(5, 5, 0) @ rot(0, 0, 180)"
}, },
{ {
"identifier": "raw_floor_corner", "identifier": "cv_triangle_side",
"skip": "False", "skip": "False",
"params": { "params": {
"height": "height", "edge_length": "5",
"face": "(face[0], face[1], face[5], False, face[2], False)", "tip_offset": "2.5",
"is_sink": "is_sink", "height": "height",
"is_inner": "False", "face": "(face[0], False, False, False, face[2], None)",
"is_ribbon": "False" "is_sink": "is_sink"
}, },
"transform": "move(0, 5, 0) @ rot(0, 0, -90)" "transform": "move(0, 5, 0) @ rot(0, 0, 270)"
}, },
{ {
"identifier": "raw_floor_corner", "identifier": "cv_triangle_side",
"skip": "False", "skip": "False",
"params": { "params": {
"height": "height", "edge_length": "5",
"face": "(face[0], face[1], face[2], False, face[4], False)", "tip_offset": "2.5",
"is_sink": "is_sink", "height": "height",
"is_inner": "False", "face": "(face[0], False, False, False, face[4], None)",
"is_ribbon": "False" "is_sink": "is_sink"
}, },
"transform": "move(0, 0, 0)" "transform": "ident()"
} },
] {
}, "identifier": "floor_rectangle_bottom",
{ "skip": "not face[1]",
"identifier": "floor_normal_1x1", "params": {
"showcase": { "length": "5",
"title": "Normal 1x1", "width": "5"
"icon": "Normal1x1", },
"type": "floor", "transform": "move(0, 0, -height)"
"cfgs": [ }
{ ]
"field": "height_", },
"type": "float", {
"title": "Height", "identifier": "floor_normal_1x1",
"desc": "The height of block.", "showcase": {
"default": "5.0" "title": "Normal 1x1",
}, "category": "1x1 Blocks",
{ "icon": "Normal1x1",
"field": "face_", "type": "floor",
"type": "face", "cfgs": [
"title": "Face", {
"desc": "Whether has some faces.", "field": "height_",
"default": "(True, False, True, True, True, True)" "type": "float",
} "title": "Height",
] "desc": "The height of block.",
}, "default": "5.0"
"params": [ },
{ {
"field": "height", "field": "face_",
"data": "height_" "type": "face",
}, "title": "Face",
{ "desc": "Whether has some faces.",
"field": "face", "default": "(True, False, True, True, True, True)"
"data": "face_" }
} ]
], },
"skip": "False", "params": [
"vars": [], {
"vertices": [], "field": "height",
"faces": [], "data": "height_"
"instances": [ },
{ {
"identifier": "raw_floor_1x1", "field": "face",
"skip": "False", "data": "face_"
"params": { }
"height": "height", ],
"face": "face", "skip": "False",
"is_sink": "False" "vars": [],
}, "vertices": [],
"transform": "ident()" "faces": [],
} "instances": [
] {
}, "identifier": "raw_floor_1x1",
{ "skip": "False",
"identifier": "floor_sink_1x1", "params": {
"showcase": { "height": "height",
"title": "Sink 1x1", "face": "face",
"icon": "Sink1x1", "is_sink": "False"
"type": "floor", },
"cfgs": [ "transform": "ident()"
{ }
"field": "height_", ]
"type": "float", },
"title": "Height", {
"desc": "The height of block.", "identifier": "floor_sink_1x1",
"default": "5.0" "showcase": {
}, "title": "Sink 1x1",
{ "category": "1x1 Blocks",
"field": "face_", "icon": "Sink1x1",
"type": "face", "type": "floor",
"title": "Face", "cfgs": [
"desc": "Whether has some faces.", {
"default": "(True, False, True, True, True, True)" "field": "height_",
} "type": "float",
] "title": "Height",
}, "desc": "The height of block.",
"params": [ "default": "5.0"
{ },
"field": "height", {
"data": "height_" "field": "face_",
}, "type": "face",
{ "title": "Face",
"field": "face", "desc": "Whether has some faces.",
"data": "face_" "default": "(True, False, True, True, True, True)"
} }
], ]
"skip": "False", },
"vars": [], "params": [
"vertices": [], {
"faces": [], "field": "height",
"instances": [ "data": "height_"
{ },
"identifier": "raw_floor_1x1", {
"skip": "False", "field": "face",
"params": { "data": "face_"
"height": "height", }
"face": "face", ],
"is_sink": "True" "skip": "False",
}, "vars": [],
"transform": "ident()" "vertices": [],
} "faces": [],
] "instances": [
} {
"identifier": "raw_floor_1x1",
"skip": "False",
"params": {
"height": "height",
"face": "face",
"is_sink": "True"
},
"transform": "ident()"
}
]
}
] ]

View File

@ -1,319 +1,240 @@
[ [
{ {
"identifier": "raw_floor_border", "identifier": "raw_floor_border",
"showcase": null, "showcase": null,
"params": [ "params": [
{ {
"field": "length", "field": "length",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "height", "field": "height",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "face", "field": "face",
"data": "(True, False, False, False, True, False)" "data": "(True, False, False, False, True, False)"
}, },
{ {
"field": "is_sink", "field": "is_sink",
"data": "False" "data": "False"
}, },
{ {
"field": "is_ribbon", "field": "is_ribbon",
"data": "False" "data": "False"
} }
], ],
"skip": "length == 0.0", "skip": "length == 0.0",
"vars": [ "vars": [],
{ "vertices": [],
"field": "uv_length", "faces": [],
"data": "length / 5.0" "instances": [
}, {
{ "identifier": "cv_trapezoid_side",
"field": "uv_border_texture", "skip": "False",
"data": "1.0 if is_ribbon else 0.5" "params": {
}, "long_edge_length": "length",
{ "short_edge_offset": "0",
"field": "sink", "short_edge_length": "length",
"data": "0.7 if is_sink else 0.0" "height": "height",
} "face": "face",
], "is_sink": "is_sink",
"vertices": [ "is_ribbon": "is_ribbon"
{ },
"skip": "not face[0]", "transform": "ident()"
"data": "(0, 0, 0)" }
}, ]
{ },
"skip": "not face[0]", {
"data": "(0, 2.5, -sink)" "identifier": "floor_normal_border",
}, "showcase": {
{ "title": "Normal Border",
"skip": "not face[0]", "category": "Borders",
"data": "(length, 0, 0)" "icon": "NormalBorder",
}, "type": "floor",
{ "cfgs": [
"skip": "not face[0]", {
"data": "(length, 2.5, -sink)" "field": "length_",
} "type": "float",
], "title": "Length",
"faces": [ "desc": "The length of block.",
{ "default": "2.5"
"skip": "not face[0]", },
"texture": "(\"FloorTopFlat\" if is_ribbon else \"FloorTopProfil\") if is_sink else \"FloorTopBorder\"", {
"indices": [0, 2, 3, 1], "field": "height_",
"uvs": [ "type": "float",
"(0, 0)", "title": "Height",
"(0, uv_length)", "desc": "The height of block.",
"(uv_border_texture, uv_length)", "default": "5.0"
"(uv_border_texture, 0)" },
], {
"normals": null "field": "face_",
} "type": "face",
], "title": "Face",
"instances": [ "desc": "Whether has some faces.",
{ "default": "(True, False, False, False, True, False)"
"identifier": "raw_floor_side", }
"skip": "not face[4]", ]
"params": { },
"height": "height", "params": [
"length": "length", {
"is_left_sink": "False", "field": "length",
"is_right_sink": "False" "data": "length_"
}, },
"transform": "ident()" {
}, "field": "height",
{ "data": "height_"
"identifier": "raw_floor_side", },
"skip": "not face[2]", {
"params": { "field": "face",
"height": "height", "data": "face_"
"length": "2.5", }
"is_left_sink": "is_sink", ],
"is_right_sink": "False" "skip": "False",
}, "vars": [],
"transform": "move(0, 2.5, 0) @ rot(0, 0, -90)" "vertices": [],
}, "faces": [],
{ "instances": [
"identifier": "raw_floor_side", {
"skip": "not face[3]", "identifier": "raw_floor_border",
"params": { "skip": "False",
"height": "height", "params": {
"length": "2.5", "length": "length",
"is_left_sink": "False", "height": "height",
"is_right_sink": "is_sink" "face": "face",
}, "is_sink": "False",
"transform": "move(length, 0, 0) @ rot(0, 0, 90)" "is_ribbon": "False"
}, },
{ "transform": "ident()"
"identifier": "raw_floor_side", }
"skip": "not face[5]", ]
"params": { },
"height": "height", {
"length": "length", "identifier": "floor_sink_border",
"is_left_sink": "is_sink", "showcase": {
"is_right_sink": "is_sink" "title": "Sink Border",
}, "category": "Borders",
"transform": "move(length, 2.5, 0) @ rot(0, 0, 180)" "icon": "SinkBorder",
}, "type": "floor",
{ "cfgs": [
"identifier": "floor_bottom", {
"skip": "not face[1]", "field": "length_",
"params": { "type": "float",
"length": "length", "title": "Length",
"width": "2.5" "desc": "The length of block.",
}, "default": "2.5"
"transform": "move(0, 0, -height)" },
} {
] "field": "height_",
}, "type": "float",
{ "title": "Height",
"identifier": "floor_normal_border", "desc": "The height of block.",
"showcase": { "default": "5.0"
"title": "Normal Border", },
"icon": "NormalBorder", {
"type": "floor", "field": "face_",
"cfgs": [ "type": "face",
{ "title": "Face",
"field": "length_", "desc": "Whether has some faces.",
"type": "float", "default": "(True, False, False, False, True, False)"
"title": "Length", }
"desc": "The length of block.", ]
"default": "2.5" },
}, "params": [
{ {
"field": "height_", "field": "length",
"type": "float", "data": "length_"
"title": "Height", },
"desc": "The height of block.", {
"default": "5.0" "field": "height",
}, "data": "height_"
{ },
"field": "face_", {
"type": "face", "field": "face",
"title": "Face", "data": "face_"
"desc": "Whether has some faces.", }
"default": "(True, False, False, False, True, False)" ],
} "skip": "False",
] "vars": [],
}, "vertices": [],
"params": [ "faces": [],
{ "instances": [
"field": "length", {
"data": "length_" "identifier": "raw_floor_border",
}, "skip": "False",
{ "params": {
"field": "height", "length": "length",
"data": "height_" "height": "height",
}, "face": "face",
{ "is_sink": "True",
"field": "face", "is_ribbon": "False"
"data": "face_" },
} "transform": "ident()"
], }
"skip": "False", ]
"vars": [], },
"vertices": [], {
"faces": [], "identifier": "floor_ribbon_border",
"instances": [ "showcase": {
{ "title": "Ribbon Border",
"identifier": "raw_floor_border", "category": "Borders",
"skip": "False", "icon": "RibbonBorder",
"params": { "type": "floor",
"length": "length", "cfgs": [
"height": "height", {
"face": "face", "field": "length_",
"is_sink": "False", "type": "float",
"is_ribbon": "False" "title": "Length",
}, "desc": "The length of block.",
"transform": "ident()" "default": "2.5"
} },
] {
}, "field": "height_",
{ "type": "float",
"identifier": "floor_sink_border", "title": "Height",
"showcase": { "desc": "The height of block.",
"title": "Sink Border", "default": "5.0"
"icon": "SinkBorder", },
"type": "floor", {
"cfgs": [ "field": "face_",
{ "type": "face",
"field": "length_", "title": "Face",
"type": "float", "desc": "Whether has some faces.",
"title": "Length", "default": "(True, False, False, False, True, False)"
"desc": "The length of block.", }
"default": "2.5" ]
}, },
{ "params": [
"field": "height_", {
"type": "float", "field": "length",
"title": "Height", "data": "length_"
"desc": "The height of block.", },
"default": "5.0" {
}, "field": "height",
{ "data": "height_"
"field": "face_", },
"type": "face", {
"title": "Face", "field": "face",
"desc": "Whether has some faces.", "data": "face_"
"default": "(True, False, False, False, True, False)" }
} ],
] "skip": "False",
}, "vars": [],
"params": [ "vertices": [],
{ "faces": [],
"field": "length", "instances": [
"data": "length_" {
}, "identifier": "raw_floor_border",
{ "skip": "False",
"field": "height", "params": {
"data": "height_" "length": "length",
}, "height": "height",
{ "face": "face",
"field": "face", "is_sink": "True",
"data": "face_" "is_ribbon": "True"
} },
], "transform": "ident()"
"skip": "False", }
"vars": [], ]
"vertices": [], }
"faces": [],
"instances": [
{
"identifier": "raw_floor_border",
"skip": "False",
"params": {
"length": "length",
"height": "height",
"face": "face",
"is_sink": "True",
"is_ribbon": "False"
},
"transform": "ident()"
}
]
},
{
"identifier": "floor_ribbon_border",
"showcase": {
"title": "Ribbon Border",
"icon": "RibbonBorder",
"type": "floor",
"cfgs": [
{
"field": "length_",
"type": "float",
"title": "Length",
"desc": "The length of block.",
"default": "2.5"
},
{
"field": "height_",
"type": "float",
"title": "Height",
"desc": "The height of block.",
"default": "5.0"
},
{
"field": "face_",
"type": "face",
"title": "Face",
"desc": "Whether has some faces.",
"default": "(True, False, False, False, True, False)"
}
]
},
"params": [
{
"field": "length",
"data": "length_"
},
{
"field": "height",
"data": "height_"
},
{
"field": "face",
"data": "face_"
}
],
"skip": "False",
"vars": [],
"vertices": [],
"faces": [],
"instances": [
{
"identifier": "raw_floor_border",
"skip": "False",
"params": {
"length": "length",
"height": "height",
"face": "face",
"is_sink": "True",
"is_ribbon": "True"
},
"transform": "ident()"
}
]
}
] ]

View File

@ -0,0 +1,427 @@
[
// One of Chris suggested more vanilla prototypes.
// This prototype represent a half of a normal, sink or double ribbon border,
// which looks like trapezoid from top to bottom.
//
// The bottom edge of trapezoid is from origin to +X with `long_edge_length` length.
// The length of top edge is `short_edge_length` and it just like moving bottom edge to +Y direction.
// The offset between top edge and bottom edge is always 2.5.
// The distance from the closest point of top edge, to Y axis is `short_edge_offset`.
{
"identifier": "cv_trapezoid_side",
"showcase": null,
"params": [
{
"field": "long_edge_length",
"data": "5.0"
},
{
"field": "short_edge_offset",
"data": "0.0"
},
{
"field": "short_edge_length",
"data": "5.0"
},
{
"field": "height",
"data": "5.0"
},
{
"field": "face",
"data": "(True, False, False, False, True, False)"
},
{
"field": "is_sink",
"data": "False"
},
{
"field": "is_ribbon",
"data": "False"
}
],
"skip": "long_edge_length == 0.0 or short_edge_length == 0.0",
"vars": [
{
"field": "long_edge_uv_length",
"data": "long_edge_length / 5.0"
},
{
"field": "short_edge_uv_offset",
"data": "short_edge_offset / 5.0"
},
{
"field": "short_edge_uv_length",
"data": "short_edge_length / 5.0"
},
{
"field": "short_edge_total",
"data": "short_edge_offset + short_edge_length"
},
{
"field": "short_edge_uv_total",
"data": "short_edge_uv_offset + short_edge_uv_length"
},
{
"field": "uv_border_texture",
"data": "1.0 if is_ribbon else 0.5"
},
{
"field": "sink",
"data": "0.7 if is_sink else 0.0"
}
],
"vertices": [
{
"skip": "not face[0]",
"data": "(0, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(short_edge_offset, 2.5, -sink)"
},
{
"skip": "not face[0]",
"data": "(long_edge_length, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(short_edge_total, 2.5, -sink)"
}
],
"faces": [
{
"skip": "not face[0]",
"texture": "(\"FloorTopFlat\" if is_ribbon else \"FloorTopProfil\") if is_sink else \"FloorTopBorder\"",
"indices": [0, 2, 3, 1],
"uvs": [
"(0, 0)",
"(0, long_edge_uv_length)",
"(uv_border_texture, short_edge_uv_total)",
"(uv_border_texture, short_edge_uv_offset)"
],
"normals": null
}
],
"instances": [
{
"identifier": "raw_floor_side",
"skip": "not face[4]",
"params": {
"height": "height",
"length": "long_edge_length",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "ident()"
},
{
"identifier": "raw_floor_side",
"skip": "not face[2]",
"params": {
"height": "height",
"length": "distance(0, 0, short_edge_offset, 2.5)",
"is_left_sink": "False",
"is_right_sink": "is_sink"
},
"transform": "rot(0, 0, angle(0, 0, short_edge_offset, 2.5)) @ scale(1, -1, 1)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[3]",
"params": {
"height": "height",
"length": "distance(long_edge_length, 0, short_edge_total, 2.5)",
"is_left_sink": "False",
"is_right_sink": "is_sink"
},
"transform": "move(long_edge_length, 0, 0) @ rot(0, 0, angle(long_edge_length, 0, short_edge_total, 2.5))"
},
{
"identifier": "raw_floor_side",
"skip": "not face[5]",
"params": {
"height": "height",
"length": "short_edge_length",
"is_left_sink": "is_sink",
"is_right_sink": "is_sink"
},
"transform": "move(short_edge_offset, 2.5, 0) @ scale(1, -1, 1)"
},
{
"identifier": "floor_4edges_bottom",
"skip": "not face[1]",
"params": {
"top_left_pos": "(0, 0)",
"top_right_pos": "(short_edge_offset, 2.5)",
"bottom_left_pos": "(long_edge_length, 0)",
"bottom_right_pos": "(short_edge_total, 2.5)"
},
"transform": "move(0, 0, -height)"
}
]
},
// Same as previous one, but looks like triangle from top to bottom.
//
// The bottom edge is from origin to +X with `edge_length` length.
// The tip is going to +Y.
// The height of this triangle is always 2.5 and the offset between tip and Y axis is `tip_offset`.
{
"identifier": "cv_triangle_side",
"showcase": null,
"params": [
{
"field": "edge_length",
"data": "5.0"
},
{
"field": "tip_offset",
"data": "2.5"
},
{
"field": "height",
"data": "5.0"
},
{
"field": "face",
"data": "(True, False, False, False, True, None)"
},
{
"field": "is_sink",
"data": "False"
}
],
"skip": "edge_length == 0.0",
"vars": [
{
"field": "edge_uv_length",
"data": "edge_length / 5.0"
},
{
"field": "tip_uv_offset",
"data": "tip_offset / 5.0"
},
{
"field": "sink",
"data": "0.7 if is_sink else 0.0"
}
],
"vertices": [
{
"skip": "not face[0]",
"data": "(0, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(tip_offset, 2.5, -sink)"
},
{
"skip": "not face[0]",
"data": "(edge_length, 0, 0)"
}
],
"faces": [
{
"skip": "not face[0]",
"texture": "\"FloorTopProfil\" if is_sink else \"FloorTopBorder\"",
"indices": [0, 2, 1],
"uvs": [
"(0, 0)",
"(0, edge_uv_length)",
"(0.5, tip_uv_offset)"
],
"normals": null
}
],
"instances": [
{
"identifier": "raw_floor_side",
"skip": "not face[4]",
"params": {
"height": "height",
"length": "edge_length",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "ident()"
},
{
"identifier": "raw_floor_side",
"skip": "not face[2]",
"params": {
"height": "height",
"length": "distance(0, 0, tip_offset, 2.5)",
"is_left_sink": "False",
"is_right_sink": "is_sink"
},
"transform": "rot(0, 0, angle(0, 0, tip_offset, 2.5)) @ scale(1, -1, 1)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[3]",
"params": {
"height": "height",
"length": "distance(edge_length, 0, tip_offset, 2.5)",
"is_left_sink": "False",
"is_right_sink": "is_sink"
},
"transform": "move(edge_length, 0, 0) @ rot(0, 0, angle(edge_length, 0, tip_offset, 2.5))"
},
{
"identifier": "floor_triangle_bottom",
"skip": "not face[1]",
"params": {
"length": "edge_length",
"width": "2.5",
"tip_offset": "tip_offset"
},
"transform": "move(0, 0, -height)"
}
]
},
{
"identifier": "cv_triangle_center",
"showcase": null,
"params": [
{
"field": "height",
"data": "5.0"
},
{
"field": "face",
"data": "(True, False, False, False, True, None)"
},
{
"field": "is_sink",
"data": "False"
}
],
"skip": "False",
"vars": [
{
"field": "sink",
"data": "0.7 if is_sink else 0.0"
}
],
"vertices": [
{
"skip": "not face[0]",
"data": "(0, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(5, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(2.5, 2.5, -sink)"
},
{
"skip": "(not face[0]) or (not is_sink)",
"data": "(2.5, 0, -sink)"
}
],
"faces": [
{
"skip": "(not face[0]) or is_sink",
"texture": "\"FloorTopFlat\"",
"indices": [0, 1, 2],
"uvs": [
"(0, 0)",
"(1, 0)",
"(0.5, 0.5)"
],
"normals": null
},
{
"skip": "(not face[0]) or (not is_sink)",
"texture": "\"FloorTopProfil\"",
"indices": [0, 3, 2],
"uvs": [
"(0, 0)",
"(0.5, 0)",
"(0.5, 0.5)"
],
"normals": null
},
{
"skip": "(not face[0]) or (not is_sink)",
"texture": "\"FloorTopProfil\"",
"indices": [3, 1, 2],
"uvs": [
"(0.5, 0)",
"(1, 0)",
"(0.5, 0.5)"
],
"normals": null
}
],
"instances": [
{
"identifier": "raw_floor_side",
"skip": "not face[2]",
"params": {
"height": "height",
"length": "distance(0, 0, 2.5, 2.5)",
"is_left_sink": "False",
"is_right_sink": "is_sink"
},
"transform": "rot(0, 0, 45)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[3]",
"params": {
"height": "height",
"length": "distance(5, 0, 2.5, 2.5)",
"is_left_sink": "False",
"is_right_sink": "is_sink"
},
"transform": "move(5, 0, 0) @ rot(0, 0, 135)"
},
{
"identifier": "raw_floor_side",
"skip": "(not face[4]) or (not is_sink)",
"params": {
"height": "height",
"length": "2.5",
"is_left_sink": "False",
"is_right_sink": "True"
},
"transform": "ident()"
},
{
"identifier": "raw_floor_side",
"skip": "(not face[4]) or (not is_sink)",
"params": {
"height": "height",
"length": "2.5",
"is_left_sink": "True",
"is_right_sink": "False"
},
"transform": "move(2.5, 0, 0)"
},
{
"identifier": "raw_floor_side",
"skip": "(not face[4]) or is_sink",
"params": {
"height": "height",
"length": "5",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "ident()"
},
{
"identifier": "floor_triangle_bottom",
"skip": "not face[1]",
"params": {
"length": "5",
"width": "2.5",
"tip_offset": "2.5"
},
"transform": "move(0, 0, -height)"
}
]
}
]

View File

@ -1,460 +1,466 @@
[ [
{ {
"identifier": "raw_floor_corner", "identifier": "raw_floor_corner",
"showcase": null, "showcase": null,
"params": [ "params": [
{ {
"field": "height", "field": "height",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "face", "field": "face",
"data": "(True, False, False, False, False, False)" "data": "(True, False, False, False, False, False)"
}, },
{ {
"field": "is_sink", "field": "is_sink",
"data": "False" "data": "False"
}, },
{ {
"field": "is_inner", "field": "is_inner",
"data": "False" "data": "False"
}, },
{ {
"field": "is_ribbon", "field": "is_ribbon",
"data": "False" "data": "False"
} }
], ],
"skip": "False", "skip": "False",
"vars": [ "vars": [
{ {
"field": "PXPY_sink", "field": "PXPY_sink",
"data": "0.7 if (is_sink and (not is_inner)) else 0" "data": "0.7 if (is_sink and (not is_inner)) else 0"
}, },
{ {
"field": "NXNY_sink", "field": "NXNY_sink",
"data": "0.7 if (is_sink and is_inner) else 0" "data": "0.7 if (is_sink and is_inner) else 0"
}, },
{ {
"field": "PXPY_uv", "field": "PXPY_uv",
"data": "(0 if is_inner else 0.5) * (2 if is_ribbon else 1)" "data": "(0 if is_inner else 0.5) * (2 if is_ribbon else 1)"
}, },
{ {
"field": "NXNY_uv", "field": "NXNY_uv",
"data": "(0.5 if is_inner else 0) * (2 if is_ribbon else 1)" "data": "(0.5 if is_inner else 0) * (2 if is_ribbon else 1)"
}, },
{ {
"field": "corner_texture", "field": "corner_texture",
"data": "(\"FloorTopFlat\" if is_ribbon else \"FloorTopProfil\") if is_sink else \"FloorTopBorder\"" "data": "(\"FloorTopFlat\" if is_ribbon else \"FloorTopProfil\") if is_sink else \"FloorTopBorder\""
} }
], ],
"vertices": [ "vertices": [
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(0, 0, -NXNY_sink)" "data": "(0, 0, -NXNY_sink)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(2.5, 0, -NXNY_sink)" "data": "(2.5, 0, -NXNY_sink)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(2.5, 2.5, -PXPY_sink)" "data": "(2.5, 2.5, -PXPY_sink)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(0, 2.5, -NXNY_sink)" "data": "(0, 2.5, -NXNY_sink)"
} }
], ],
"faces": [ "faces": [
{ {
"skip": "not face[0]", "skip": "not face[0]",
"texture": "corner_texture", "texture": "corner_texture",
"indices": [0, 1, 2], "indices": [0, 1, 2],
"uvs": [ "uvs": [
"(NXNY_uv, 0.5)", "(NXNY_uv, 0.5)",
"(NXNY_uv, 0)", "(NXNY_uv, 0)",
"(PXPY_uv, 0)" "(PXPY_uv, 0)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"texture": "corner_texture", "texture": "corner_texture",
"indices": [0, 2, 3], "indices": [0, 2, 3],
"uvs": [ "uvs": [
"(NXNY_uv, 0.5)", "(NXNY_uv, 0.5)",
"(PXPY_uv, 0)", "(PXPY_uv, 0)",
"(NXNY_uv, 0)" "(NXNY_uv, 0)"
], ],
"normals": null "normals": null
} }
], ],
"instances": [ "instances": [
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[4]", "skip": "not face[4]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "NXNY_sink != 0", "is_left_sink": "NXNY_sink != 0",
"is_right_sink": "NXNY_sink != 0" "is_right_sink": "NXNY_sink != 0"
}, },
"transform": "ident()" "transform": "ident()"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[2]", "skip": "not face[2]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "NXNY_sink != 0", "is_left_sink": "NXNY_sink != 0",
"is_right_sink": "NXNY_sink != 0" "is_right_sink": "NXNY_sink != 0"
}, },
"transform": "move(0, 2.5, 0) @ rot(0, 0, -90)" "transform": "move(0, 2.5, 0) @ rot(0, 0, -90)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[3]", "skip": "not face[3]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "NXNY_sink != 0", "is_left_sink": "NXNY_sink != 0",
"is_right_sink": "PXPY_sink != 0" "is_right_sink": "PXPY_sink != 0"
}, },
"transform": "move(2.5, 0, 0) @ rot(0, 0, 90)" "transform": "move(2.5, 0, 0) @ rot(0, 0, 90)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[5]", "skip": "not face[5]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "PXPY_sink != 0", "is_left_sink": "PXPY_sink != 0",
"is_right_sink": "NXNY_sink != 0" "is_right_sink": "NXNY_sink != 0"
}, },
"transform": "move(2.5, 2.5, 0) @ rot(0, 0, 180)" "transform": "move(2.5, 2.5, 0) @ rot(0, 0, 180)"
}, },
{ {
"identifier": "floor_bottom", "identifier": "floor_rectangle_bottom",
"skip": "not face[1]", "skip": "not face[1]",
"params": { "params": {
"length": "2.5", "length": "2.5",
"width": "2.5" "width": "2.5"
}, },
"transform": "move(0, 0, -height)" "transform": "move(0, 0, -height)"
} }
] ]
}, },
{ {
"identifier": "floor_normal_inner_corner", "identifier": "floor_normal_inner_corner",
"showcase": { "showcase": {
"title": "Normal Inner Corner", "title": "Normal Inner Corner",
"icon": "NormalInnerCorner", "category": "Half Block Corners",
"type": "floor", "icon": "NormalInnerCorner",
"cfgs": [ "type": "floor",
{ "cfgs": [
"field": "height_", {
"type": "float", "field": "height_",
"title": "Height", "type": "float",
"desc": "The height of block.", "title": "Height",
"default": "5.0" "desc": "The height of block.",
}, "default": "5.0"
{ },
"field": "face_", {
"type": "face", "field": "face_",
"title": "Face", "type": "face",
"desc": "Whether has some faces.", "title": "Face",
"default": "(True, False, False, False, False, False)" "desc": "Whether has some faces.",
} "default": "(True, False, False, False, False, False)"
] }
}, ]
"params": [ },
{ "params": [
"field": "height", {
"data": "height_" "field": "height",
}, "data": "height_"
{ },
"field": "face", {
"data": "face_" "field": "face",
} "data": "face_"
], }
"skip": "False", ],
"vars": [], "skip": "False",
"vertices": [], "vars": [],
"faces": [], "vertices": [],
"instances": [ "faces": [],
{ "instances": [
"identifier": "raw_floor_corner", {
"skip": "False", "identifier": "raw_floor_corner",
"params": { "skip": "False",
"height": "height", "params": {
"face": "face", "height": "height",
"is_sink": "False", "face": "face",
"is_inner": "True", "is_sink": "False",
"is_ribbon": "False" "is_inner": "True",
}, "is_ribbon": "False"
"transform": "ident()" },
} "transform": "ident()"
] }
}, ]
{ },
"identifier": "floor_sink_inner_corner", {
"showcase": { "identifier": "floor_sink_inner_corner",
"title": "Sink Inner Corner", "showcase": {
"icon": "SinkInnerCorner", "title": "Sink Inner Corner",
"type": "floor", "category": "Half Block Corners",
"cfgs": [ "icon": "SinkInnerCorner",
{ "type": "floor",
"field": "height_", "cfgs": [
"type": "float", {
"title": "Height", "field": "height_",
"desc": "The height of block.", "type": "float",
"default": "5.0" "title": "Height",
}, "desc": "The height of block.",
{ "default": "5.0"
"field": "face_", },
"type": "face", {
"title": "Face", "field": "face_",
"desc": "Whether has some faces.", "type": "face",
"default": "(True, False, False, False, False, False)" "title": "Face",
} "desc": "Whether has some faces.",
] "default": "(True, False, False, False, False, False)"
}, }
"params": [ ]
{ },
"field": "height", "params": [
"data": "height_" {
}, "field": "height",
{ "data": "height_"
"field": "face", },
"data": "face_" {
} "field": "face",
], "data": "face_"
"skip": "False", }
"vars": [], ],
"vertices": [], "skip": "False",
"faces": [], "vars": [],
"instances": [ "vertices": [],
{ "faces": [],
"identifier": "raw_floor_corner", "instances": [
"skip": "False", {
"params": { "identifier": "raw_floor_corner",
"height": "height", "skip": "False",
"face": "face", "params": {
"is_sink": "True", "height": "height",
"is_inner": "True", "face": "face",
"is_ribbon": "False" "is_sink": "True",
}, "is_inner": "True",
"transform": "ident()" "is_ribbon": "False"
} },
] "transform": "ident()"
}, }
{ ]
"identifier": "floor_ribbon_inner_corner", },
"showcase": { {
"title": "Ribbon Inner Corner", "identifier": "floor_ribbon_inner_corner",
"icon": "RibbonInnerCorner", "showcase": {
"type": "floor", "title": "Ribbon Inner Corner",
"cfgs": [ "category": "Half Block Corners",
{ "icon": "RibbonInnerCorner",
"field": "height_", "type": "floor",
"type": "float", "cfgs": [
"title": "Height", {
"desc": "The height of block.", "field": "height_",
"default": "5.0" "type": "float",
}, "title": "Height",
{ "desc": "The height of block.",
"field": "face_", "default": "5.0"
"type": "face", },
"title": "Face", {
"desc": "Whether has some faces.", "field": "face_",
"default": "(True, False, False, False, False, False)" "type": "face",
} "title": "Face",
] "desc": "Whether has some faces.",
}, "default": "(True, False, False, False, False, False)"
"params": [ }
{ ]
"field": "height", },
"data": "height_" "params": [
}, {
{ "field": "height",
"field": "face", "data": "height_"
"data": "face_" },
} {
], "field": "face",
"skip": "False", "data": "face_"
"vars": [], }
"vertices": [], ],
"faces": [], "skip": "False",
"instances": [ "vars": [],
{ "vertices": [],
"identifier": "raw_floor_corner", "faces": [],
"skip": "False", "instances": [
"params": { {
"height": "height", "identifier": "raw_floor_corner",
"face": "face", "skip": "False",
"is_sink": "True", "params": {
"is_inner": "True", "height": "height",
"is_ribbon": "True" "face": "face",
}, "is_sink": "True",
"transform": "ident()" "is_inner": "True",
} "is_ribbon": "True"
] },
}, "transform": "ident()"
{ }
"identifier": "floor_normal_outter_corner", ]
"showcase": { },
"title": "Normal Outter Corner", {
"icon": "NormalOutterCorner", "identifier": "floor_normal_outter_corner",
"type": "floor", "showcase": {
"cfgs": [ "title": "Normal Outter Corner",
{ "category": "Half Block Corners",
"field": "height_", "icon": "NormalOutterCorner",
"type": "float", "type": "floor",
"title": "Height", "cfgs": [
"desc": "The height of block.", {
"default": "5.0" "field": "height_",
}, "type": "float",
{ "title": "Height",
"field": "face_", "desc": "The height of block.",
"type": "face", "default": "5.0"
"title": "Face", },
"desc": "Whether has some faces.", {
"default": "(True, False, True, False, True, False)" "field": "face_",
} "type": "face",
] "title": "Face",
}, "desc": "Whether has some faces.",
"params": [ "default": "(True, False, True, False, True, False)"
{ }
"field": "height", ]
"data": "height_" },
}, "params": [
{ {
"field": "face", "field": "height",
"data": "face_" "data": "height_"
} },
], {
"skip": "False", "field": "face",
"vars": [], "data": "face_"
"vertices": [], }
"faces": [], ],
"instances": [ "skip": "False",
{ "vars": [],
"identifier": "raw_floor_corner", "vertices": [],
"skip": "False", "faces": [],
"params": { "instances": [
"height": "height", {
"face": "face", "identifier": "raw_floor_corner",
"is_sink": "False", "skip": "False",
"is_inner": "False", "params": {
"is_ribbon": "False" "height": "height",
}, "face": "face",
"transform": "ident()" "is_sink": "False",
} "is_inner": "False",
] "is_ribbon": "False"
}, },
{ "transform": "ident()"
"identifier": "floor_sink_outter_corner", }
"showcase": { ]
"title": "Sink Outter Corner", },
"icon": "SinkOutterCorner", {
"type": "floor", "identifier": "floor_sink_outter_corner",
"cfgs": [ "showcase": {
{ "title": "Sink Outter Corner",
"field": "height_", "category": "Half Block Corners",
"type": "float", "icon": "SinkOutterCorner",
"title": "Height", "type": "floor",
"desc": "The height of block.", "cfgs": [
"default": "5.0" {
}, "field": "height_",
{ "type": "float",
"field": "face_", "title": "Height",
"type": "face", "desc": "The height of block.",
"title": "Face", "default": "5.0"
"desc": "Whether has some faces.", },
"default": "(True, False, True, False, True, False)" {
} "field": "face_",
] "type": "face",
}, "title": "Face",
"params": [ "desc": "Whether has some faces.",
{ "default": "(True, False, True, False, True, False)"
"field": "height", }
"data": "height_" ]
}, },
{ "params": [
"field": "face", {
"data": "face_" "field": "height",
} "data": "height_"
], },
"skip": "False", {
"vars": [], "field": "face",
"vertices": [], "data": "face_"
"faces": [], }
"instances": [ ],
{ "skip": "False",
"identifier": "raw_floor_corner", "vars": [],
"skip": "False", "vertices": [],
"params": { "faces": [],
"height": "height", "instances": [
"face": "face", {
"is_sink": "True", "identifier": "raw_floor_corner",
"is_inner": "False", "skip": "False",
"is_ribbon": "False" "params": {
}, "height": "height",
"transform": "ident()" "face": "face",
} "is_sink": "True",
] "is_inner": "False",
}, "is_ribbon": "False"
{ },
"identifier": "floor_ribbon_outter_corner", "transform": "ident()"
"showcase": { }
"title": "Ribbon Outter Corner", ]
"icon": "RibbonOutterCorner", },
"type": "floor", {
"cfgs": [ "identifier": "floor_ribbon_outter_corner",
{ "showcase": {
"field": "height_", "title": "Ribbon Outter Corner",
"type": "float", "category": "Half Block Corners",
"title": "Height", "icon": "RibbonOutterCorner",
"desc": "The height of block.", "type": "floor",
"default": "5.0" "cfgs": [
}, {
{ "field": "height_",
"field": "face_", "type": "float",
"type": "face", "title": "Height",
"title": "Face", "desc": "The height of block.",
"desc": "Whether has some faces.", "default": "5.0"
"default": "(True, False, True, False, True, False)" },
} {
] "field": "face_",
}, "type": "face",
"params": [ "title": "Face",
{ "desc": "Whether has some faces.",
"field": "height", "default": "(True, False, True, False, True, False)"
"data": "height_" }
}, ]
{ },
"field": "face", "params": [
"data": "face_" {
} "field": "height",
], "data": "height_"
"skip": "False", },
"vars": [], {
"vertices": [], "field": "face",
"faces": [], "data": "face_"
"instances": [ }
{ ],
"identifier": "raw_floor_corner", "skip": "False",
"skip": "False", "vars": [],
"params": { "vertices": [],
"height": "height", "faces": [],
"face": "face", "instances": [
"is_sink": "True", {
"is_inner": "False", "identifier": "raw_floor_corner",
"is_ribbon": "True" "skip": "False",
}, "params": {
"transform": "ident()" "height": "height",
} "face": "face",
] "is_sink": "True",
} "is_inner": "False",
"is_ribbon": "True"
},
"transform": "ident()"
}
]
}
] ]

View File

@ -1,171 +1,172 @@
[ [
{ {
"identifier": "floor_flat", "identifier": "floor_flat",
"showcase": { "showcase": {
"title": "Flat", "title": "Flat",
"icon": "Flat", "category": "Miscellaneous",
"type": "floor", "icon": "Flat",
"cfgs": [ "type": "floor",
{ "cfgs": [
"field": "height_", {
"type": "float", "field": "height_",
"title": "Height", "type": "float",
"desc": "The height of block.", "title": "Height",
"default": "5.0" "desc": "The height of block.",
}, "default": "5.0"
{ },
"field": "length_", {
"type": "float", "field": "length_",
"title": "Length", "type": "float",
"desc": "The length of block.", "title": "Length",
"default": "2.5" "desc": "The length of block.",
}, "default": "2.5"
{ },
"field": "width_", {
"type": "float", "field": "width_",
"title": "Width", "type": "float",
"desc": "The width of block.", "title": "Width",
"default": "2.5" "desc": "The width of block.",
}, "default": "2.5"
{ },
"field": "face_", {
"type": "face", "field": "face_",
"title": "Face", "type": "face",
"desc": "Whether has some faces.", "title": "Face",
"default": "(True, False, False, False, False, False)" "desc": "Whether has some faces.",
}, "default": "(True, False, False, False, False, False)"
{ },
"field": "is_sink_", {
"type": "float", "field": "is_sink_",
"title": "Is Sink", "type": "bool",
"desc": "Whether this flat floor is used for sink floor.", "title": "Is Sink",
"default": "False" "desc": "Whether this flat floor is used for sink floor.",
} "default": "False"
] }
}, ]
"params": [ },
{ "params": [
"field": "height", {
"data": "height_" "field": "height",
}, "data": "height_"
{ },
"field": "length", {
"data": "length_" "field": "length",
}, "data": "length_"
{ },
"field": "width", {
"data": "width_" "field": "width",
}, "data": "width_"
{ },
"field": "face", {
"data": "face_" "field": "face",
}, "data": "face_"
{ },
"field": "is_sink", {
"data": "is_sink_" "field": "is_sink",
} "data": "is_sink_"
], }
"skip": "length == 0.0 or width == 0.0", ],
"vars": [ "skip": "length == 0.0 or width == 0.0",
{ "vars": [
"field": "sink", {
"data": "0.7 if is_sink else 0" "field": "sink",
}, "data": "0.7 if is_sink else 0"
{ },
"field": "uv_length", {
"data": "length / 5.0" "field": "uv_length",
}, "data": "length / 5.0"
{ },
"field": "uv_width", {
"data": "width / 5.0" "field": "uv_width",
} "data": "width / 5.0"
], }
"vertices": [ ],
{ "vertices": [
"skip": "False", {
"data": "(0, 0, -sink)" "skip": "False",
}, "data": "(0, 0, -sink)"
{ },
"skip": "False", {
"data": "(length, 0, -sink)" "skip": "False",
}, "data": "(length, 0, -sink)"
{ },
"skip": "False", {
"data": "(length, width, -sink)" "skip": "False",
}, "data": "(length, width, -sink)"
{ },
"skip": "False", {
"data": "(0, width, -sink)" "skip": "False",
} "data": "(0, width, -sink)"
], }
"faces": [ ],
{ "faces": [
"skip": "not face[0]", {
"texture": "\"FloorTopBorderless\"", "skip": "not face[0]",
"indices": [0, 1, 2, 3], "texture": "\"FloorTopBorderless\"",
"uvs": [ "indices": [0, 1, 2, 3],
"(0, 0)", "uvs": [
"(uv_length, 0)", "(0, 0)",
"(uv_length, uv_width)", "(uv_length, 0)",
"(0, uv_width)" "(uv_length, uv_width)",
], "(0, uv_width)"
"normals": null ],
} "normals": null
], }
"instances": [ ],
{ "instances": [
"identifier": "raw_floor_side", {
"skip": "not face[4]", "identifier": "raw_floor_side",
"params": { "skip": "not face[4]",
"height": "height", "params": {
"length": "length", "height": "height",
"is_left_sink": "is_sink", "length": "length",
"is_right_sink": "is_sink" "is_left_sink": "is_sink",
}, "is_right_sink": "is_sink"
"transform": "ident()" },
}, "transform": "ident()"
{ },
"identifier": "raw_floor_side", {
"skip": "not face[2]", "identifier": "raw_floor_side",
"params": { "skip": "not face[2]",
"height": "height", "params": {
"length": "width", "height": "height",
"is_left_sink": "is_sink", "length": "width",
"is_right_sink": "is_sink" "is_left_sink": "is_sink",
}, "is_right_sink": "is_sink"
"transform": "move(0, width, 0) @ rot(0, 0, -90)" },
}, "transform": "move(0, width, 0) @ rot(0, 0, -90)"
{ },
"identifier": "raw_floor_side", {
"skip": "not face[3]", "identifier": "raw_floor_side",
"params": { "skip": "not face[3]",
"height": "height", "params": {
"length": "width", "height": "height",
"is_left_sink": "is_sink", "length": "width",
"is_right_sink": "is_sink" "is_left_sink": "is_sink",
}, "is_right_sink": "is_sink"
"transform": "move(length, 0, 0) @ rot(0, 0, 90)" },
}, "transform": "move(length, 0, 0) @ rot(0, 0, 90)"
{ },
"identifier": "raw_floor_side", {
"skip": "not face[5]", "identifier": "raw_floor_side",
"params": { "skip": "not face[5]",
"height": "height", "params": {
"length": "length", "height": "height",
"is_left_sink": "is_sink", "length": "length",
"is_right_sink": "is_sink" "is_left_sink": "is_sink",
}, "is_right_sink": "is_sink"
"transform": "move(length, width, 0) @ rot(0, 0, 180)" },
}, "transform": "move(length, width, 0) @ rot(0, 0, 180)"
{ },
"identifier": "floor_bottom", {
"skip": "not face[1]", "identifier": "floor_rectangle_bottom",
"params": { "skip": "not face[1]",
"length": "length", "params": {
"width": "width" "length": "length",
}, "width": "width"
"transform": "move(0, 0, -height)" },
} "transform": "move(0, 0, -height)"
] }
} ]
}
] ]

View File

@ -1,371 +1,343 @@
[ [
{ {
"identifier": "raw_floor_platform", "identifier": "raw_floor_platform",
"showcase": null, "showcase": null,
"params": [ "params": [
{ {
"field": "height", "field": "height",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "length", "field": "length",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "width", "field": "width",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "face", "field": "face",
"data": "(True, False, True, True, True, True)" "data": "(True, False, True, True, True, True)"
}, },
{ {
"field": "is_sink", "field": "is_sink",
"data": "False" "data": "False"
}, },
{ {
"field": "is_ribbon", "field": "is_ribbon",
"data": "False" "data": "False"
} }
], ],
"skip": "False", "skip": "False",
"vars": [], "vars": [],
"vertices": [], "vertices": [],
"faces": [], "faces": [],
"instances": [ "instances": [
{ {
"identifier": "raw_floor_corner", "identifier": "cv_trapezoid_side",
"skip": "False", "skip": "False",
"params": { "params": {
"height": "height", "long_edge_length": "length + 5",
"face": "(face[0], face[1], face[4], False, face[3], False)", "short_edge_offset": "2.5",
"is_sink": "is_sink", "short_edge_length": "length",
"is_inner": "False", "height": "height",
"is_ribbon": "is_ribbon" "face": "(face[0], False, False, False, face[4], False)",
}, "is_sink": "is_sink",
"transform": "move(5 + length, 0, 0) @ rot(0, 0, -270)" "is_ribbon": "is_ribbon"
}, },
{ "transform": "ident()"
"identifier": "raw_floor_corner", },
"skip": "False", {
"params": { "identifier": "cv_trapezoid_side",
"height": "height", "skip": "False",
"face": "(face[0], face[1], face[3], False, face[5], False)", "params": {
"is_sink": "is_sink", "long_edge_length": "length + 5",
"is_inner": "False", "short_edge_offset": "2.5",
"is_ribbon": "is_ribbon" "short_edge_length": "length",
}, "height": "height",
"transform": "move(5 + length, 5 + width, 0) @ rot(0, 0, -180)" "face": "(face[0], False, False, False, face[5], False)",
}, "is_sink": "is_sink",
{ "is_ribbon": "is_ribbon"
"identifier": "raw_floor_corner", },
"skip": "False", "transform": "move(0, 5 + width, 0) @ scale(1, -1, 1)"
"params": { },
"height": "height", {
"face": "(face[0], face[1], face[5], False, face[2], False)", "identifier": "cv_trapezoid_side",
"is_sink": "is_sink", "skip": "False",
"is_inner": "False", "params": {
"is_ribbon": "is_ribbon" "long_edge_length": "width + 5",
}, "short_edge_offset": "2.5",
"transform": "move(0, 5 + width, 0) @ rot(0, 0, -90)" "short_edge_length": "width",
}, "height": "height",
{ "face": "(face[0], False, False, False, face[3], False)",
"identifier": "raw_floor_corner", "is_sink": "is_sink",
"skip": "False", "is_ribbon": "is_ribbon"
"params": { },
"height": "height", "transform": "move(5 + length, 0, 0) @ rot(0, 0, 90)"
"face": "(face[0], face[1], face[2], False, face[4], False)", },
"is_sink": "is_sink", {
"is_inner": "False", "identifier": "cv_trapezoid_side",
"is_ribbon": "is_ribbon" "skip": "False",
}, "params": {
"transform": "ident()" "long_edge_length": "width + 5",
}, "short_edge_offset": "2.5",
{ "short_edge_length": "width",
"identifier": "floor_flat", "height": "height",
"skip": "False", "face": "(face[0], False, False, False, face[2], False)",
"params": { "is_sink": "is_sink",
"height": "height", "is_ribbon": "is_ribbon"
"length": "length", },
"width": "width", "transform": "rot(0, 0, 90) @ scale(1, -1, 1)"
"face": "(face[0], face[1], False, False, False, False)", },
"is_sink": "is_sink" {
}, "identifier": "floor_flat",
"transform": "move(2.5, 2.5, 0)" "skip": "False",
}, "params": {
{ "height": "height",
"identifier": "raw_floor_border", "length": "length",
"skip": "False", "width": "width",
"params": { "face": "(face[0], False, False, False, False, False)",
"height": "height", "is_sink": "is_sink"
"length": "length", },
"face": "(face[0], face[1], False, False, face[4], False)", "transform": "move(2.5, 2.5, 0)"
"is_sink": "is_sink", },
"is_ribbon": "is_ribbon" {
}, "identifier": "floor_rectangle_bottom",
"transform": "move(2.5, 0, 0)" "skip": "not face[1]",
}, "params": {
{ "length": "5 + length",
"identifier": "raw_floor_border", "width": "5 + width"
"skip": "False", },
"params": { "transform": "move(0, 0, -height)"
"height": "height", }
"length": "width", ]
"face": "(face[0], face[1], False, False, face[2], False)", },
"is_sink": "is_sink", {
"is_ribbon": "is_ribbon" "identifier": "floor_normal_platform",
}, "showcase": {
"transform": "move(0, 2.5 + width, 0) @ rot(0, 0, -90)" "title": "Normal Platform",
}, "category": "Platforms",
{ "icon": "NormalPlatform",
"identifier": "raw_floor_border", "type": "floor",
"skip": "False", "cfgs": [
"params": { {
"height": "height", "field": "length_",
"length": "length", "type": "float",
"face": "(face[0], face[1], False, False, face[5], False)", "title": "Length",
"is_sink": "is_sink", "desc": "The length of block.",
"is_ribbon": "is_ribbon" "default": "2.5"
}, },
"transform": "move(2.5 + length, 5 + width, 0) @ rot(0, 0, -180)" {
}, "field": "width_",
{ "type": "float",
"identifier": "raw_floor_border", "title": "Width",
"skip": "False", "desc": "The width of block.",
"params": { "default": "2.5"
"height": "height", },
"length": "width", {
"face": "(face[0], face[1], False, False, face[3], False)", "field": "height_",
"is_sink": "is_sink", "type": "float",
"is_ribbon": "is_ribbon" "title": "Height",
}, "desc": "The height of block.",
"transform": "move(5 + length, 2.5, 0) @ rot(0, 0, -270)" "default": "5.0"
} },
] {
}, "field": "face_",
{ "type": "face",
"identifier": "floor_normal_platform", "title": "Face",
"showcase": { "desc": "Whether has some faces.",
"title": "Normal Platform", "default": "(True, False, True, True, True, True)"
"icon": "NormalPlatform", }
"type": "floor", ]
"cfgs": [ },
{ "params": [
"field": "length_", {
"type": "float", "field": "height",
"title": "Length", "data": "height_"
"desc": "The length of block.", },
"default": "2.5" {
}, "field": "length",
{ "data": "length_"
"field": "width_", },
"type": "float", {
"title": "Width", "field": "width",
"desc": "The width of block.", "data": "width_"
"default": "2.5" },
}, {
{ "field": "face",
"field": "height_", "data": "face_"
"type": "float", }
"title": "Height", ],
"desc": "The height of block.", "skip": "False",
"default": "5.0" "vars": [],
}, "vertices": [],
{ "faces": [],
"field": "face_", "instances": [
"type": "face", {
"title": "Face", "identifier": "raw_floor_platform",
"desc": "Whether has some faces.", "skip": "False",
"default": "(True, False, True, True, True, True)" "params": {
} "length": "length",
] "width": "width",
}, "height": "height",
"params": [ "face": "face",
{ "is_sink": "False",
"field": "height", "is_ribbon": "False"
"data": "height_" },
}, "transform": "ident()"
{ }
"field": "length", ]
"data": "length_" },
}, {
{ "identifier": "floor_sink_platform",
"field": "width", "showcase": {
"data": "width_" "title": "Sink Platform",
}, "category": "Platforms",
{ "icon": "SinkPlatform",
"field": "face", "type": "floor",
"data": "face_" "cfgs": [
} {
], "field": "length_",
"skip": "False", "type": "float",
"vars": [], "title": "Length",
"vertices": [], "desc": "The length of block.",
"faces": [], "default": "2.5"
"instances": [ },
{ {
"identifier": "raw_floor_platform", "field": "width_",
"skip": "False", "type": "float",
"params": { "title": "Width",
"length": "length", "desc": "The width of block.",
"width": "width", "default": "2.5"
"height": "height", },
"face": "face", {
"is_sink": "False", "field": "height_",
"is_ribbon": "False" "type": "float",
}, "title": "Height",
"transform": "ident()" "desc": "The height of block.",
} "default": "5.0"
] },
}, {
{ "field": "face_",
"identifier": "floor_sink_platform", "type": "face",
"showcase": { "title": "Face",
"title": "Sink Platform", "desc": "Whether has some faces.",
"icon": "SinkPlatform", "default": "(True, False, True, True, True, True)"
"type": "floor", }
"cfgs": [ ]
{ },
"field": "length_", "params": [
"type": "float", {
"title": "Length", "field": "height",
"desc": "The length of block.", "data": "height_"
"default": "2.5" },
}, {
{ "field": "length",
"field": "width_", "data": "length_"
"type": "float", },
"title": "Width", {
"desc": "The width of block.", "field": "width",
"default": "2.5" "data": "width_"
}, },
{ {
"field": "height_", "field": "face",
"type": "float", "data": "face_"
"title": "Height", }
"desc": "The height of block.", ],
"default": "5.0" "skip": "False",
}, "vars": [],
{ "vertices": [],
"field": "face_", "faces": [],
"type": "face", "instances": [
"title": "Face", {
"desc": "Whether has some faces.", "identifier": "raw_floor_platform",
"default": "(True, False, True, True, True, True)" "skip": "False",
} "params": {
] "length": "length",
}, "width": "width",
"params": [ "height": "height",
{ "face": "face",
"field": "height", "is_sink": "True",
"data": "height_" "is_ribbon": "False"
}, },
{ "transform": "ident()"
"field": "length", }
"data": "length_" ]
}, },
{ {
"field": "width", "identifier": "floor_ribbon_platform",
"data": "width_" "showcase": {
}, "title": "Ribbon Platform",
{ "category": "Platforms",
"field": "face", "icon": "RibbonPlatform",
"data": "face_" "type": "floor",
} "cfgs": [
], {
"skip": "False", "field": "length_",
"vars": [], "type": "float",
"vertices": [], "title": "Length",
"faces": [], "desc": "The length of block.",
"instances": [ "default": "2.5"
{ },
"identifier": "raw_floor_platform", {
"skip": "False", "field": "width_",
"params": { "type": "float",
"length": "length", "title": "Width",
"width": "width", "desc": "The width of block.",
"height": "height", "default": "2.5"
"face": "face", },
"is_sink": "True", {
"is_ribbon": "False" "field": "height_",
}, "type": "float",
"transform": "ident()" "title": "Height",
} "desc": "The height of block.",
] "default": "5.0"
}, },
{ {
"identifier": "floor_ribbon_platform", "field": "face_",
"showcase": { "type": "face",
"title": "Ribbon Platform", "title": "Face",
"icon": "RibbonPlatform", "desc": "Whether has some faces.",
"type": "floor", "default": "(True, False, True, True, True, True)"
"cfgs": [ }
{ ]
"field": "length_", },
"type": "float", "params": [
"title": "Length", {
"desc": "The length of block.", "field": "height",
"default": "2.5" "data": "height_"
}, },
{ {
"field": "width_", "field": "length",
"type": "float", "data": "length_"
"title": "Width", },
"desc": "The width of block.", {
"default": "2.5" "field": "width",
}, "data": "width_"
{ },
"field": "height_", {
"type": "float", "field": "face",
"title": "Height", "data": "face_"
"desc": "The height of block.", }
"default": "5.0" ],
}, "skip": "False",
{ "vars": [],
"field": "face_", "vertices": [],
"type": "face", "faces": [],
"title": "Face", "instances": [
"desc": "Whether has some faces.", {
"default": "(True, False, True, True, True, True)" "identifier": "raw_floor_platform",
} "skip": "False",
] "params": {
}, "length": "length",
"params": [ "width": "width",
{ "height": "height",
"field": "height", "face": "face",
"data": "height_" "is_sink": "True",
}, "is_ribbon": "True"
{ },
"field": "length", "transform": "ident()"
"data": "length_" }
}, ]
{ }
"field": "width",
"data": "width_"
},
{
"field": "face",
"data": "face_"
}
],
"skip": "False",
"vars": [],
"vertices": [],
"faces": [],
"instances": [
{
"identifier": "raw_floor_platform",
"skip": "False",
"params": {
"length": "length",
"width": "width",
"height": "height",
"face": "face",
"is_sink": "True",
"is_ribbon": "True"
},
"transform": "ident()"
}
]
}
] ]

View File

@ -1,182 +1,324 @@
[ [
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"showcase": null, "showcase": null,
"params": [ "params": [
{ {
"field": "height", "field": "height",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "length", "field": "length",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "is_left_sink", "field": "is_left_sink",
"data": "False" "data": "False"
}, },
{ {
"field": "is_right_sink", "field": "is_right_sink",
"data": "False" "data": "False"
} }
], ],
"skip": "height <= (0.7 if (is_left_sink or is_right_sink) else 0.0) or length == 0.0", "skip": "height <= (0.7 if (is_left_sink or is_right_sink) else 0.0) or length == 0.0",
"vars": [ "vars": [
{ {
"field": "skip_long_side", "field": "skip_long_side",
"data": "height <= 5.0" "data": "height <= 5.0"
}, },
{ {
"field": "skip_short_side", "field": "skip_short_side",
"data": "height > 5.0" "data": "height > 5.0"
}, },
{ {
"field": "uv_height", "field": "uv_height",
"data": "height / 5.0" "data": "height / 5.0"
}, },
{ {
"field": "uv_length", "field": "uv_length",
"data": "length / 5.0" "data": "length / 5.0"
}, },
{ {
"field": "left_sink", "field": "left_sink",
"data": "0.7 if is_left_sink else 0.0" "data": "0.7 if is_left_sink else 0.0"
}, },
{ {
"field": "right_sink", "field": "right_sink",
"data": "0.7 if is_right_sink else 0.0" "data": "0.7 if is_right_sink else 0.0"
}, },
{ {
"field": "uv_left_sink", "field": "uv_left_sink",
"data": "left_sink / 5.0" "data": "left_sink / 5.0"
}, },
{ {
"field": "uv_right_sink", "field": "uv_right_sink",
"data": "right_sink / 5.0" "data": "right_sink / 5.0"
} }
], ],
"vertices": [ "vertices": [
{ {
"skip": "False", "skip": "False",
"data": "(0, 0, -left_sink)" "data": "(0, 0, -left_sink)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(length, 0, -right_sink)" "data": "(length, 0, -right_sink)"
}, },
{ {
"skip": "skip_long_side", "skip": "skip_long_side",
"data": "(0, 0, -5.0)" "data": "(0, 0, -5.0)"
}, },
{ {
"skip": "skip_long_side", "skip": "skip_long_side",
"data": "(length, 0, -5.0)" "data": "(length, 0, -5.0)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(0, 0, -height)" "data": "(0, 0, -height)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(length, 0, -height)" "data": "(length, 0, -height)"
} }
], ],
"faces": [ "faces": [
{ {
"skip": "skip_short_side", "skip": "skip_short_side",
"texture": "\"FloorSide\"", "texture": "\"FloorSide\"",
"indices": [0, 2, 3, 1], "indices": [0, 2, 3, 1],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(uv_height - uv_left_sink, 0)", "(uv_height - uv_left_sink, 0)",
"(uv_height - uv_right_sink, uv_length)", "(uv_height - uv_right_sink, uv_length)",
"(0, uv_length)" "(0, uv_length)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "skip_long_side", "skip": "skip_long_side",
"texture": "\"LightingFloorTopBorder\"", "texture": "\"LightingFloorTopBorder\"",
"indices": [0, 2, 3, 1], "indices": [0, 2, 3, 1],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(1 - uv_left_sink, 0)", "(1 - uv_left_sink, 0)",
"(1 - uv_right_sink, uv_length)", "(1 - uv_right_sink, uv_length)",
"(0, uv_length)" "(0, uv_length)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "skip_long_side", "skip": "skip_long_side",
"texture": "\"LightingFloorTopBorderless\"", "texture": "\"LightingFloorTopBorderless\"",
"indices": [2, 4, 5, 3], "indices": [2, 4, 5, 3],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(uv_height - 1.0, 0)", "(uv_height - 1.0, 0)",
"(uv_height - 1.0, uv_length)", "(uv_height - 1.0, uv_length)",
"(0, uv_length)" "(0, uv_length)"
], ],
"normals": null "normals": null
} }
], ],
"instances": [] "instances": []
}, },
{ {
"identifier": "floor_bottom", "identifier": "floor_4edges_bottom",
"showcase": null, "showcase": null,
"params": [ "params": [
{ {
"field": "length", "field": "top_left_pos",
"data": "5.0" "data": "(0.0, 0.0)"
}, },
{ {
"field": "width", "field": "top_right_pos",
"data": "5.0" "data": "(0.0, 5.0)"
} },
], {
"skip": "length == 0.0 or width == 0.0", "field": "bottom_left_pos",
"vars": [ "data": "(5.0, 0.0)"
{ },
"field": "uv_length", {
"data": "length / 5.0" "field": "bottom_right_pos",
}, "data": "(5.0, 5.0)"
{ }
"field": "uv_width", ],
"data": "width / 5.0" "skip": "False",
} "vars": [
], {
"vertices": [ "field": "top_left_uv",
{ "data": "tuple(map(lambda x: x / 5.0, top_left_pos))"
"skip": "False", },
"data": "(0, 0, 0)" {
}, "field": "top_right_uv",
{ "data": "tuple(map(lambda x: x / 5.0, top_right_pos))"
"skip": "False", },
"data": "(0, width, 0)" {
}, "field": "bottom_left_uv",
{ "data": "tuple(map(lambda x: x / 5.0, bottom_left_pos))"
"skip": "False", },
"data": "(length, 0, 0)" {
}, "field": "bottom_right_uv",
{ "data": "tuple(map(lambda x: x / 5.0, bottom_right_pos))"
"skip": "False", }
"data": "(length, width, 0)" ],
} "vertices": [
], {
"faces": [ "skip": "False",
{ "data": "top_left_pos + (0, )"
"skip": "False", },
"texture": "\"FloorTopBorderless\"", {
"indices": [0, 1, 3, 2], "skip": "False",
"uvs": [ "data": "top_right_pos + (0, )"
"(0, 0)", },
"(uv_width, 0)", {
"(uv_width, uv_length)", "skip": "False",
"(0, uv_length)" "data": "bottom_left_pos + (0, )"
], },
"normals": null {
} "skip": "False",
], "data": "bottom_right_pos + (0, )"
"instances": [] }
} ],
"faces": [
{
"skip": "False",
"texture": "\"FloorTopBorderless\"",
"indices": [0, 1, 3, 2],
"uvs": [
"top_left_uv",
"top_right_uv",
"bottom_right_uv",
"bottom_left_uv"
],
"normals": null
}
],
"instances": []
},
{
"identifier": "floor_3edges_bottom",
"showcase": null,
"params": [
{
"field": "top_pos",
"data": "(0.0, 0.0)"
},
{
"field": "bottom_pos",
"data": "(5.0, 0.0)"
},
{
"field": "tip_pos",
"data": "(2.5, 2.5)"
}
],
"skip": "False",
"vars": [
{
"field": "top_uv",
"data": "tuple(map(lambda x: x / 5.0, top_pos))"
},
{
"field": "bottom_uv",
"data": "tuple(map(lambda x: x / 5.0, bottom_pos))"
},
{
"field": "tip_uv",
"data": "tuple(map(lambda x: x / 5.0, tip_pos))"
}
],
"vertices": [
{
"skip": "False",
"data": "top_pos + (0, )"
},
{
"skip": "False",
"data": "bottom_pos + (0, )"
},
{
"skip": "False",
"data": "tip_pos + (0, )"
}
],
"faces": [
{
"skip": "False",
"texture": "\"FloorTopBorderless\"",
"indices": [0, 2, 1],
"uvs": [
"top_uv",
"tip_uv",
"bottom_uv"
],
"normals": null
}
],
"instances": []
},
{
"identifier": "floor_rectangle_bottom",
"showcase": null,
"params": [
{
"field": "length",
"data": "5.0"
},
{
"field": "width",
"data": "5.0"
}
],
"skip": "length == 0.0 or width == 0.0",
"vars": [],
"vertices": [],
"faces": [],
"instances": [
{
"identifier": "floor_4edges_bottom",
"skip": "False",
"params": {
"top_left_pos": "(0, 0)",
"top_right_pos": "(0, width)",
"bottom_left_pos": "(length, 0)",
"bottom_right_pos": "(length, width)"
},
"transform": "ident()"
}
]
},
{
"identifier": "floor_triangle_bottom",
"showcase": null,
"params": [
{
"field": "length",
"data": "5.0"
},
{
"field": "width",
"data": "2.5"
},
{
"field": "tip_offset",
"data": "2.5"
}
],
"skip": "length == 0.0",
"vars": [],
"vertices": [],
"faces": [],
"instances": [
{
"identifier": "floor_3edges_bottom",
"skip": "False",
"params": {
"top_pos": "(0, 0)",
"bottom_pos": "(length, 0)",
"tip_pos": "(tip_offset, width)"
},
"transform": "ident()"
}
]
}
] ]

324
assets/jsons/streets.json5 Normal file
View File

@ -0,0 +1,324 @@
[
{
"identifier": "floor_normal_straight",
"showcase": {
"title": "Normal Floor",
"category": "Floors",
"icon": "NormalFloor",
"type": "floor",
"cfgs": [
{
"field": "height_",
"type": "float",
"title": "Height",
"desc": "The height of block.",
"default": "5.0"
},
{
"field": "length_",
"type": "float",
"title": "Length",
"desc": "The length of block.",
"default": "2.5"
},
{
"field": "face_",
"type": "face",
"title": "Face",
"desc": "Whether has some faces.",
"default": "(True, False, False, False, True, True)"
}
]
},
"params": [
{
"field": "height",
"data": "height_"
},
{
"field": "length",
"data": "length_"
},
{
"field": "face",
"data": "face_"
}
],
"skip": "length == 0",
"vars": [
{
"field": "length_uv",
"data": "length / 5.0"
}
],
"vertices": [
{
"skip": "not face[0]",
"data": "(0, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(length, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(length, 5, 0)"
},
{
"skip": "not face[0]",
"data": "(0, 5, 0)"
}
],
"faces": [
{
"skip": "not face[0]",
"texture": "\"FloorTopFlat\"",
"indices": [0, 1, 2, 3],
"uvs": [
"(0, 0)",
"(0, length_uv)",
"(1, length_uv)",
"(1, 0)"
],
"normals": null
}
],
"instances": [
{
"identifier": "raw_floor_side",
"skip": "not face[2]",
"params": {
"height": "height",
"length": "5",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "rot(0, 0, 90) @ scale(1, -1, 1)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[3]",
"params": {
"height": "height",
"length": "5",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "move(length, 0, 0) @ rot(0, 0, 90)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[4]",
"params": {
"height": "height",
"length": "length",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "ident()"
},
{
"identifier": "raw_floor_side",
"skip": "not face[5]",
"params": {
"height": "height",
"length": "length",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "move(0, 5, 0) @ scale(1, -1, 1)"
},
{
"identifier": "floor_rectangle_bottom",
"skip": "not face[1]",
"params": {
"length": "length",
"width": "5"
},
"transform": "move(0, 0, -height)"
}
]
},
{
"identifier": "floor_sink_straight",
"showcase": {
"title": "Sink Floor",
"category": "Floors",
"icon": "SinkFloor",
"type": "floor",
"cfgs": [
{
"field": "height_",
"type": "float",
"title": "Height",
"desc": "The height of block.",
"default": "5.0"
},
{
"field": "length_",
"type": "float",
"title": "Length",
"desc": "The length of block.",
"default": "2.5"
},
{
"field": "face_",
"type": "face",
"title": "Face",
"desc": "Whether has some faces.",
"default": "(True, False, False, False, True, True)"
}
]
},
"params": [
{
"field": "height",
"data": "height_"
},
{
"field": "length",
"data": "length_"
},
{
"field": "face",
"data": "face_"
}
],
"skip": "length == 0",
"vars": [
{
"field": "length_uv",
"data": "length / 5.0"
}
],
"vertices": [
{
"skip": "not face[0]",
"data": "(0, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(length, 0, 0)"
},
{
"skip": "not face[0]",
"data": "(length, 2.5, -0.7)"
},
{
"skip": "not face[0]",
"data": "(0, 2.5, -0.7)"
},
{
"skip": "not face[0]",
"data": "(length, 5, 0)"
},
{
"skip": "not face[0]",
"data": "(0, 5, 0)"
}
],
"faces": [
{
"skip": "not face[0]",
"texture": "\"FloorTopProfil\"",
"indices": [0, 1, 2, 3],
"uvs": [
"(0, 0)",
"(0, length_uv)",
"(0.5, length_uv)",
"(0.5, 0)"
],
"normals": null
},
{
"skip": "not face[0]",
"texture": "\"FloorTopProfil\"",
"indices": [3, 2, 4, 5],
"uvs": [
"(0.5, 0)",
"(0.5, length_uv)",
"(1, length_uv)",
"(1, 0)"
],
"normals": null
}
],
"instances": [
{
"identifier": "raw_floor_side",
"skip": "not face[2]",
"params": {
"height": "height",
"length": "2.5",
"is_left_sink": "False",
"is_right_sink": "True"
},
"transform": "rot(0, 0, 90) @ scale(1, -1, 1)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[2]",
"params": {
"height": "height",
"length": "2.5",
"is_left_sink": "True",
"is_right_sink": "False"
},
"transform": "move(0, 2.5, 0) @ rot(0, 0, 90) @ scale(1, -1, 1)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[3]",
"params": {
"height": "height",
"length": "2.5",
"is_left_sink": "False",
"is_right_sink": "True"
},
"transform": "move(length, 0, 0) @ rot(0, 0, 90)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[3]",
"params": {
"height": "height",
"length": "2.5",
"is_left_sink": "True",
"is_right_sink": "False"
},
"transform": "move(length, 2.5, 0) @ rot(0, 0, 90)"
},
{
"identifier": "raw_floor_side",
"skip": "not face[4]",
"params": {
"height": "height",
"length": "length",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "ident()"
},
{
"identifier": "raw_floor_side",
"skip": "not face[5]",
"params": {
"height": "height",
"length": "length",
"is_left_sink": "False",
"is_right_sink": "False"
},
"transform": "move(0, 5, 0) @ scale(1, -1, 1)"
},
{
"identifier": "floor_rectangle_bottom",
"skip": "not face[1]",
"params": {
"length": "length",
"width": "5"
},
"transform": "move(0, 0, -height)"
}
]
}
]

View File

@ -1,150 +1,178 @@
[ [
{ // The shared template prototype used by all floor terminals.
"identifier": "raw_floor_terminal", {
"showcase": null, "identifier": "raw_floor_terminal",
"params": [ "showcase": null,
{ "params": [
"field": "height", {
"data": "5.0" "field": "height",
}, "data": "5.0"
{ },
"field": "face", {
"data": "(True, False, True, False, True, True)" "field": "face",
}, "data": "(True, False, True, False, True, True)"
{ },
"field": "is_sink", {
"data": "False" "field": "is_sink",
} "data": "False"
], }
"skip": "False", ],
"vars": [], "skip": "False",
"vertices": [], "vars": [],
"faces": [], "vertices": [],
"instances": [ "faces": [],
{ "instances": [
"identifier": "raw_floor_corner", {
"skip": "False", "identifier": "cv_trapezoid_side",
"params": { "skip": "False",
"height": "height", "params": {
"face": "(face[0], face[1], face[2], face[3], face[4], False)", "long_edge_length": "5.0",
"is_sink": "is_sink", "short_edge_offset": "2.5",
"is_inner": "False", "short_edge_length": "2.5",
"is_ribbon": "False" "height": "height",
}, "face": "(face[0], False, False, face[3], face[4], False)",
"transform": "ident()" "is_sink": "is_sink",
}, "is_ribbon": "False"
{ },
"identifier": "raw_floor_corner", "transform": "ident()"
"skip": "False", },
"params": { {
"height": "height", "identifier": "cv_trapezoid_side",
"face": "(face[0], face[1], face[5], False, face[2], face[3])", "skip": "False",
"is_sink": "is_sink", "params": {
"is_inner": "False", "long_edge_length": "5.0",
"is_ribbon": "False" "short_edge_offset": "2.5",
}, "short_edge_length": "2.5",
"transform": "move(0, 5, 0) @ rot(0, 0, -90)" "height": "height",
} "face": "(face[0], False, False, face[3], face[5], False)",
] "is_sink": "is_sink",
}, "is_ribbon": "False"
{ },
"identifier": "floor_normal_terminal", "transform": "move(0, 5, 0) @ scale(1, -1, 1)"
"showcase": { },
"title": "Normal Floor Terminal", {
"icon": "NormalFloorTerminal", "identifier": "cv_triangle_side",
"type": "floor", "skip": "False",
"cfgs": [ "params": {
{ "edge_length": "5",
"field": "height_", "tip_offset": "2.5",
"type": "float", "height": "height",
"title": "Height", "face": "(face[0], False, False, False, face[2], None)",
"desc": "The height of block.", "is_sink": "is_sink"
"default": "5.0" },
}, "transform": "move(0, 5, 0) @ rot(0, 0, -90)"
{ },
"field": "face_", {
"type": "face", "identifier": "floor_rectangle_bottom",
"title": "Face", "skip": "not face[1]",
"desc": "Whether has some faces.", "params": {
"default": "(True, False, True, False, True, True)" "length": "5",
} "width": "5"
] },
}, "transform": "move(0, 0, -height)"
"params": [ }
{ ]
"field": "height", },
"data": "height_" {
}, "identifier": "floor_normal_terminal",
{ "showcase": {
"field": "face", "title": "Normal Floor Terminal",
"data": "face_" "category": "Floors",
} "icon": "NormalFloorTerminal",
], "type": "floor",
"skip": "False", "cfgs": [
"vars": [], {
"vertices": [], "field": "height_",
"faces": [], "type": "float",
"instances": [ "title": "Height",
{ "desc": "The height of block.",
"identifier": "raw_floor_terminal", "default": "5.0"
"skip": "False", },
"params": { {
"height": "height", "field": "face_",
"face": "face", "type": "face",
"is_sink": "False" "title": "Face",
}, "desc": "Whether has some faces.",
"transform": "ident()" "default": "(True, False, True, False, True, True)"
} }
] ]
}, },
{ "params": [
"identifier": "floor_sink_terminal", {
"showcase": { "field": "height",
"title": "Sink Floor Terminal", "data": "height_"
"icon": "SinkFloorTerminal", },
"type": "floor", {
"cfgs": [ "field": "face",
{ "data": "face_"
"field": "height_", }
"type": "float", ],
"title": "Height", "skip": "False",
"desc": "The height of block.", "vars": [],
"default": "5.0" "vertices": [],
}, "faces": [],
{ "instances": [
"field": "face_", {
"type": "face", "identifier": "raw_floor_terminal",
"title": "Face", "skip": "False",
"desc": "Whether has some faces.", "params": {
"default": "(True, False, True, False, True, True)" "height": "height",
} "face": "face",
] "is_sink": "False"
}, },
"params": [ "transform": "ident()"
{ }
"field": "height", ]
"data": "height_" },
}, {
{ "identifier": "floor_sink_terminal",
"field": "face", "showcase": {
"data": "face_" "title": "Sink Floor Terminal",
} "category": "Floors",
], "icon": "SinkFloorTerminal",
"skip": "False", "type": "floor",
"vars": [], "cfgs": [
"vertices": [], {
"faces": [], "field": "height_",
"instances": [ "type": "float",
{ "title": "Height",
"identifier": "raw_floor_terminal", "desc": "The height of block.",
"skip": "False", "default": "5.0"
"params": { },
"height": "height", {
"face": "face", "field": "face_",
"is_sink": "True" "type": "face",
}, "title": "Face",
"transform": "ident()" "desc": "Whether has some faces.",
} "default": "(True, False, True, False, True, True)"
] }
} ]
},
"params": [
{
"field": "height",
"data": "height_"
},
{
"field": "face",
"data": "face_"
}
],
"skip": "False",
"vars": [],
"vertices": [],
"faces": [],
"instances": [
{
"identifier": "raw_floor_terminal",
"skip": "False",
"params": {
"height": "height",
"face": "face",
"is_sink": "True"
},
"transform": "ident()"
}
]
}
] ]

View File

@ -1,286 +1,289 @@
[ [
{ {
"identifier": "raw_trafo", "identifier": "raw_trafo",
"showcase": null, "showcase": null,
"params": [ "params": [
{ {
"field": "trafo_texture", "field": "trafo_texture",
"data": "\"BallWood\"" "data": "\"BallWood\""
}, },
{ {
"field": "height", "field": "height",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "face", "field": "face",
"data": "(True, False, True, True, True, True)" "data": "(True, False, True, True, True, True)"
} }
], ],
"skip": "False", "skip": "False",
"vars": [ "vars": [
{ {
"field": "uv_height", "field": "uv_height",
"data": "height / 5.0" "data": "height / 5.0"
} }
], ],
"vertices": [ "vertices": [
{ {
"skip": "False", "skip": "False",
"data": "(0, 0, 0)" "data": "(0, 0, 0)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(5, 0, 0)" "data": "(5, 0, 0)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(5, 5, 0)" "data": "(5, 5, 0)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(0, 5, 0)" "data": "(0, 5, 0)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(0, 0, -height)" "data": "(0, 0, -height)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(5, 0, -height)" "data": "(5, 0, -height)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(5, 5, -height)" "data": "(5, 5, -height)"
}, },
{ {
"skip": "False", "skip": "False",
"data": "(0, 5, -height)" "data": "(0, 5, -height)"
} }
], ],
"faces": [ "faces": [
{ {
"skip": "not face[0]", "skip": "not face[0]",
"texture": "trafo_texture", "texture": "trafo_texture",
"indices": [0, 1, 2, 3], "indices": [0, 1, 2, 3],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(1, 0)", "(1, 0)",
"(1, 1)", "(1, 1)",
"(0, 1)" "(0, 1)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "(not face[1]) or height == 0.0", "skip": "(not face[1]) or height == 0.0",
"texture": "trafo_texture", "texture": "trafo_texture",
"indices": [5, 4, 7, 6], "indices": [5, 4, 7, 6],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(1, 0)", "(1, 0)",
"(1, 1)", "(1, 1)",
"(0, 1)" "(0, 1)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "(not face[2]) or height == 0.0", "skip": "(not face[2]) or height == 0.0",
"texture": "trafo_texture", "texture": "trafo_texture",
"indices": [3, 7, 4, 0], "indices": [3, 7, 4, 0],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(uv_height, 0)", "(uv_height, 0)",
"(uv_height, 1)", "(uv_height, 1)",
"(0, 1)" "(0, 1)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "(not face[3]) or height == 0.0", "skip": "(not face[3]) or height == 0.0",
"texture": "trafo_texture", "texture": "trafo_texture",
"indices": [1, 5, 6, 2], "indices": [1, 5, 6, 2],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(uv_height, 0)", "(uv_height, 0)",
"(uv_height, 1)", "(uv_height, 1)",
"(0, 1)" "(0, 1)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "(not face[4]) or height == 0.0", "skip": "(not face[4]) or height == 0.0",
"texture": "trafo_texture", "texture": "trafo_texture",
"indices": [0, 4, 5, 1], "indices": [0, 4, 5, 1],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(uv_height, 0)", "(uv_height, 0)",
"(uv_height, 1)", "(uv_height, 1)",
"(0, 1)" "(0, 1)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "(not face[5]) or height == 0.0", "skip": "(not face[5]) or height == 0.0",
"texture": "trafo_texture", "texture": "trafo_texture",
"indices": [2, 6, 7, 3], "indices": [2, 6, 7, 3],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(uv_height, 0)", "(uv_height, 0)",
"(uv_height, 1)", "(uv_height, 1)",
"(0, 1)" "(0, 1)"
], ],
"normals": null "normals": null
} }
], ],
"instances": [] "instances": []
}, },
{ {
"identifier": "wood_trafo", "identifier": "wood_trafo",
"showcase": { "showcase": {
"title": "Wood Trafo", "title": "Wood Trafo",
"icon": "WoodTrafo", "category": "Trafo",
"type": "floor", "icon": "WoodTrafo",
"cfgs": [ "type": "floor",
{ "cfgs": [
"field": "height_", {
"type": "float", "field": "height_",
"title": "Height", "type": "float",
"desc": "The height of block.", "title": "Height",
"default": "5.0" "desc": "The height of block.",
}, "default": "5.0"
{ },
"field": "face_", {
"type": "face", "field": "face_",
"title": "Face", "type": "face",
"desc": "Whether has some faces.", "title": "Face",
"default": "(True, False, True, True, True, True)" "desc": "Whether has some faces.",
} "default": "(True, False, True, True, True, True)"
] }
}, ]
"params": [ },
{ "params": [
"field": "height", {
"data": "height_" "field": "height",
}, "data": "height_"
{ },
"field": "face", {
"data": "face_" "field": "face",
} "data": "face_"
], }
"skip": "False", ],
"vars": [], "skip": "False",
"vertices": [], "vars": [],
"faces": [], "vertices": [],
"instances": [ "faces": [],
{ "instances": [
"identifier": "raw_trafo", {
"skip": "False", "identifier": "raw_trafo",
"params": { "skip": "False",
"trafo_texture": "\"BallWood\"", "params": {
"height": "height", "trafo_texture": "\"BallWood\"",
"face": "face" "height": "height",
}, "face": "face"
"transform": "ident()" },
} "transform": "ident()"
] }
}, ]
{ },
"identifier": "stone_trafo", {
"showcase": { "identifier": "stone_trafo",
"title": "Stone Trafo", "showcase": {
"icon": "StoneTrafo", "title": "Stone Trafo",
"type": "floor", "category": "Trafo",
"cfgs": [ "icon": "StoneTrafo",
{ "type": "floor",
"field": "height_", "cfgs": [
"type": "float", {
"title": "Height", "field": "height_",
"desc": "The height of block.", "type": "float",
"default": "5.0" "title": "Height",
}, "desc": "The height of block.",
{ "default": "5.0"
"field": "face_", },
"type": "face", {
"title": "Face", "field": "face_",
"desc": "Whether has some faces.", "type": "face",
"default": "(True, False, True, True, True, True)" "title": "Face",
} "desc": "Whether has some faces.",
] "default": "(True, False, True, True, True, True)"
}, }
"params": [ ]
{ },
"field": "height", "params": [
"data": "height_" {
}, "field": "height",
{ "data": "height_"
"field": "face", },
"data": "face_" {
} "field": "face",
], "data": "face_"
"skip": "False", }
"vars": [], ],
"vertices": [], "skip": "False",
"faces": [], "vars": [],
"instances": [ "vertices": [],
{ "faces": [],
"identifier": "raw_trafo", "instances": [
"skip": "False", {
"params": { "identifier": "raw_trafo",
"trafo_texture": "\"BallStone\"", "skip": "False",
"height": "height", "params": {
"face": "face" "trafo_texture": "\"BallStone\"",
}, "height": "height",
"transform": "ident()" "face": "face"
} },
] "transform": "ident()"
}, }
{ ]
"identifier": "paper_trafo", },
"showcase": { {
"title": "Paper Trafo", "identifier": "paper_trafo",
"icon": "PaperTrafo", "showcase": {
"type": "floor", "title": "Paper Trafo",
"cfgs": [ "category": "Trafo",
{ "icon": "PaperTrafo",
"field": "height_", "type": "floor",
"type": "float", "cfgs": [
"title": "Height", {
"desc": "The height of block.", "field": "height_",
"default": "5.0" "type": "float",
}, "title": "Height",
{ "desc": "The height of block.",
"field": "face_", "default": "5.0"
"type": "face", },
"title": "Face", {
"desc": "Whether has some faces.", "field": "face_",
"default": "(True, False, True, True, True, True)" "type": "face",
} "title": "Face",
] "desc": "Whether has some faces.",
}, "default": "(True, False, True, True, True, True)"
"params": [ }
{ ]
"field": "height", },
"data": "height_" "params": [
}, {
{ "field": "height",
"field": "face", "data": "height_"
"data": "face_" },
} {
], "field": "face",
"skip": "False", "data": "face_"
"vars": [], }
"vertices": [], ],
"faces": [], "skip": "False",
"instances": [ "vars": [],
{ "vertices": [],
"identifier": "raw_trafo", "faces": [],
"skip": "False", "instances": [
"params": { {
"trafo_texture": "\"BallPaper\"", "identifier": "raw_trafo",
"height": "height", "skip": "False",
"face": "face" "params": {
}, "trafo_texture": "\"BallPaper\"",
"transform": "ident()" "height": "height",
} "face": "face"
] },
} "transform": "ident()"
}
]
}
] ]

View File

@ -1,270 +1,272 @@
[ [
{ {
"identifier": "raw_floor_transition_part", "identifier": "raw_floor_transition_part",
"showcase": null, "showcase": null,
"params": [ "params": [
{ {
"field": "height", "field": "height",
"data": "5.0" "data": "5.0"
}, },
{ {
"field": "face_part", "field": "face_part",
"data": "(True, False, False)" "data": "(True, False, False)"
} }
], ],
"skip": "False", "skip": "False",
"vars": [], "vars": [],
"vertices": [ "vertices": [
{ {
"skip": "not face_part[0]", "skip": "not face_part[0]",
"data": "(0, 0, 0)" "data": "(0, 0, 0)"
}, },
{ {
"skip": "not face_part[0]", "skip": "not face_part[0]",
"data": "(5, 0, 0)" "data": "(5, 0, 0)"
}, },
{ {
"skip": "not face_part[0]", "skip": "not face_part[0]",
"data": "(0, 2.5, -0.7)" "data": "(0, 2.5, -0.7)"
}, },
{ {
"skip": "not face_part[0]", "skip": "not face_part[0]",
"data": "(5, 5, 0)" "data": "(5, 5, 0)"
}, },
{ {
"skip": "not face_part[0]", "skip": "not face_part[0]",
"data": "(0, 5, 0)" "data": "(0, 5, 0)"
} }
], ],
"faces": [ "faces": [
{ {
"skip": "not face_part[0]", "skip": "not face_part[0]",
"texture": "\"FloorTopProfilFlat\"", "texture": "\"FloorTopProfilFlat\"",
"indices": [0, 1, 2], "indices": [0, 1, 2],
"uvs": [ "uvs": [
"(0, 1)", "(0, 1)",
"(0, 0)", "(0, 0)",
"(0.5, 1)" "(0.5, 1)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "not face_part[0]", "skip": "not face_part[0]",
"texture": "\"FloorTopProfilFlat\"", "texture": "\"FloorTopProfilFlat\"",
"indices": [3, 2, 1], "indices": [3, 2, 1],
"uvs": [ "uvs": [
"(1, 0)", "(1, 0)",
"(0.5, 1)", "(0.5, 1)",
"(0, 0)" "(0, 0)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "not face_part[0]", "skip": "not face_part[0]",
"texture": "\"FloorTopProfilFlat\"", "texture": "\"FloorTopProfilFlat\"",
"indices": [2, 3, 4], "indices": [2, 3, 4],
"uvs": [ "uvs": [
"(0.5, 1)", "(0.5, 1)",
"(1, 0)", "(1, 0)",
"(1, 1)" "(1, 1)"
], ],
"normals": null "normals": null
} }
], ],
"instances": [ "instances": [
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face_part[1]", "skip": "not face_part[1]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "True" "is_right_sink": "True"
}, },
"transform": "move(0, 5, 0) @ rot(0, 0, -90)" "transform": "move(0, 5, 0) @ rot(0, 0, -90)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face_part[1]", "skip": "not face_part[1]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "True", "is_left_sink": "True",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "move(0, 2.5, 0) @ rot(0, 0, -90)" "transform": "move(0, 2.5, 0) @ rot(0, 0, -90)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face_part[2]", "skip": "not face_part[2]",
"params": { "params": {
"height": "height", "height": "height",
"length": "5", "length": "5",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "move(5, 0, 0) @ rot(0, 0, 90)" "transform": "move(5, 0, 0) @ rot(0, 0, 90)"
} }
] ]
}, },
{ {
"identifier": "floor_transition", "identifier": "floor_transition",
"showcase": { "showcase": {
"title": "Transition", "title": "Transition",
"icon": "Transition", "category": "Miscellaneous",
"type": "floor", "icon": "Transition",
"cfgs": [ "type": "floor",
{ "cfgs": [
"field": "height_", {
"type": "float", "field": "height_",
"title": "Height", "type": "float",
"desc": "The height of block.", "title": "Height",
"default": "5.0" "desc": "The height of block.",
}, "default": "5.0"
{ },
"field": "face_", {
"type": "face", "field": "face_",
"title": "Face", "type": "face",
"desc": "Whether has some faces.", "title": "Face",
"default": "(True, False, False, False, True, True)" "desc": "Whether has some faces.",
} "default": "(True, False, False, False, True, True)"
] }
}, ]
"params": [ },
{ "params": [
"field": "height", {
"data": "height_" "field": "height",
}, "data": "height_"
{ },
"field": "face", {
"data": "face_" "field": "face",
} "data": "face_"
], }
"skip": "False", ],
"vars": [], "skip": "False",
"vertices": [], "vars": [],
"faces": [], "vertices": [],
"instances": [ "faces": [],
{ "instances": [
"identifier": "raw_floor_transition_part", {
"skip": "False", "identifier": "raw_floor_transition_part",
"params": { "skip": "False",
"height": "height", "params": {
"face_part": "(face[0], face[2], face[3])" "height": "height",
}, "face_part": "(face[0], face[2], face[3])"
"transform": "ident()" },
}, "transform": "ident()"
{ },
"identifier": "raw_floor_side", {
"skip": "not face[4]", "identifier": "raw_floor_side",
"params": { "skip": "not face[4]",
"height": "height", "params": {
"length": "5", "height": "height",
"is_left_sink": "False", "length": "5",
"is_right_sink": "False" "is_left_sink": "False",
}, "is_right_sink": "False"
"transform": "ident()" },
}, "transform": "ident()"
{ },
"identifier": "raw_floor_side", {
"skip": "not face[5]", "identifier": "raw_floor_side",
"params": { "skip": "not face[5]",
"height": "height", "params": {
"length": "5", "height": "height",
"is_left_sink": "False", "length": "5",
"is_right_sink": "False" "is_left_sink": "False",
}, "is_right_sink": "False"
"transform": "move(5, 5, 0) @ rot(0, 0, 180)" },
}, "transform": "move(5, 5, 0) @ rot(0, 0, 180)"
{ },
"identifier": "floor_bottom", {
"skip": "not face[1]", "identifier": "floor_rectangle_bottom",
"params": { "skip": "not face[1]",
"length": "5", "params": {
"width": "5" "length": "5",
}, "width": "5"
"transform": "move(0, 0, -height)" },
} "transform": "move(0, 0, -height)"
] }
}, ]
{ },
"identifier": "floor_narrow_transition", {
"showcase": { "identifier": "floor_narrow_transition",
"title": "Narrow Transition", "showcase": {
"icon": "NarrowTransition", "title": "Narrow Transition",
"type": "floor", "category": "Miscellaneous",
"cfgs": [ "icon": "NarrowTransition",
{ "type": "floor",
"field": "height_", "cfgs": [
"type": "float", {
"title": "Height", "field": "height_",
"desc": "The height of block.", "type": "float",
"default": "5.0" "title": "Height",
}, "desc": "The height of block.",
{ "default": "5.0"
"field": "face_", },
"type": "face", {
"title": "Face", "field": "face_",
"desc": "Whether has some faces.", "type": "face",
"default": "(True, False, False, False, False, False)" "title": "Face",
} "desc": "Whether has some faces.",
] "default": "(True, False, False, False, False, False)"
}, }
"params": [ ]
{ },
"field": "height", "params": [
"data": "height_" {
}, "field": "height",
{ "data": "height_"
"field": "face", },
"data": "face_" {
} "field": "face",
], "data": "face_"
"skip": "False", }
"vars": [], ],
"vertices": [], "skip": "False",
"faces": [], "vars": [],
"instances": [ "vertices": [],
{ "faces": [],
"identifier": "raw_floor_transition_part", "instances": [
"skip": "False", {
"params": { "identifier": "raw_floor_transition_part",
"height": "height", "skip": "False",
"face_part": "(face[0], face[2], face[3])" "params": {
}, "height": "height",
"transform": "scale(0.5, 1, 1)" "face_part": "(face[0], face[2], face[3])"
}, },
{ "transform": "scale(0.5, 1, 1)"
"identifier": "raw_floor_side", },
"skip": "not face[4]", {
"params": { "identifier": "raw_floor_side",
"height": "height", "skip": "not face[4]",
"length": "2.5", "params": {
"is_left_sink": "False", "height": "height",
"is_right_sink": "False" "length": "2.5",
}, "is_left_sink": "False",
"transform": "ident()" "is_right_sink": "False"
}, },
{ "transform": "ident()"
"identifier": "raw_floor_side", },
"skip": "not face[5]", {
"params": { "identifier": "raw_floor_side",
"height": "height", "skip": "not face[5]",
"length": "2.5", "params": {
"is_left_sink": "False", "height": "height",
"is_right_sink": "False" "length": "2.5",
}, "is_left_sink": "False",
"transform": "move(2.5, 5, 0) @ rot(0, 0, 180)" "is_right_sink": "False"
}, },
{ "transform": "move(2.5, 5, 0) @ rot(0, 0, 180)"
"identifier": "floor_bottom", },
"skip": "not face[1]", {
"params": { "identifier": "floor_rectangle_bottom",
"length": "2.5", "skip": "not face[1]",
"width": "5" "params": {
}, "length": "2.5",
"transform": "move(0, 0, -height)" "width": "5"
} },
] "transform": "move(0, 0, -height)"
} }
]
}
] ]

Some files were not shown because too many files have changed in this diff Show More