diff options
| author | Kiloku <mateus.sateles@protonmail.com> | 2025-02-02 16:44:44 -0300 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-02-02 14:04:48 -0600 |
| commit | 1f79880fd55564d75d0d5225cd5842261abe37de (patch) | |
| tree | 150ee50a78eef3e74bb236829afd52171e07470c | |
| parent | 41cc11d0f15f5a0bf75894244b3c07d2e55813af (diff) | |
Allow customizing cockpit glass opacity
| -rw-r--r-- | src/engine/fox_display.c | 3 | ||||
| -rw-r--r-- | src/port/ui/ImguiUI.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/fox_display.c b/src/engine/fox_display.c index 77cff46d..38135a6e 100644 --- a/src/engine/fox_display.c +++ b/src/engine/fox_display.c @@ -699,7 +699,8 @@ void Display_CockpitGlass(void) { Matrix_Scale(gGfxMatrix, D_display_800CA28C, D_display_800CA28C, D_display_800CA28C, MTXF_APPLY); Matrix_SetGfxMtx(&gMasterDisp); RCP_SetupDL_64_2(); - gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 255, 255, 255, 120); + u16 opacity = CVarGetInteger("gCockpitOpacity", 120); + gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 255, 255, 255, opacity); gSPClearGeometryMode(gMasterDisp++, G_CULL_BACK); gSPDisplayList(gMasterDisp++, D_arwing_30194E0); gSPSetGeometryMode(gMasterDisp++, G_CULL_BACK); diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index 6f67f8b6..122c446b 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -473,6 +473,8 @@ void DrawEnhancementsMenu() { .tooltip = "Character heads are displayed inside Arwings in all cutscenes", .defaultValue = true }); + UIWidgets::CVarSliderInt("Cockpit Glass Opacity: %d", "gCockpitOpacity", 0, 255, 120); + ImGui::EndMenu(); } |
