mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-12 13:20:23 -05:00
Remove old checkbox
This commit is contained in:
parent
4e12181fb8
commit
541a3ff607
@ -794,7 +794,8 @@ void PatchOrUnpatch(const char* resource, const char* gfx, const char* dlist1, c
|
|||||||
if (resource == NULL || gfx == NULL || dlist1 == NULL || dlist2 == NULL)
|
if (resource == NULL || gfx == NULL || dlist1 == NULL || dlist2 == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (ResourceGetIsCustomByName(gfx) && CVarGetInteger("gAltAssets", 0)) {
|
if (CVarGetInteger("gAltAssets", 0)) {
|
||||||
|
if (ResourceGetIsCustomByName(gfx)) {
|
||||||
if (alternateDL == NULL || ResourceGetIsCustomByName(alternateDL) || ResourceMgr_FileExists(alternateDL)) {
|
if (alternateDL == NULL || ResourceGetIsCustomByName(alternateDL) || ResourceMgr_FileExists(alternateDL)) {
|
||||||
ResourceMgr_PatchCustomGfxByName(resource, dlist1, 0, gsSPDisplayListOTRFilePath(gfx));
|
ResourceMgr_PatchCustomGfxByName(resource, dlist1, 0, gsSPDisplayListOTRFilePath(gfx));
|
||||||
if (dlist3 == NULL) {
|
if (dlist3 == NULL) {
|
||||||
@ -802,16 +803,19 @@ void PatchOrUnpatch(const char* resource, const char* gfx, const char* dlist1, c
|
|||||||
} else {
|
} else {
|
||||||
ResourceMgr_PatchCustomGfxByName(resource, dlist2, 1, gsSPDisplayListOTRFilePath(alternateDL));
|
ResourceMgr_PatchCustomGfxByName(resource, dlist2, 1, gsSPDisplayListOTRFilePath(alternateDL));
|
||||||
}
|
}
|
||||||
if (dlist3 != NULL)
|
if (dlist3 != NULL) {
|
||||||
ResourceMgr_PatchCustomGfxByName(resource, dlist3, 2, gsSPEndDisplayList());
|
ResourceMgr_PatchCustomGfxByName(resource, dlist3, 2, gsSPEndDisplayList());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ResourceMgr_UnpatchGfxByName(resource, dlist1);
|
ResourceMgr_UnpatchGfxByName(resource, dlist1);
|
||||||
ResourceMgr_UnpatchGfxByName(resource, dlist2);
|
ResourceMgr_UnpatchGfxByName(resource, dlist2);
|
||||||
if (dlist3 != NULL)
|
if (dlist3 != NULL) {
|
||||||
ResourceMgr_UnpatchGfxByName(resource, dlist3);
|
ResourceMgr_UnpatchGfxByName(resource, dlist3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void UpdatePatchCustomEquipmentDlists() {
|
void UpdatePatchCustomEquipmentDlists() {
|
||||||
|
|
||||||
|
@ -1074,10 +1074,6 @@ void DrawEnhancementsMenu() {
|
|||||||
ToggleAltAssetsAtEndOfFrame = true;
|
ToggleAltAssetsAtEndOfFrame = true;
|
||||||
}
|
}
|
||||||
UIWidgets::Tooltip("Toggle between standard assets and alternate assets. Usually mods will indicate if this setting has to be used or not.");
|
UIWidgets::Tooltip("Toggle between standard assets and alternate assets. Usually mods will indicate if this setting has to be used or not.");
|
||||||
if (UIWidgets::PaddedEnhancementCheckbox("Use Custom Equipment", "gEnhancements.CustomEquipDlists", true, false)) {
|
|
||||||
UpdatePatchCustomEquipmentDlists();
|
|
||||||
}
|
|
||||||
UIWidgets::Tooltip("Toggle between standard equipment and custom equipment. Usually mods will indicate if this setting has to be used or not.");
|
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Disable Bomb Billboarding", "gDisableBombBillboarding", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Disable Bomb Billboarding", "gDisableBombBillboarding", true, false);
|
||||||
UIWidgets::Tooltip("Disables bombs always rotating to face the camera. To be used in conjunction with mods that want to replace bombs with 3D objects.");
|
UIWidgets::Tooltip("Disables bombs always rotating to face the camera. To be used in conjunction with mods that want to replace bombs with 3D objects.");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Disable Grotto Fixed Rotation", "gDisableGrottoRotation", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Disable Grotto Fixed Rotation", "gDisableGrottoRotation", true, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user