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".
if GetUIFloat "HUDMainMenu\_DUIF3" > 0 ; DarnUI
if GetUIFloat "HUDMainMenu/_DUIF3" > 0 ; DarnUI
if eval GetUIString "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
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"
SetUIFloat "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/visible" 0
endif
@ -82,7 +82,7 @@ begin GameMode
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
SetUIString "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/string" "Scan"
SetUIFloat "HUDMainMenu/InfoWrap/Info/justify_center_hotrect/visible" 1

View File

@ -7,8 +7,14 @@ begin function {}
EnableControl 5
if GetActiveMenuMode == 0
if eval GetUIString "HUDMainMenu/Info/justify_center_hotrect/string" == "Scan"
SetUIFloat "HUDMainMenu/Info/justify_center_hotrect/visible" 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"
SetUIFloat "HUDMainMenu/Info/justify_center_hotrect/visible" 0
endif
endif
endif