Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Commit 319ff4e

Browse files
committed
Fix for deactivating the report form while telling the user about it.
1 parent 8f7d964 commit 319ff4e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Source/SrDebugDirector.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,14 @@ private void Update()
6363
_inputDir = FindObjectOfType<InputDirector>();
6464
if (_inputDir) // prevent user from submitting bug reports.
6565
{
66-
_inputDir.bugReportPrefab = new GameObject();
67-
_inputDir.bugReportPrefab.SetActive(false);
66+
var bugReportUI = _inputDir.bugReportPrefab.GetComponentInChildren<BugReportUI>();
67+
bugReportUI.submitButton.interactable = false;
68+
bugReportUI.summaryField.interactable = false;
69+
bugReportUI.descField.interactable = false;
70+
71+
bugReportUI.summaryField.text = "Debug Menu Mod installed - Reporting Issues is deactivated";
72+
bugReportUI.descField.text = "Notice: While this debug menu mod is active, you will not be able to report bugs. " +
73+
"This mod is not supported by Monomi Park and never will be.";
6874
}
6975
}
7076

0 commit comments

Comments
 (0)