Add various tweaks and a warning to debug mode toggle (#643)

This commit is contained in:
Garrett Cox
2024-06-02 12:50:32 -05:00
committed by GitHub
parent eae50e33e3
commit b54542494e
4 changed files with 75 additions and 40 deletions
+9 -2
View File
@@ -277,8 +277,15 @@ void ActorViewerWindow::DrawElement() {
ImGui::InputScalar("rZ", ImGuiDataType_S16, &newActor.rot.z);
ImGui::EndGroup();
UIWidgets::CVarCheckbox("Remove Obj Dep?", "gObjDep",
{ .tooltip = "Allows actors to spawn where/when they normally wouldn't." });
UIWidgets::CVarCheckbox("Disable Object Dependency", "gDeveloperTools.DisableObjectDependency");
if (ImGui::IsItemHovered()) {
ImGui::BeginTooltip();
ImGui::TextColored(
ImVec4(1.0f, 1.0f, 0.0f, 1.0f),
"Warning: This will cause some actors to spawn in places they normally wouldn't,\nplease ensure "
"this is disabled before reporting any actor related issues");
ImGui::EndTooltip();
}
if (UIWidgets::Button("Fetch from Link")) {
Player* player = GET_PLAYER(gPlayState);