mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 02:42:18 -05:00
Renames Freecam to Free Look. (#3771)
Adds helper info for invert, distance, and transition speed options.
This commit is contained in:
parent
7ef6a434f9
commit
16ee20c2a8
@ -258,24 +258,28 @@ namespace GameControlEditor {
|
|||||||
window->EndGroupPanelPublic(0);
|
window->EndGroupPanelPublic(0);
|
||||||
|
|
||||||
UIWidgets::Spacer(0);
|
UIWidgets::Spacer(0);
|
||||||
window->BeginGroupPanelPublic("Third-Person Camera", ImGui::GetContentRegionAvail());
|
window->BeginGroupPanelPublic("Free Look/Third-person Camera", ImGui::GetContentRegionAvail());
|
||||||
|
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Free Camera", "gFreeCamera");
|
UIWidgets::PaddedEnhancementCheckbox("Enable Free Look", "gFreeCamera");
|
||||||
DrawHelpIcon("Enables free camera control\nNote: You must remap C buttons off of the right stick in the "
|
DrawHelpIcon("Enables free look camera control\nNote: You must remap C buttons off of the right stick in the "
|
||||||
"controller config menu, and map the camera stick to the right stick.");
|
"controller config menu, and map the camera stick to the right stick.");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Invert Camera X Axis", "gInvertXAxis");
|
UIWidgets::PaddedEnhancementCheckbox("Invert X Axis", "gInvertXAxis");
|
||||||
DrawHelpIcon("Inverts the Camera X Axis in:\n-Free camera");
|
DrawHelpIcon("Inverts the Camera X Axis in:\n-Free Look");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Invert Camera Y Axis", "gInvertYAxis", true, true, false, "", UIWidgets::CheckboxGraphics::Cross, true);
|
UIWidgets::PaddedEnhancementCheckbox("Invert Y Axis", "gInvertYAxis", true, true, false, "", UIWidgets::CheckboxGraphics::Cross, true);
|
||||||
DrawHelpIcon("Inverts the Camera Y Axis in:\n-Free camera");
|
DrawHelpIcon("Inverts the Camera Y Axis in:\n-Free Look");
|
||||||
UIWidgets::Spacer(0);
|
UIWidgets::Spacer(0);
|
||||||
UIWidgets::PaddedEnhancementSliderFloat("Third-Person Horizontal Sensitivity: %d %%", "##ThirdPersonSensitivity Horizontal",
|
UIWidgets::PaddedEnhancementSliderFloat("Horizontal Sensitivity: %d %%", "##ThirdPersonSensitivity Horizontal",
|
||||||
"gThirdPersonCameraSensitivityX", 0.01f, 5.0f, "", 1.0f, true, true, false, true);
|
"gThirdPersonCameraSensitivityX", 0.01f, 5.0f, "", 1.0f, true, true, false, true);
|
||||||
UIWidgets::PaddedEnhancementSliderFloat("Third-Person Vertical Sensitivity: %d %%", "##ThirdPersonSensitivity Vertical",
|
DrawHelpIcon("Changes the sensitivity of the X axis control for Free Look");
|
||||||
|
UIWidgets::PaddedEnhancementSliderFloat("Vertical Sensitivity: %d %%", "##ThirdPersonSensitivity Vertical",
|
||||||
"gThirdPersonCameraSensitivityY", 0.01f, 5.0f, "", 1.0f, true, true, false, true);
|
"gThirdPersonCameraSensitivityY", 0.01f, 5.0f, "", 1.0f, true, true, false, true);
|
||||||
|
DrawHelpIcon("Changes the sensitivity of the Y axis control for Free Look");
|
||||||
UIWidgets::PaddedEnhancementSliderInt("Camera Distance: %d", "##CamDist",
|
UIWidgets::PaddedEnhancementSliderInt("Camera Distance: %d", "##CamDist",
|
||||||
"gFreeCameraDistMax", 100, 900, "", 185, true, false, true);
|
"gFreeCameraDistMax", 100, 900, "", 185, true, false, true);
|
||||||
UIWidgets::PaddedEnhancementSliderInt("Camera Transition Speed: %d", "##CamTranSpeed",
|
DrawHelpIcon("How far the camera sits from Link while in Free Look mode");
|
||||||
|
UIWidgets::PaddedEnhancementSliderInt("Transition Speed: %d", "##CamTranSpeed",
|
||||||
"gFreeCameraTransitionSpeed", 0, 900, "", 25, true, false, true);
|
"gFreeCameraTransitionSpeed", 0, 900, "", 25, true, false, true);
|
||||||
|
DrawHelpIcon("How quickly the camera changes to the distance specified above");
|
||||||
window->EndGroupPanelPublic(0);
|
window->EndGroupPanelPublic(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7887,7 +7887,7 @@ s32 Camera_ChangeModeFlags(Camera* camera, s16 mode, u8 flags) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear free camera if an action is performed that would move the camera (targeting, first person, talking)
|
// Clear free look if an action is performed that would move the camera (targeting, first person, talking)
|
||||||
if (CVarGetInteger("gFreeCamera", 0) && SetCameraManual(camera) == 1 &&
|
if (CVarGetInteger("gFreeCamera", 0) && SetCameraManual(camera) == 1 &&
|
||||||
((mode >= CAM_MODE_TARGET && mode <= CAM_MODE_BATTLE) ||
|
((mode >= CAM_MODE_TARGET && mode <= CAM_MODE_BATTLE) ||
|
||||||
(mode >= CAM_MODE_FIRSTPERSON && mode <= CAM_MODE_CLIMBZ) || mode == CAM_MODE_HANGZ ||
|
(mode >= CAM_MODE_FIRSTPERSON && mode <= CAM_MODE_CLIMBZ) || mode == CAM_MODE_HANGZ ||
|
||||||
|
Loading…
Reference in New Issue
Block a user