@@ -42,10 +42,12 @@ export function loadExporter() {
4242 'animated_java.datapack_exporter.settings.interpolation_duration.description'
4343 ) . split ( '\n' ) ,
4444 } ,
45- outdated_rig_warning : {
46- name : API . translate ( 'animated_java.datapack_exporter.settings.outdated_rig_warning' ) ,
45+ enable_outdated_rig_warning : {
46+ name : API . translate (
47+ 'animated_java.datapack_exporter.settings.enable_outdated_rig_warning'
48+ ) ,
4749 description : API . translate (
48- 'animated_java.datapack_exporter.settings.outdated_rig_warning .description'
50+ 'animated_java.datapack_exporter.settings.enable_outdated_rig_warning .description'
4951 ) . split ( '\n' ) ,
5052 } ,
5153 include_convenience_functions : {
@@ -56,6 +58,14 @@ export function loadExporter() {
5658 'animated_java.datapack_exporter.settings.include_convenience_functions.description'
5759 ) . split ( '\n' ) ,
5860 } ,
61+ // enable_single_rig_optimizations: {
62+ // name: API.translate(
63+ // 'animated_java.datapack_exporter.settings.enable_single_rig_optimizations'
64+ // ),
65+ // description: API.translate(
66+ // 'animated_java.datapack_exporter.settings.enable_single_rig_optimizations.description'
67+ // ).split('\n'),
68+ // },
5969 root_entity_nbt : {
6070 name : API . translate ( 'animated_java.datapack_exporter.settings.root_entity_nbt' ) ,
6171 description : API . translate (
@@ -87,25 +97,17 @@ export function loadExporter() {
8797 )
8898 }
8999
90- const _export : ( typeof API . Exporter ) [ 'prototype' ] [ 'export' ] = async (
91- ajSettings ,
92- projectSettings ,
93- exporterSettings ,
94- renderedAnimations ,
95- rig
96- ) => {
100+ const _export : ( typeof API . Exporter ) [ 'prototype' ] [ 'export' ] = async exportData => {
97101 if ( ! Project ?. animated_java_variants ) throw new Error ( 'No variants found' )
98- console . log ( 'Animated Java Settings' , ajSettings )
99- console . log ( 'Project Settings' , projectSettings )
100- console . log ( 'Exporter Settings' , exporterSettings )
101- console . log ( 'Rendered Animations' , renderedAnimations )
102- console . log ( 'Rig' , rig )
102+ console . log ( 'Export Options' , exportData )
103103
104104 console . log ( 'Beginning export process...' )
105105
106106 //--------------------------------------------
107- // ANCHOR Settings
107+ // ANCHOR Settings and Export Options
108108 //--------------------------------------------
109+ const { ajSettings, projectSettings, exporterSettings, renderedAnimations, rig } =
110+ exportData
109111 const NAMESPACE = projectSettings . project_namespace . value
110112 const RIG_ITEM = projectSettings . rig_item . value
111113 const EXPORT_FOLDER = PathModule . parse ( exporterSettings . datapack_mcmeta . value ) . dir
@@ -1070,8 +1072,8 @@ export function loadExporter() {
10701072 } ) ,
10711073 outdated_rig_warning : new API . Settings . CheckboxSetting ( {
10721074 id : 'animated_java:datapack_exporter/outdated_rig_warning' ,
1073- displayName : TRANSLATIONS . outdated_rig_warning . name ,
1074- description : TRANSLATIONS . outdated_rig_warning . description ,
1075+ displayName : TRANSLATIONS . enable_outdated_rig_warning . name ,
1076+ description : TRANSLATIONS . enable_outdated_rig_warning . description ,
10751077 defaultValue : true ,
10761078 } ) ,
10771079 include_convenience_functions : new API . Settings . CheckboxSetting ( {
@@ -1080,6 +1082,12 @@ export function loadExporter() {
10801082 description : TRANSLATIONS . include_convenience_functions . description ,
10811083 defaultValue : true ,
10821084 } ) ,
1085+ // enable_single_rig_optimizations: new API.Settings.CheckboxSetting({
1086+ // id: 'animated_java:datapack_exporter/enable_single_rig_optimizations',
1087+ // displayName: TRANSLATIONS.enable_single_rig_optimizations.name,
1088+ // description: TRANSLATIONS.enable_single_rig_optimizations.description,
1089+ // defaultValue: false,
1090+ // }),
10831091 root_entity_nbt : new API . Settings . CodeboxSetting (
10841092 {
10851093 id : 'animated_java:datapack_exporter/root_entity_nbt' ,
@@ -1115,6 +1123,10 @@ export function loadExporter() {
11151123 type : 'setting' ,
11161124 settingId : 'animated_java:datapack_exporter/include_convenience_functions' ,
11171125 } ,
1126+ // {
1127+ // type: 'setting',
1128+ // settingId: 'animated_java:datapack_exporter/enable_single_rig_optimizations',
1129+ // },
11181130 {
11191131 type : 'setting' ,
11201132 settingId : 'animated_java:datapack_exporter/root_entity_nbt' ,
0 commit comments