mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-03 08:43:56 +03:00
Allow customizing cockpit glass opacity
Some checks are pending
Some checks are pending
This commit is contained in:
parent
41cc11d0f1
commit
1f79880fd5
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user