@pinkaphant/kolmo 0.2.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +36 -36
- package/bin/kolmo.mjs +12 -6
- package/dist/engine/causewayBridge.d.ts +14 -0
- package/dist/engine/causewayBridge.js +166 -0
- package/dist/engine/causewayBridge.js.map +1 -0
- package/dist/engine/index.d.ts +6 -4
- package/dist/engine/index.js +19 -12
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/islandSettlementMesh.d.ts +26 -0
- package/dist/engine/islandSettlementMesh.js +166 -0
- package/dist/engine/islandSettlementMesh.js.map +1 -0
- package/dist/engine/kolmoActions.d.ts +23 -0
- package/dist/engine/kolmoActions.js +164 -0
- package/dist/engine/kolmoActions.js.map +1 -0
- package/dist/engine/kolmoActor.js +242 -165
- package/dist/engine/kolmoActor.js.map +1 -0
- package/dist/engine/kolmoFloatingOrigin.d.ts +17 -0
- package/dist/engine/kolmoFloatingOrigin.js +98 -0
- package/dist/engine/kolmoFloatingOrigin.js.map +1 -0
- package/dist/engine/kolmoGame.d.ts +27 -0
- package/dist/engine/kolmoGame.js +80 -0
- package/dist/engine/kolmoGame.js.map +1 -0
- package/dist/engine/kolmoHud.d.ts +23 -0
- package/dist/engine/kolmoHud.js +195 -0
- package/dist/engine/kolmoHud.js.map +1 -0
- package/dist/engine/kolmoInput.d.ts +1 -1
- package/dist/engine/kolmoInput.js +57 -30
- package/dist/engine/kolmoInput.js.map +1 -0
- package/dist/engine/kolmoIsland.d.ts +5 -10
- package/dist/engine/kolmoIsland.js +182 -250
- package/dist/engine/kolmoIsland.js.map +1 -0
- package/dist/engine/kolmoLongDrive.d.ts +3 -4
- package/dist/engine/kolmoLongDrive.js +140 -205
- package/dist/engine/kolmoLongDrive.js.map +1 -0
- package/dist/engine/kolmoPilotMesh.d.ts +2 -0
- package/dist/engine/kolmoPilotMesh.js +64 -0
- package/dist/engine/kolmoPilotMesh.js.map +1 -0
- package/dist/engine/kolmoProcedural.d.ts +13 -0
- package/dist/engine/kolmoProcedural.js +101 -0
- package/dist/engine/kolmoProcedural.js.map +1 -0
- package/dist/engine/kolmoRigs.d.ts +1 -1
- package/dist/engine/kolmoRigs.js +88 -47
- package/dist/engine/kolmoRigs.js.map +1 -0
- package/dist/engine/kolmoStore.d.ts +3 -100
- package/dist/engine/kolmoSurface.d.ts +2 -2
- package/dist/engine/kolmoSurface.js +150 -134
- package/dist/engine/kolmoSurface.js.map +1 -0
- package/dist/engine/kolmoTraits.d.ts +128 -0
- package/dist/engine/kolmoTraits.js +140 -0
- package/dist/engine/kolmoTraits.js.map +1 -0
- package/dist/engine/kolmoVehicle.d.ts +3 -33
- package/dist/engine/kolmoVehicle.js +66 -240
- package/dist/engine/kolmoVehicle.js.map +1 -0
- package/dist/engine/kolmoVehicleConfig.d.ts +54 -0
- package/dist/engine/kolmoVehicleConfig.js +80 -0
- package/dist/engine/kolmoVehicleConfig.js.map +1 -0
- package/dist/engine/kolmoVehicleDriver.d.ts +4 -1
- package/dist/engine/kolmoVehicleDriver.js +116 -22
- package/dist/engine/kolmoVehicleDriver.js.map +1 -0
- package/dist/engine/kolmoVehicleInner.d.ts +7 -0
- package/dist/engine/kolmoVehicleInner.js +261 -0
- package/dist/engine/kolmoVehicleInner.js.map +1 -0
- package/dist/engine/kolmoWorld.d.ts +6 -4
- package/dist/engine/kolmoWorld.js +134 -116
- package/dist/engine/kolmoWorld.js.map +1 -0
- package/dist/engine/longDriveKit.d.ts +5 -12
- package/dist/engine/longDriveKit.js +121 -233
- package/dist/engine/longDriveKit.js.map +1 -0
- package/dist/engine/longDriveRoadside.d.ts +16 -0
- package/dist/engine/longDriveRoadside.js +171 -0
- package/dist/engine/longDriveRoadside.js.map +1 -0
- package/dist/engine/macroCellBuilder.d.ts +34 -0
- package/dist/engine/macroCellBuilder.js +145 -0
- package/dist/engine/macroCellBuilder.js.map +1 -0
- package/dist/engine/mainlandMacroCell.d.ts +2 -2
- package/dist/engine/mainlandMacroCell.js +77 -165
- package/dist/engine/mainlandMacroCell.js.map +1 -0
- package/dist/engine/shiftedFixedBody.d.ts +1 -1
- package/dist/engine/shiftedFixedBody.js +55 -28
- package/dist/engine/shiftedFixedBody.js.map +1 -0
- package/dist/importer/ChopShopPanel.d.ts +9 -1
- package/dist/importer/ChopShopPanel.js +303 -359
- package/dist/importer/ChopShopPanel.js.map +1 -0
- package/dist/importer/DomainWorkshopPanel.d.ts +2 -1
- package/dist/importer/DomainWorkshopPanel.js +172 -242
- package/dist/importer/DomainWorkshopPanel.js.map +1 -0
- package/dist/importer/GateHudBar.d.ts +8 -0
- package/dist/importer/GateHudBar.js +290 -279
- package/dist/importer/GateHudBar.js.map +1 -0
- package/dist/importer/GlbImportGate.d.ts +2 -1
- package/dist/importer/GlbImportGate.js +252 -225
- package/dist/importer/GlbImportGate.js.map +1 -0
- package/dist/importer/ImperativeVehicleRig.d.ts +2 -2
- package/dist/importer/ImperativeVehicleRig.js +223 -284
- package/dist/importer/ImperativeVehicleRig.js.map +1 -0
- package/dist/importer/LiveDrivePads.d.ts +20 -0
- package/dist/importer/LiveDrivePads.js +169 -0
- package/dist/importer/LiveDrivePads.js.map +1 -0
- package/dist/importer/PaperShellDebrisRig.d.ts +25 -0
- package/dist/importer/PaperShellDebrisRig.js +143 -0
- package/dist/importer/PaperShellDebrisRig.js.map +1 -0
- package/dist/importer/R2VaultDrawer.d.ts +12 -0
- package/dist/importer/R2VaultDrawer.js +90 -0
- package/dist/importer/R2VaultDrawer.js.map +1 -0
- package/dist/importer/Step1CalibrationPlinth.d.ts +23 -5
- package/dist/importer/Step1CalibrationPlinth.js +180 -251
- package/dist/importer/Step1CalibrationPlinth.js.map +1 -0
- package/dist/importer/Step1ExplodedIslands.d.ts +31 -0
- package/dist/importer/Step1ExplodedIslands.js +144 -0
- package/dist/importer/Step1ExplodedIslands.js.map +1 -0
- package/dist/importer/Step2UniversalPad.d.ts +7 -7
- package/dist/importer/Step2UniversalPad.js +49 -170
- package/dist/importer/Step2UniversalPad.js.map +1 -0
- package/dist/importer/VfxEmitterPool.js +59 -86
- package/dist/importer/VfxEmitterPool.js.map +1 -0
- package/dist/importer/WheelRingHandles3D.d.ts +11 -0
- package/dist/importer/WheelRingHandles3D.js +318 -0
- package/dist/importer/WheelRingHandles3D.js.map +1 -0
- package/dist/importer/archLinerGeom.d.ts +2 -0
- package/dist/importer/archLinerGeom.js +51 -0
- package/dist/importer/archLinerGeom.js.map +1 -0
- package/dist/importer/{vehiclePanelAnim.d.ts → chopHingeHelpers.d.ts} +0 -10
- package/dist/importer/chopHingeHelpers.js +193 -0
- package/dist/importer/chopHingeHelpers.js.map +1 -0
- package/dist/importer/chopShopActions.d.ts +20 -26
- package/dist/importer/chopShopActions.js +135 -210
- package/dist/importer/chopShopActions.js.map +1 -0
- package/dist/importer/chopShopHandlers.d.ts +26 -0
- package/dist/importer/chopShopHandlers.js +276 -0
- package/dist/importer/chopShopHandlers.js.map +1 -0
- package/dist/importer/chopShopIoActions.d.ts +15 -0
- package/dist/importer/chopShopIoActions.js +137 -0
- package/dist/importer/chopShopIoActions.js.map +1 -0
- package/dist/importer/chopShopMcpAction.d.ts +18 -0
- package/dist/importer/chopShopMcpAction.js +58 -0
- package/dist/importer/chopShopMcpAction.js.map +1 -0
- package/dist/importer/cylinderBooleanSlice.d.ts +14 -0
- package/dist/importer/cylinderBooleanSlice.js +110 -0
- package/dist/importer/cylinderBooleanSlice.js.map +1 -0
- package/dist/importer/cylinderSliceMath.d.ts +14 -0
- package/dist/importer/cylinderSliceMath.js +251 -0
- package/dist/importer/cylinderSliceMath.js.map +1 -0
- package/dist/importer/fusedWheelDetect.d.ts +4 -0
- package/dist/importer/fusedWheelDetect.js +175 -0
- package/dist/importer/fusedWheelDetect.js.map +1 -0
- package/dist/importer/fusedWheelFit.d.ts +13 -0
- package/dist/importer/fusedWheelFit.js +138 -0
- package/dist/importer/fusedWheelFit.js.map +1 -0
- package/dist/importer/gateStore.d.ts +1 -1
- package/dist/importer/gateStore.js +36 -27
- package/dist/importer/gateStore.js.map +1 -0
- package/dist/importer/glbNormalizer.js +118 -79
- package/dist/importer/glbNormalizer.js.map +1 -0
- package/dist/importer/importerWebMcp.d.ts +4 -3
- package/dist/importer/importerWebMcp.js +41 -336
- package/dist/importer/importerWebMcp.js.map +1 -0
- package/dist/importer/importerWebMcpTools.d.ts +2 -0
- package/dist/importer/importerWebMcpTools.js +340 -0
- package/dist/importer/importerWebMcpTools.js.map +1 -0
- package/dist/importer/index.d.ts +4 -0
- package/dist/importer/index.js +32 -22
- package/dist/importer/index.js.map +1 -0
- package/dist/importer/khrCarPlanHelpers.d.ts +28 -0
- package/dist/importer/khrCarPlanHelpers.js +221 -0
- package/dist/importer/khrCarPlanHelpers.js.map +1 -0
- package/dist/importer/khrCarPlanner.d.ts +7 -0
- package/dist/importer/khrCarPlanner.js +279 -0
- package/dist/importer/khrCarPlanner.js.map +1 -0
- package/dist/importer/khrCompiler.d.ts +4 -22
- package/dist/importer/khrCompiler.js +56 -424
- package/dist/importer/khrCompiler.js.map +1 -0
- package/dist/importer/khrCraftPropCompiler.d.ts +40 -0
- package/dist/importer/khrCraftPropCompiler.js +250 -0
- package/dist/importer/khrCraftPropCompiler.js.map +1 -0
- package/dist/importer/launcherBake.js +76 -35
- package/dist/importer/launcherBake.js.map +1 -0
- package/dist/importer/meshIslands.d.ts +4 -46
- package/dist/importer/meshIslands.js +84 -283
- package/dist/importer/meshIslands.js.map +1 -0
- package/dist/importer/meshSliceBuffers.d.ts +15 -0
- package/dist/importer/meshSliceBuffers.js +159 -0
- package/dist/importer/meshSliceBuffers.js.map +1 -0
- package/dist/importer/polygonEarClipYZ.d.ts +3 -0
- package/dist/importer/polygonEarClipYZ.js +67 -0
- package/dist/importer/polygonEarClipYZ.js.map +1 -0
- package/dist/importer/sceneSiNormalize.d.ts +19 -0
- package/dist/importer/sceneSiNormalize.js +138 -0
- package/dist/importer/sceneSiNormalize.js.map +1 -0
- package/dist/importer/starterScene.d.ts +3 -0
- package/dist/importer/starterScene.js +76 -0
- package/dist/importer/starterScene.js.map +1 -0
- package/dist/importer/surfaceCutter.d.ts +4 -15
- package/dist/importer/surfaceCutter.js +69 -240
- package/dist/importer/surfaceCutter.js.map +1 -0
- package/dist/importer/surfaceGeodesic.d.ts +7 -0
- package/dist/importer/surfaceGeodesic.js +130 -0
- package/dist/importer/surfaceGeodesic.js.map +1 -0
- package/dist/importer/surfaceLoopRefine.d.ts +6 -0
- package/dist/importer/surfaceLoopRefine.js +171 -0
- package/dist/importer/surfaceLoopRefine.js.map +1 -0
- package/dist/importer/surfacePeel.d.ts +11 -0
- package/dist/importer/surfacePeel.js +119 -0
- package/dist/importer/surfacePeel.js.map +1 -0
- package/dist/importer/surfaceTopology.d.ts +2 -6
- package/dist/importer/surfaceTopology.js +93 -133
- package/dist/importer/surfaceTopology.js.map +1 -0
- package/dist/importer/universalGateBake.d.ts +7 -3
- package/dist/importer/universalGateBake.js +104 -106
- package/dist/importer/universalGateBake.js.map +1 -0
- package/dist/importer/usdPhysicsSpecs.d.ts +3 -0
- package/dist/importer/usdPhysicsSpecs.js +245 -0
- package/dist/importer/usdPhysicsSpecs.js.map +1 -0
- package/dist/importer/usdTextParse.d.ts +12 -0
- package/dist/importer/usdTextParse.js +118 -0
- package/dist/importer/usdTextParse.js.map +1 -0
- package/dist/importer/usdToGlb.d.ts +3 -2
- package/dist/importer/usdToGlb.js +80 -280
- package/dist/importer/usdToGlb.js.map +1 -0
- package/dist/importer/useChopShopController.d.ts +50 -47
- package/dist/importer/useChopShopController.js +156 -338
- package/dist/importer/useChopShopController.js.map +1 -0
- package/dist/importer/useChopShopState.d.ts +103 -0
- package/dist/importer/useChopShopState.js +319 -0
- package/dist/importer/useChopShopState.js.map +1 -0
- package/dist/importer/useWasdKeyRef.d.ts +9 -0
- package/dist/importer/useWasdKeyRef.js +35 -0
- package/dist/importer/useWasdKeyRef.js.map +1 -0
- package/dist/importer/vehiclePartSplit.d.ts +33 -0
- package/dist/importer/vehiclePartSplit.js +178 -0
- package/dist/importer/vehiclePartSplit.js.map +1 -0
- package/dist/importer/wheelAxlePairing.js +106 -70
- package/dist/importer/wheelAxlePairing.js.map +1 -0
- package/dist/importer/wheelCutterHelpers.d.ts +42 -0
- package/dist/importer/wheelCutterHelpers.js +178 -0
- package/dist/importer/wheelCutterHelpers.js.map +1 -0
- package/dist/importer/wheelRingHandleMath.d.ts +20 -0
- package/dist/importer/wheelRingHandleMath.js +66 -0
- package/dist/importer/wheelRingHandleMath.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +90 -66
- package/dist/index.js.map +1 -0
- package/dist/junk/DestructibleTarget.d.ts +3 -3
- package/dist/junk/DestructibleTarget.js +177 -114
- package/dist/junk/DestructibleTarget.js.map +1 -0
- package/dist/junk/KolmoJunk.js +55 -44
- package/dist/junk/KolmoJunk.js.map +1 -0
- package/dist/junk/ShardPieces.d.ts +2 -1
- package/dist/junk/ShardPieces.js +80 -61
- package/dist/junk/ShardPieces.js.map +1 -0
- package/dist/junk/TargetDecals.d.ts +6 -15
- package/dist/junk/TargetDecals.js +66 -40
- package/dist/junk/TargetDecals.js.map +1 -0
- package/dist/junk/bvhShatter.d.ts +2 -6
- package/dist/junk/bvhShatter.js +89 -43
- package/dist/junk/bvhShatter.js.map +1 -0
- package/dist/junk/bvhTriCollector.d.ts +2 -6
- package/dist/junk/bvhTriCollector.js +111 -62
- package/dist/junk/bvhTriCollector.js.map +1 -0
- package/dist/junk/index.d.ts +2 -2
- package/dist/junk/index.js +11 -11
- package/dist/junk/index.js.map +1 -0
- package/dist/junk/junkGeometry.d.ts +5 -26
- package/dist/junk/junkGeometry.js +61 -43
- package/dist/junk/junkGeometry.js.map +1 -0
- package/dist/junk/junkImportSanitize.d.ts +4 -5
- package/dist/junk/junkImportSanitize.js +57 -37
- package/dist/junk/junkImportSanitize.js.map +1 -0
- package/dist/junk/junkImporter.d.ts +2 -13
- package/dist/junk/junkImporter.js +105 -76
- package/dist/junk/junkImporter.js.map +1 -0
- package/dist/junk/junkLabelCanvas.d.ts +1 -6
- package/dist/junk/junkLabelCanvas.js +147 -29
- package/dist/junk/junkLabelCanvas.js.map +1 -0
- package/dist/junk/junkLabels.d.ts +4 -26
- package/dist/junk/junkLabels.js +42 -28
- package/dist/junk/junkLabels.js.map +1 -0
- package/dist/junk/targetHelpers.d.ts +3 -4
- package/dist/junk/targetHelpers.js +121 -67
- package/dist/junk/targetHelpers.js.map +1 -0
- package/dist/junk/targetHitLogic.d.ts +8 -8
- package/dist/junk/targetHitLogic.js +131 -95
- package/dist/junk/targetHitLogic.js.map +1 -0
- package/dist/junk/useTargetAssets.d.ts +9 -14
- package/dist/junk/useTargetAssets.js +113 -85
- package/dist/junk/useTargetAssets.js.map +1 -0
- package/dist/physics/index.d.ts +1 -1
- package/dist/physics/index.js +79 -58
- package/dist/physics/index.js.map +1 -0
- package/dist/schema/kolmoSchema.d.ts +3 -64
- package/dist/schema/kolmoSchema.js +75 -149
- package/dist/schema/kolmoSchema.js.map +1 -0
- package/dist/schema/kolmoStamp.d.ts +6 -0
- package/dist/schema/kolmoStamp.js +71 -0
- package/dist/schema/kolmoStamp.js.map +1 -0
- package/dist/schema/kolmoTypes.d.ts +63 -0
- package/dist/schema/kolmoTypes.js +66 -0
- package/dist/schema/kolmoTypes.js.map +1 -0
- package/dist/shaders/celestialBackdrop.d.ts +2 -10
- package/dist/shaders/celestialBackdrop.js +128 -291
- package/dist/shaders/celestialBackdrop.js.map +1 -0
- package/dist/shaders/emitterShaders.d.ts +9 -0
- package/dist/shaders/emitterShaders.js +114 -0
- package/dist/shaders/emitterShaders.js.map +1 -0
- package/dist/shaders/index.d.ts +1 -1
- package/dist/shaders/index.js +12 -9
- package/dist/shaders/index.js.map +1 -0
- package/dist/shaders/plumeAndSparkle.d.ts +2 -4
- package/dist/shaders/plumeAndSparkle.js +152 -191
- package/dist/shaders/plumeAndSparkle.js.map +1 -0
- package/dist/shaders/ps2GlslShared.js +29 -2
- package/dist/shaders/ps2GlslShared.js.map +1 -0
- package/dist/shaders/ps2MaterialsTSL.js +132 -51
- package/dist/shaders/ps2MaterialsTSL.js.map +1 -0
- package/dist/shaders/ps2MaterialsWebGL.js +45 -28
- package/dist/shaders/ps2MaterialsWebGL.js.map +1 -0
- package/dist/shaders/ps2RoadWebGL.js +69 -32
- package/dist/shaders/ps2RoadWebGL.js.map +1 -0
- package/dist/shaders/ps2TerrainWebGL.js +107 -30
- package/dist/shaders/ps2TerrainWebGL.js.map +1 -0
- package/dist/shaders/ps2Textures.d.ts +1 -1
- package/dist/shaders/ps2Textures.js +116 -41
- package/dist/shaders/ps2Textures.js.map +1 -0
- package/dist/shaders/retroPalettes.d.ts +1 -1
- package/dist/shaders/retroPalettes.js +90 -57
- package/dist/shaders/retroPalettes.js.map +1 -0
- package/dist/shaders/retroShader.d.ts +2 -86
- package/dist/shaders/retroShader.js +65 -196
- package/dist/shaders/retroShader.js.map +1 -0
- package/dist/shaders/retroUniforms.d.ts +60 -0
- package/dist/shaders/retroUniforms.js +215 -0
- package/dist/shaders/retroUniforms.js.map +1 -0
- package/dist/shaders/skyboxShaders.d.ts +16 -0
- package/dist/shaders/skyboxShaders.js +266 -0
- package/dist/shaders/skyboxShaders.js.map +1 -0
- package/dist/shaders/tsl.d.ts +1 -1
- package/dist/shaders/tsl.js.map +1 -0
- package/dist/vite/index.js +39 -23
- package/dist/vite/index.js.map +1 -0
- package/dist/world/frontage.js +25 -21
- package/dist/world/frontage.js.map +1 -0
- package/dist/world/index.d.ts +4 -4
- package/dist/world/index.js +12 -11
- package/dist/world/index.js.map +1 -0
- package/dist/world/infiniteWorld2D.d.ts +0 -5
- package/dist/world/infiniteWorld2D.js +175 -200
- package/dist/world/infiniteWorld2D.js.map +1 -0
- package/dist/world/island.js +81 -166
- package/dist/world/island.js.map +1 -0
- package/dist/world/islandPathing.d.ts +6 -0
- package/dist/world/islandPathing.js +166 -0
- package/dist/world/islandPathing.js.map +1 -0
- package/dist/world/macroCellSchema.js +15 -8
- package/dist/world/macroCellSchema.js.map +1 -0
- package/dist/world/macroKnightAStar.js +140 -71
- package/dist/world/macroKnightAStar.js.map +1 -0
- package/dist/world/macroSettlementZones.d.ts +9 -0
- package/dist/world/macroSettlementZones.js +108 -0
- package/dist/world/macroSettlementZones.js.map +1 -0
- package/dist/world/random.js +50 -24
- package/dist/world/random.js.map +1 -0
- package/dist/world/road.js +152 -90
- package/dist/world/road.js.map +1 -0
- package/dist/world/roadRibbon.d.ts +4 -19
- package/dist/world/roadRibbon.js +129 -124
- package/dist/world/roadRibbon.js.map +1 -0
- package/dist/world/terrain.d.ts +1 -1
- package/dist/world/terrain.js +111 -65
- package/dist/world/terrain.js.map +1 -0
- package/dist/world/terrainGeometry.d.ts +14 -0
- package/dist/world/terrainGeometry.js +76 -0
- package/dist/world/terrainGeometry.js.map +1 -0
- package/dist/world/worldTypes.d.ts +3 -3
- package/dist/world/worldTypes.js +133 -67
- package/dist/world/worldTypes.js.map +1 -0
- package/docs/api-reference.md +187 -0
- package/package.json +58 -32
- package/dist/engine/kolmoStore.js +0 -211
- package/dist/importer/ImporterPlinthUikitTags.d.ts +0 -19
- package/dist/importer/ImporterPlinthUikitTags.js +0 -112
- package/dist/importer/vehiclePanelAnim.js +0 -214
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type GateDomain, type VehicleSubArchetype } from "./gateStore.js";
|
|
3
|
+
export declare function resolveVaultCarSelection(key: string): {
|
|
4
|
+
url: string;
|
|
5
|
+
label: string;
|
|
6
|
+
} | null;
|
|
3
7
|
export type StampToolId = "none" | "plume" | "sparkle" | "brake_flare" | "headlight" | "seat" | "optic" | "muzzle";
|
|
4
8
|
export interface GateHudBarProps {
|
|
5
9
|
readonly hasCustomFile: boolean;
|
|
@@ -12,6 +16,7 @@ export interface GateHudBarProps {
|
|
|
12
16
|
readonly patchCount: number;
|
|
13
17
|
readonly onChooseFile: () => void;
|
|
14
18
|
readonly onLoadStarterCar: (url: string, label: string) => void;
|
|
19
|
+
readonly onLoadProceduralFile?: (file: File) => void;
|
|
15
20
|
readonly onSelectDomain: (d: GateDomain) => void;
|
|
16
21
|
readonly onSelectVehicleSub: (sub: VehicleSubArchetype) => void;
|
|
17
22
|
readonly onBumpTurn: (axis: 0 | 1 | 2) => void;
|
|
@@ -25,5 +30,8 @@ export interface GateHudBarProps {
|
|
|
25
30
|
readonly onSwingPanelRole: (prefix: string) => void;
|
|
26
31
|
readonly onDownloadGlb: () => void;
|
|
27
32
|
readonly onSpawnWorld?: () => void;
|
|
33
|
+
readonly headerAction?: React.ReactNode;
|
|
34
|
+
readonly inline?: boolean;
|
|
35
|
+
readonly children?: React.ReactNode;
|
|
28
36
|
}
|
|
29
37
|
export declare function GateHudBar(p: GateHudBarProps): React.JSX.Element;
|
|
@@ -1,312 +1,323 @@
|
|
|
1
|
-
import { gateTelemetry
|
|
2
|
-
import { useEffect
|
|
3
|
-
import { Fragment
|
|
1
|
+
import { gateTelemetry, isGateStep1Unlocked, useGateStore } from "./gateStore.js";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { VAULT_CARS } from "@khr3/assets";
|
|
4
5
|
// src/importer/GateHudBar.tsx
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return
|
|
6
|
+
function resolveVaultCarSelection(key) {
|
|
7
|
+
if (!key) return null;
|
|
8
|
+
return {
|
|
9
|
+
url: key,
|
|
10
|
+
label: Object.entries(VAULT_CARS).find(([, k]) => k === key)?.[0] ?? "vault_car"
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var OVERLAY_COL = {
|
|
14
|
+
position: "absolute",
|
|
15
|
+
inset: 0,
|
|
16
|
+
zIndex: 24,
|
|
17
|
+
pointerEvents: "none",
|
|
18
|
+
display: "flex",
|
|
19
|
+
flexDirection: "column",
|
|
20
|
+
justifyContent: "space-between",
|
|
21
|
+
gap: 10,
|
|
22
|
+
padding: 12,
|
|
23
|
+
boxSizing: "border-box"
|
|
24
|
+
};
|
|
25
|
+
var MIDDLE_ROW = {
|
|
26
|
+
flex: 1,
|
|
27
|
+
minHeight: 0,
|
|
28
|
+
display: "flex",
|
|
29
|
+
justifyContent: "space-between",
|
|
30
|
+
alignItems: "flex-start",
|
|
31
|
+
gap: 12,
|
|
32
|
+
pointerEvents: "none"
|
|
33
|
+
};
|
|
34
|
+
var BASE_PILL = {
|
|
35
|
+
position: "absolute",
|
|
36
|
+
left: 12,
|
|
37
|
+
zIndex: 24,
|
|
38
|
+
maxWidth: "calc(100% - 24px)",
|
|
39
|
+
display: "flex",
|
|
40
|
+
flexWrap: "wrap",
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
gap: 6,
|
|
43
|
+
borderRadius: 10,
|
|
44
|
+
backdropFilter: "blur(10px)",
|
|
45
|
+
fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif",
|
|
46
|
+
boxSizing: "border-box"
|
|
47
|
+
};
|
|
48
|
+
var PILL_BAR = {
|
|
49
|
+
...BASE_PILL,
|
|
50
|
+
top: 12,
|
|
51
|
+
padding: "7px 10px",
|
|
52
|
+
background: "rgba(10, 13, 18, 0.84)",
|
|
53
|
+
border: "1px solid rgba(255,255,255,0.1)"
|
|
54
|
+
};
|
|
55
|
+
var BOTTOM_PILL = {
|
|
56
|
+
...BASE_PILL,
|
|
57
|
+
bottom: 12,
|
|
58
|
+
padding: "6px 10px",
|
|
59
|
+
background: "rgba(10, 13, 18, 0.82)",
|
|
60
|
+
border: "1px solid rgba(255,255,255,0.09)"
|
|
61
|
+
};
|
|
62
|
+
var SELECT_STYLE = {
|
|
63
|
+
padding: "5px 8px",
|
|
64
|
+
borderRadius: 6,
|
|
65
|
+
background: "rgba(255,255,255,0.05)",
|
|
66
|
+
border: "1px solid rgba(255,255,255,0.14)",
|
|
67
|
+
color: "#E2E8F0",
|
|
68
|
+
fontSize: 12
|
|
69
|
+
};
|
|
70
|
+
function HudBtn({ label, active = false, disabled = false, accent = "#38BDF8", onClick }) {
|
|
71
|
+
return /* @__PURE__ */ jsx("button", {
|
|
8
72
|
type: "button",
|
|
9
|
-
disabled
|
|
10
|
-
onClick
|
|
73
|
+
disabled,
|
|
74
|
+
onClick,
|
|
11
75
|
style: {
|
|
12
|
-
padding: "
|
|
13
|
-
borderRadius:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
cursor: n ? "not-allowed" : "pointer",
|
|
76
|
+
padding: "5px 10px",
|
|
77
|
+
borderRadius: 6,
|
|
78
|
+
fontSize: 12,
|
|
79
|
+
fontWeight: active ? 600 : 500,
|
|
80
|
+
border: `1px solid ${disabled ? "rgba(255,255,255,0.07)" : active ? accent : "rgba(255,255,255,0.14)"}`,
|
|
81
|
+
background: active ? accent : "rgba(255,255,255,0.05)",
|
|
82
|
+
color: disabled ? "#64748B" : active ? "#07090C" : "#E6EDF3",
|
|
83
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
21
84
|
whiteSpace: "nowrap"
|
|
22
85
|
},
|
|
23
|
-
children:
|
|
86
|
+
children: label
|
|
24
87
|
});
|
|
25
88
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
r(() => {
|
|
41
|
-
let t = 0, n = "", r = () => {
|
|
42
|
-
let i = e.massKg.toFixed(0), a = e.com.map((e) => e.toFixed(2)).join(","), o = e.speedKmh.toFixed(0), s = e.rpm.toFixed(0), l = m.domain === "vehicle" ? `MASS=${i}KG COM=[${a}] HINGED=${c.choppedCount} ${s} RPM ${o} KM/H` : `MASS=${i}KG COM=[${a}] PATCHES=${c.patchCount} ${o} KM/H`;
|
|
43
|
-
l !== n && v.current && (v.current.textContent = l, n = l), t = requestAnimationFrame(r);
|
|
89
|
+
function GateHudBar(p) {
|
|
90
|
+
const st = useGateStore();
|
|
91
|
+
const unlocked = isGateStep1Unlocked(st.calibration, st.domain, st.vehicleArchetype, st.usePaperShellProxy);
|
|
92
|
+
const teleRef = useRef(null);
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
let raf = 0;
|
|
95
|
+
let last = "";
|
|
96
|
+
const tick = () => {
|
|
97
|
+
const line = st.step === 2 ? `${gateTelemetry.speedKmh.toFixed(0)} km/h · ${gateTelemetry.rpm.toFixed(0)} rpm` : "";
|
|
98
|
+
if (line !== last && teleRef.current) {
|
|
99
|
+
teleRef.current.textContent = line;
|
|
100
|
+
last = line;
|
|
101
|
+
}
|
|
102
|
+
raf = requestAnimationFrame(tick);
|
|
44
103
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
104
|
+
raf = requestAnimationFrame(tick);
|
|
105
|
+
return () => cancelAnimationFrame(raf);
|
|
106
|
+
}, [st.step]);
|
|
107
|
+
const cal = st.calibration;
|
|
108
|
+
const summaryText = st.domain === "c12" ? `${cal.c12Ticks.join("×")} ticks` : `${cal.aabbSize[2].toFixed(2)}m · WB ${cal.wheelbase.toFixed(2)}m`;
|
|
109
|
+
const flexMode = Boolean(p.inline || p.children !== void 0);
|
|
110
|
+
const topStyle = flexMode ? {
|
|
111
|
+
...PILL_BAR,
|
|
112
|
+
position: "relative",
|
|
113
|
+
top: "auto",
|
|
114
|
+
left: "auto",
|
|
115
|
+
alignSelf: "flex-start",
|
|
116
|
+
maxWidth: "100%",
|
|
117
|
+
pointerEvents: "auto"
|
|
118
|
+
} : PILL_BAR;
|
|
119
|
+
const bottomStyle = flexMode ? {
|
|
120
|
+
...BOTTOM_PILL,
|
|
121
|
+
position: "relative",
|
|
122
|
+
bottom: "auto",
|
|
123
|
+
left: "auto",
|
|
124
|
+
alignSelf: "flex-start",
|
|
125
|
+
maxWidth: "100%",
|
|
126
|
+
pointerEvents: "auto"
|
|
127
|
+
} : BOTTOM_PILL;
|
|
128
|
+
const bars = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
129
|
+
/* @__PURE__ */ jsxs("div", {
|
|
130
|
+
style: topStyle,
|
|
61
131
|
children: [
|
|
62
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ jsx("span", {
|
|
133
|
+
title: p.assetName,
|
|
63
134
|
style: {
|
|
64
|
-
fontSize:
|
|
65
|
-
|
|
66
|
-
|
|
135
|
+
fontSize: 12.5,
|
|
136
|
+
fontWeight: 600,
|
|
137
|
+
color: "#F8FAFC",
|
|
138
|
+
padding: "0 4px",
|
|
139
|
+
maxWidth: 260,
|
|
140
|
+
overflow: "hidden",
|
|
141
|
+
textOverflow: "ellipsis",
|
|
142
|
+
whiteSpace: "nowrap"
|
|
67
143
|
},
|
|
68
|
-
children:
|
|
144
|
+
children: p.assetName
|
|
69
145
|
}),
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
"person",
|
|
75
|
-
"prop",
|
|
76
|
-
"junk"
|
|
77
|
-
].map((e) => /* @__PURE__ */ o(h, {
|
|
78
|
-
label: `[ ${e.toUpperCase()} ]`,
|
|
79
|
-
active: m.domain === e,
|
|
80
|
-
onClick: () => c.onSelectDomain(e)
|
|
81
|
-
}, e)),
|
|
82
|
-
/* @__PURE__ */ o(h, {
|
|
83
|
-
label: c.hasCustomFile ? "[ REPLACE .GLB · .USD… ]" : "[ DROP / OPEN .GLB · .USD ]",
|
|
84
|
-
accent: d,
|
|
85
|
-
onClick: c.onChooseFile
|
|
146
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
147
|
+
label: p.hasCustomFile ? "Open GLB / USD" : "Drop / Open GLB",
|
|
148
|
+
accent: "#00E5FF",
|
|
149
|
+
onClick: p.onChooseFile
|
|
86
150
|
}),
|
|
87
|
-
|
|
88
|
-
label: "
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
accent: p,
|
|
96
|
-
onClick: () => c.onLoadStarterCar("/models/Hatchback-segmented.glb", "hatchback_86")
|
|
97
|
-
})] }),
|
|
98
|
-
c.usdInfo && /* @__PURE__ */ o("span", {
|
|
99
|
-
style: {
|
|
100
|
-
fontSize: 10,
|
|
101
|
-
color: p
|
|
151
|
+
st.domain === "vehicle" && /* @__PURE__ */ jsxs("select", {
|
|
152
|
+
"aria-label": "Catalog Vehicle",
|
|
153
|
+
defaultValue: "",
|
|
154
|
+
onChange: (e) => {
|
|
155
|
+
const sel = resolveVaultCarSelection(e.target.value);
|
|
156
|
+
if (!sel) return;
|
|
157
|
+
p.onLoadStarterCar(sel.url, sel.label);
|
|
158
|
+
e.target.value = "";
|
|
102
159
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
},
|
|
113
|
-
children: [
|
|
114
|
-
/* @__PURE__ */ o(h, {
|
|
115
|
-
label: m.eraMode === "dreamcast-60" ? "[ ERA: DREAMCAST 60FPS ]" : "[ ERA: PSX 1/3 ]",
|
|
116
|
-
active: m.eraMode === "psx-1-3",
|
|
117
|
-
accent: d,
|
|
118
|
-
onClick: () => m.setField("eraMode", m.eraMode === "dreamcast-60" ? "psx-1-3" : "dreamcast-60")
|
|
119
|
-
}),
|
|
120
|
-
/* @__PURE__ */ o(h, {
|
|
121
|
-
label: "[ STEP 1: CHOP & CALIBRATE ]",
|
|
122
|
-
active: m.step === 1,
|
|
123
|
-
onClick: () => m.setField("step", 1)
|
|
160
|
+
style: SELECT_STYLE,
|
|
161
|
+
children: [/* @__PURE__ */ jsx("option", {
|
|
162
|
+
value: "",
|
|
163
|
+
children: "Vault Cars"
|
|
164
|
+
}), Object.entries(VAULT_CARS).map(([name, key]) => /* @__PURE__ */ jsx("option", {
|
|
165
|
+
value: key,
|
|
166
|
+
style: { background: "#0F172A" },
|
|
167
|
+
children: name
|
|
168
|
+
}, name))]
|
|
124
169
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
label: "
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
borderTop: `1px solid ${l}`
|
|
143
|
-
},
|
|
144
|
-
children: [m.step === 1 ? /* @__PURE__ */ s("div", {
|
|
145
|
-
style: {
|
|
146
|
-
display: "flex",
|
|
147
|
-
flexWrap: "wrap",
|
|
148
|
-
gap: 6,
|
|
149
|
-
alignItems: "center"
|
|
150
|
-
},
|
|
151
|
-
children: [
|
|
152
|
-
/* @__PURE__ */ o(h, {
|
|
153
|
-
label: "[ ROT X +90° ]",
|
|
154
|
-
onClick: () => c.onBumpTurn(0)
|
|
155
|
-
}),
|
|
156
|
-
/* @__PURE__ */ o(h, {
|
|
157
|
-
label: "[ ROT Y +90° ]",
|
|
158
|
-
onClick: () => c.onBumpTurn(1)
|
|
159
|
-
}),
|
|
160
|
-
/* @__PURE__ */ o(h, {
|
|
161
|
-
label: "[ ROT Z +90° ]",
|
|
162
|
-
onClick: () => c.onBumpTurn(2)
|
|
170
|
+
/* @__PURE__ */ jsx("select", {
|
|
171
|
+
"aria-label": "Asset Domain",
|
|
172
|
+
value: st.domain,
|
|
173
|
+
onChange: (e) => p.onSelectDomain(e.target.value),
|
|
174
|
+
style: SELECT_STYLE,
|
|
175
|
+
children: [
|
|
176
|
+
"vehicle",
|
|
177
|
+
"c12",
|
|
178
|
+
"launcher",
|
|
179
|
+
"person",
|
|
180
|
+
"prop",
|
|
181
|
+
"junk"
|
|
182
|
+
].map((d) => /* @__PURE__ */ jsx("option", {
|
|
183
|
+
value: d,
|
|
184
|
+
style: { background: "#0F172A" },
|
|
185
|
+
children: d
|
|
186
|
+
}, d))
|
|
163
187
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
label: "
|
|
166
|
-
|
|
188
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
189
|
+
label: "1 · Rig",
|
|
190
|
+
active: st.step === 1,
|
|
191
|
+
onClick: () => st.setField("step", 1)
|
|
167
192
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
label: "
|
|
170
|
-
|
|
193
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
194
|
+
label: "2 · Drive (WASD)",
|
|
195
|
+
active: st.step === 2,
|
|
196
|
+
disabled: !unlocked,
|
|
197
|
+
accent: "#FFB000",
|
|
198
|
+
onClick: () => st.setField("step", 2)
|
|
171
199
|
}),
|
|
172
|
-
|
|
173
|
-
label: "
|
|
174
|
-
|
|
175
|
-
|
|
200
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
201
|
+
label: "Export GLB",
|
|
202
|
+
disabled: p.busy,
|
|
203
|
+
accent: "#00E5FF",
|
|
204
|
+
onClick: p.onDownloadGlb
|
|
176
205
|
}),
|
|
177
|
-
|
|
178
|
-
["car", "starcraft"].map((e) => /* @__PURE__ */ o(h, {
|
|
179
|
-
label: e.toUpperCase(),
|
|
180
|
-
active: !m.usePaperShellProxy && m.vehicleArchetype === e,
|
|
181
|
-
onClick: () => c.onSelectVehicleSub(e)
|
|
182
|
-
}, e)),
|
|
183
|
-
!m.usePaperShellProxy && m.vehicleArchetype !== "starcraft" && /* @__PURE__ */ o(h, {
|
|
184
|
-
label: `[ AUTO-POP TIRES (${c.wheelCount}W) ]`,
|
|
185
|
-
onClick: c.onAutoPopWheels
|
|
186
|
-
}),
|
|
187
|
-
/* @__PURE__ */ o(h, {
|
|
188
|
-
label: "[ C0 CRASH PROXY ]",
|
|
189
|
-
active: m.usePaperShellProxy,
|
|
190
|
-
onClick: c.onWrapProxy
|
|
191
|
-
})
|
|
192
|
-
] }),
|
|
193
|
-
m.domain === "prop" && /* @__PURE__ */ o(h, {
|
|
194
|
-
label: m.staticProp ? "[ STATIC HULL ]" : "[ DYNAMIC HULL ]",
|
|
195
|
-
active: m.staticProp,
|
|
196
|
-
onClick: () => m.setField("staticProp", !m.staticProp)
|
|
197
|
-
}),
|
|
198
|
-
/* @__PURE__ */ o("span", {
|
|
199
|
-
style: {
|
|
200
|
-
fontSize: 10.5,
|
|
201
|
-
color: _ ? d : f
|
|
202
|
-
},
|
|
203
|
-
children: b
|
|
204
|
-
})
|
|
206
|
+
p.headerAction
|
|
205
207
|
]
|
|
206
|
-
})
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
}),
|
|
209
|
+
flexMode && /* @__PURE__ */ jsx("div", {
|
|
210
|
+
style: MIDDLE_ROW,
|
|
211
|
+
children: p.children
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ jsxs("div", {
|
|
214
|
+
style: bottomStyle,
|
|
213
215
|
children: [
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}),
|
|
219
|
-
m.domain === "vehicle" && /* @__PURE__ */ o(h, {
|
|
220
|
-
label: m.chaseCam ? "[ CAM: CHASE (WASD) ]" : "[ CAM: ORBIT ]",
|
|
221
|
-
active: m.chaseCam,
|
|
222
|
-
accent: p,
|
|
223
|
-
onClick: () => m.setField("chaseCam", !m.chaseCam)
|
|
224
|
-
}),
|
|
225
|
-
m.domain === "vehicle" && m.usePaperShellProxy ? /* @__PURE__ */ s(a, { children: [
|
|
226
|
-
/* @__PURE__ */ o(h, {
|
|
227
|
-
label: m.wrenchMode === "UNLATCH_200" ? "[ WRENCH: 200 N·S UNLATCH ]" : "[ WRENCH: 1800 N·S RIP OFF ]",
|
|
228
|
-
active: m.wrenchMode === "RIP_1800",
|
|
229
|
-
accent: f,
|
|
230
|
-
onClick: () => m.setField("wrenchMode", m.wrenchMode === "UNLATCH_200" ? "RIP_1800" : "UNLATCH_200")
|
|
216
|
+
st.step === 1 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
217
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
218
|
+
label: "X 90°",
|
|
219
|
+
onClick: () => p.onBumpTurn(0)
|
|
231
220
|
}),
|
|
232
|
-
|
|
233
|
-
"
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
label:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
|
|
244
|
-
"STIFF"
|
|
245
|
-
].map((e) => /* @__PURE__ */ o(h, {
|
|
246
|
-
label: e,
|
|
247
|
-
active: m.dampBucket === e,
|
|
248
|
-
accent: d,
|
|
249
|
-
onClick: () => m.setField("dampBucket", e)
|
|
250
|
-
}, e)),
|
|
251
|
-
/* @__PURE__ */ o(h, {
|
|
252
|
-
label: "[ RESET PANELS ]",
|
|
253
|
-
onClick: () => m.resetAllPanels()
|
|
221
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
222
|
+
label: "Y 90°",
|
|
223
|
+
onClick: () => p.onBumpTurn(1)
|
|
224
|
+
}),
|
|
225
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
226
|
+
label: "Z 90°",
|
|
227
|
+
onClick: () => p.onBumpTurn(2)
|
|
228
|
+
}),
|
|
229
|
+
st.domain === "c12" && /* @__PURE__ */ jsx(HudBtn, {
|
|
230
|
+
label: "Snap C12",
|
|
231
|
+
accent: "#10B981",
|
|
232
|
+
onClick: p.onSnapC12
|
|
254
233
|
})
|
|
255
|
-
] }) : /* @__PURE__ */
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
234
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
235
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
236
|
+
label: "Reset",
|
|
237
|
+
accent: "#FFB000",
|
|
238
|
+
onClick: () => st.triggerDrop()
|
|
239
|
+
}),
|
|
240
|
+
st.domain === "vehicle" && /* @__PURE__ */ jsx(HudBtn, {
|
|
241
|
+
label: st.chaseCam ? "Chase Cam" : "Orbit Cam",
|
|
242
|
+
active: st.chaseCam,
|
|
243
|
+
accent: "#10B981",
|
|
244
|
+
onClick: () => st.setField("chaseCam", !st.chaseCam)
|
|
245
|
+
}),
|
|
246
|
+
st.domain === "vehicle" && p.choppedCount > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
247
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
248
|
+
label: "Doors",
|
|
249
|
+
onClick: () => p.onSwingPanelRole("door")
|
|
261
250
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
label: "
|
|
264
|
-
|
|
265
|
-
onClick: () => c.onSwingPanelRole("hood")
|
|
251
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
252
|
+
label: "Hood",
|
|
253
|
+
onClick: () => p.onSwingPanelRole("hood")
|
|
266
254
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
label: "
|
|
269
|
-
|
|
270
|
-
onClick: () => c.onSwingPanelRole("trunk")
|
|
255
|
+
/* @__PURE__ */ jsx(HudBtn, {
|
|
256
|
+
label: "Trunk",
|
|
257
|
+
onClick: () => p.onSwingPanelRole("trunk")
|
|
271
258
|
})
|
|
272
259
|
] }),
|
|
273
|
-
|
|
274
|
-
"
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
260
|
+
/* @__PURE__ */ jsxs("select", {
|
|
261
|
+
"aria-label": "Socket Stamp",
|
|
262
|
+
value: p.stampTool,
|
|
263
|
+
onChange: (e) => p.onSelectStampTool(e.target.value),
|
|
264
|
+
style: SELECT_STYLE,
|
|
265
|
+
children: [
|
|
266
|
+
/* @__PURE__ */ jsx("option", {
|
|
267
|
+
value: "none",
|
|
268
|
+
children: "Stamp: Off"
|
|
269
|
+
}),
|
|
270
|
+
/* @__PURE__ */ jsx("option", {
|
|
271
|
+
value: "seat",
|
|
272
|
+
children: "Stamp: Seat"
|
|
273
|
+
}),
|
|
274
|
+
/* @__PURE__ */ jsx("option", {
|
|
275
|
+
value: "headlight",
|
|
276
|
+
children: "Stamp: Headlight"
|
|
277
|
+
}),
|
|
278
|
+
/* @__PURE__ */ jsx("option", {
|
|
279
|
+
value: "brake_flare",
|
|
280
|
+
children: "Stamp: Brake Light"
|
|
281
|
+
}),
|
|
282
|
+
/* @__PURE__ */ jsx("option", {
|
|
283
|
+
value: "plume",
|
|
284
|
+
children: "Stamp: Boost Plume"
|
|
285
|
+
}),
|
|
286
|
+
/* @__PURE__ */ jsx("option", {
|
|
287
|
+
value: "sparkle",
|
|
288
|
+
children: "Stamp: Spark"
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
}),
|
|
292
|
+
p.patchCount > 0 && /* @__PURE__ */ jsx(HudBtn, {
|
|
293
|
+
label: `Undo (${p.patchCount})`,
|
|
294
|
+
onClick: p.onUndoPatch
|
|
288
295
|
})
|
|
289
296
|
] }),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
297
|
+
/* @__PURE__ */ jsx("span", {
|
|
298
|
+
style: {
|
|
299
|
+
fontSize: 11.5,
|
|
300
|
+
color: "#94A3B8",
|
|
301
|
+
paddingLeft: 4
|
|
302
|
+
},
|
|
303
|
+
children: summaryText
|
|
295
304
|
}),
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
305
|
+
/* @__PURE__ */ jsx("span", {
|
|
306
|
+
ref: teleRef,
|
|
307
|
+
style: {
|
|
308
|
+
fontSize: 11.5,
|
|
309
|
+
fontWeight: 600,
|
|
310
|
+
color: "#38BDF8"
|
|
311
|
+
}
|
|
301
312
|
})
|
|
302
313
|
]
|
|
303
|
-
})
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
})]
|
|
310
|
-
})] });
|
|
314
|
+
})
|
|
315
|
+
] });
|
|
316
|
+
return flexMode ? /* @__PURE__ */ jsx("div", {
|
|
317
|
+
style: OVERLAY_COL,
|
|
318
|
+
children: bars
|
|
319
|
+
}) : bars;
|
|
311
320
|
}
|
|
312
|
-
export {
|
|
321
|
+
export { GateHudBar, resolveVaultCarSelection };
|
|
322
|
+
|
|
323
|
+
//# sourceMappingURL=GateHudBar.js.map
|