Added a check for Dialogue Menu to validation in DisableDialogueQuitting to prevent false positives

This commit is contained in:
Eddoursul 2021-10-18 13:24:09 +02:00
parent d3a31a4d94
commit 8af2b08f85
2 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -134,6 +134,7 @@ endFunction
Function DisableDialogueQuitting() Global Function DisableDialogueQuitting() Global
{Disables the TAB Key during dialogue. Resets automatically upon dialogue exit via Goodbye.} {Disables the TAB Key during dialogue. Resets automatically upon dialogue exit via Goodbye.}
if UI.IsMenuOpen("Dialogue Menu")
if UI.GetBool("Dialogue Menu", "_root.DialogueMenu_mc.bEnableTab") != true if UI.GetBool("Dialogue Menu", "_root.DialogueMenu_mc.bEnableTab") != true
; Suspected non-Enderal dialoguemenu.swf replacer, rechecking value in order to be sure. ; Suspected non-Enderal dialoguemenu.swf replacer, rechecking value in order to be sure.
UI.InvokeBool("Dialogue Menu", "_root.DialogueMenu_mc.SetVariable", True) UI.InvokeBool("Dialogue Menu", "_root.DialogueMenu_mc.SetVariable", True)
@ -141,6 +142,7 @@ Function DisableDialogueQuitting() Global
Debug.Notification("Detected incompatible dialoguemenu.swf!") Debug.Notification("Detected incompatible dialoguemenu.swf!")
endif endif
endif endif
endif
UI.InvokeBool("Dialogue Menu", "_root.DialogueMenu_mc.SetVariable", False) UI.InvokeBool("Dialogue Menu", "_root.DialogueMenu_mc.SetVariable", False)