Fixed the Scan prompt getting stuck on screen with DarnUI

This commit is contained in:
Eddoursul 2024-04-28 13:36:35 +02:00
parent be5b2e0902
commit 68c6a351de
3 changed files with 11 additions and 5 deletions

Binary file not shown.

View File

@ -21,7 +21,7 @@ begin GameMode
; As normal activation is temporarily disabled, we need to change it back to "Scan". ; As normal activation is temporarily disabled, we need to change it back to "Scan".
if GetUIFloat "HUDMainMenu\_DUIF3" > 0 ; DarnUI if GetUIFloat "HUDMainMenu/_DUIF3" > 0 ; DarnUI
if eval GetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" != "Scan" if eval GetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" != "Scan"
SetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" "Scan" SetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" "Scan"
@ -64,7 +64,7 @@ begin GameMode
; SetStage CWxScannerTextQuest 0 ; SetStage CWxScannerTextQuest 0
if rTarget == 0 if rTarget == 0
if GetUIFloat "HUDMainMenu\_DUIF3" > 0 ; DarnUI if GetUIFloat "HUDMainMenu/_DUIF3" > 0 ; DarnUI
if eval GetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" == "Scan" if eval GetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" == "Scan"
SetUIFloat "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/visible" 0 SetUIFloat "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/visible" 0
endif endif
@ -82,7 +82,7 @@ begin GameMode
set iControl to GetControl 5 set iControl to GetControl 5
if GetUIFloat "HUDMainMenu\_DUIF3" > 0 ; DarnUI if GetUIFloat "HUDMainMenu/_DUIF3" > 0 ; DarnUI
SetUIStringEx "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/_PCButtonText" "%k)" iControl SetUIStringEx "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/_PCButtonText" "%k)" iControl
SetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" "Scan" SetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" "Scan"
SetUIFloat "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/visible" 1 SetUIFloat "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/visible" 1

View File

@ -7,10 +7,16 @@ begin function {}
EnableControl 5 EnableControl 5
if GetActiveMenuMode == 0 if GetActiveMenuMode == 0
if GetUIFloat "HUDMainMenu/_DUIF3" > 0 ; DarnUI
if eval GetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" == "Scan"
SetUIFloat "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/visible" 0
endif
else
if eval GetUIString "HUDMainMenu/Info/justify_center_hotrect/string" == "Scan" if eval GetUIString "HUDMainMenu/Info/justify_center_hotrect/string" == "Scan"
SetUIFloat "HUDMainMenu/Info/justify_center_hotrect/visible" 0 SetUIFloat "HUDMainMenu/Info/justify_center_hotrect/visible" 0
endif endif
endif endif
endif
ResetQuest CWxScannerQuest ResetQuest CWxScannerQuest
StopQuest CWxScannerQuest StopQuest CWxScannerQuest