diff --git a/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/cameraGroup/atom_component/cameraProjection/ui/MainEditorCameraProjection.re b/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/cameraGroup/atom_component/cameraProjection/ui/MainEditorCameraProjection.re index 4e1ccc004..c1a0fec76 100755 --- a/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/cameraGroup/atom_component/cameraProjection/ui/MainEditorCameraProjection.re +++ b/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/cameraGroup/atom_component/cameraProjection/ui/MainEditorCameraProjection.re @@ -65,53 +65,73 @@ module Method = { |> StateLogicService.getAndRefreshEngineStateWithFunc; let buildNearComponent = - ((uiState, dispatchFunc), currentGameObjectPerspectiveCamera) => + ( + (uiState, dispatchFunc), + currentGameObjectPerspectiveCamera, + languageType, + ) => ; let buildFarComponent = - ((uiState, dispatchFunc), currentGameObjectPerspectiveCamera) => + ( + (uiState, dispatchFunc), + currentGameObjectPerspectiveCamera, + languageType, + ) => ; /* let buildAspectComponent = @@ -135,29 +155,39 @@ module Method = { />; */ let buildFovyComponent = - ((uiState, dispatchFunc), currentGameObjectPerspectiveCamera) => + ( + (uiState, dispatchFunc), + currentGameObjectPerspectiveCamera, + languageType, + ) => ; }; @@ -171,39 +201,50 @@ let render = ((uiState, dispatchFunc), _self) => { SceneTreeEditorService.unsafeGetCurrentSceneTreeNode |> StateLogicService.getEditorState, ); + let languageType = + LanguageUtils.getLanguageType(WindowType.window##wonderLanguage);
convertCameraViewTypeToInt) - onChange=(value => ()) + title={ + LanguageUtils.getInspectorLanguageDataByType( + "view-type-describe", + languageType, + ) + } + options={MainEditorCameraViewUtils.getCameraViewOptions()} + selectedKey={BasicCameraView |> convertCameraViewTypeToInt} + onChange={value => ()} />
-
(DomHelper.textEl("CurrentCamera"))
+
+ {DomHelper.textEl("CurrentCamera")} +
diff --git a/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/cameraGroup/ui/MainEditorCameraGroup.re b/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/cameraGroup/ui/MainEditorCameraGroup.re index 0755653c8..9796a68bd 100755 --- a/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/cameraGroup/ui/MainEditorCameraGroup.re +++ b/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/cameraGroup/ui/MainEditorCameraGroup.re @@ -1,17 +1,36 @@ let component = ReasonReact.statelessComponent("MainEditorCameraGroup"); -let render = ((uiState, dispatchFunc), _self) => +let render = ((uiState, dispatchFunc), _self) => { + let languageType = + LanguageUtils.getLanguageType(WindowType.window##wonderLanguage); +
-
(DomHelper.textEl("CameView"))
+
+ {DomHelper.textEl("Camera View")} +

-
- (DomHelper.textEl("Projection")) +
+ {DomHelper.textEl("Projection")}

@@ -19,6 +38,7 @@ let render = ((uiState, dispatchFunc), _self) =>
; +}; let make = (~uiState, ~dispatchFunc, _children) => { ...component, diff --git a/src/core/config/data/LanguageInspectorData.re b/src/core/config/data/LanguageInspectorData.re index 9378c5d21..7e65e4a4c 100644 --- a/src/core/config/data/LanguageInspectorData.re +++ b/src/core/config/data/LanguageInspectorData.re @@ -149,7 +149,7 @@ let inspector_language_array = [| }, }, { - title: "projection-describe", + title: "camera-projection-describe", language: { zh: {j|自定义名词|j}, en: "name for yourself",