@@ -143,7 +143,7 @@ static bool gInterfaceBarSwapHandsInProgress = false;
143
143
static bool gInterfaceBarEnabled = false ;
144
144
145
145
// 0x518F14
146
- static bool _intfaceHidden = false ;
146
+ static bool gInterfaceBarHidden = false ;
147
147
148
148
// 0x518F18
149
149
static int gInventoryButton = -1 ;
@@ -315,7 +315,7 @@ int interfaceInit()
315
315
gInterfaceBarEndButtonsRect = { 580 + gInterfaceBarContentOffset , 38 , 637 + gInterfaceBarContentOffset , 96 };
316
316
gInterfaceBarMainActionRect = { 267 + gInterfaceBarContentOffset , 26 , 455 + gInterfaceBarContentOffset , 93 };
317
317
318
- gInterfaceBarInitialized = 1 ;
318
+ gInterfaceBarInitialized = true ;
319
319
320
320
int interfaceBarWindowX = (screenGetWidth () - gInterfaceBarWidth ) / 2 ;
321
321
int interfaceBarWindowY = screenGetHeight () - INTERFACE_BAR_HEIGHT;
@@ -582,7 +582,7 @@ int interfaceInit()
582
582
583
583
gInterfaceBarEnabled = true ;
584
584
gInterfaceBarInitialized = false ;
585
- _intfaceHidden = 1 ;
585
+ gInterfaceBarHidden = true ;
586
586
587
587
return 0 ;
588
588
}
@@ -593,7 +593,7 @@ void interfaceReset()
593
593
interfaceBarEnable ();
594
594
595
595
// NOTE: Uninline.
596
- intface_hide ();
596
+ interfaceBarHide ();
597
597
598
598
indicatorBarRefresh ();
599
599
displayMonitorReset ();
@@ -707,11 +707,11 @@ int interfaceLoad(File* stream)
707
707
}
708
708
}
709
709
710
- int interfaceBarEnabled;
711
- if (fileReadInt32 (stream, &interfaceBarEnabled) == -1 ) return -1 ;
710
+ bool interfaceBarEnabled;
711
+ if (fileReadBool (stream, &interfaceBarEnabled) == -1 ) return -1 ;
712
712
713
- int v2 ;
714
- if (fileReadInt32 (stream, &v2 ) == -1 ) return -1 ;
713
+ bool interfaceBarHidden ;
714
+ if (fileReadBool (stream, &interfaceBarHidden ) == -1 ) return -1 ;
715
715
716
716
int interfaceCurrentHand;
717
717
if (fileReadInt32 (stream, &interfaceCurrentHand) == -1 ) return -1 ;
@@ -723,11 +723,11 @@ int interfaceLoad(File* stream)
723
723
interfaceBarEnable ();
724
724
}
725
725
726
- if (v2 ) {
726
+ if (interfaceBarHidden ) {
727
727
// NOTE: Uninline.
728
- intface_hide ();
728
+ interfaceBarHide ();
729
729
} else {
730
- _intface_show ();
730
+ interfaceBarShow ();
731
731
}
732
732
733
733
interfaceRenderHitPoints (false );
@@ -763,23 +763,23 @@ int interfaceSave(File* stream)
763
763
return -1 ;
764
764
}
765
765
766
- if (fileWriteInt32 (stream, gInterfaceBarEnabled ) == -1 ) return -1 ;
767
- if (fileWriteInt32 (stream, _intfaceHidden ) == -1 ) return -1 ;
766
+ if (fileWriteBool (stream, gInterfaceBarEnabled ) == -1 ) return -1 ;
767
+ if (fileWriteBool (stream, gInterfaceBarHidden ) == -1 ) return -1 ;
768
768
if (fileWriteInt32 (stream, gInterfaceCurrentHand ) == -1 ) return -1 ;
769
- if (fileWriteInt32 (stream, gInterfaceBarEndButtonsIsVisible ) == -1 ) return -1 ;
769
+ if (fileWriteBool (stream, gInterfaceBarEndButtonsIsVisible ) == -1 ) return -1 ;
770
770
771
771
return 0 ;
772
772
}
773
773
774
774
// NOTE: Inlined.
775
775
//
776
776
// 0x45E9E0
777
- void intface_hide ()
777
+ void interfaceBarHide ()
778
778
{
779
779
if (gInterfaceBarWindow != -1 ) {
780
- if (!_intfaceHidden ) {
780
+ if (!gInterfaceBarHidden ) {
781
781
windowHide (gInterfaceBarWindow );
782
- _intfaceHidden = 1 ;
782
+ gInterfaceBarHidden = true ;
783
783
}
784
784
}
785
785
@@ -790,16 +790,16 @@ void intface_hide()
790
790
}
791
791
792
792
// 0x45EA10
793
- void _intface_show ()
793
+ void interfaceBarShow ()
794
794
{
795
795
if (gInterfaceBarWindow != -1 ) {
796
- if (_intfaceHidden ) {
796
+ if (gInterfaceBarHidden ) {
797
797
interfaceUpdateItems (false , INTERFACE_ITEM_ACTION_DEFAULT, INTERFACE_ITEM_ACTION_DEFAULT);
798
798
interfaceRenderHitPoints (false );
799
799
interfaceRenderArmorClass (false );
800
800
windowShow (gInterfaceBarWindow );
801
801
sidePanelsShow ();
802
- _intfaceHidden = false ;
802
+ gInterfaceBarHidden = false ;
803
803
}
804
804
}
805
805
@@ -2303,7 +2303,7 @@ static void indicatorBarReset()
2303
2303
// 0x4614CC
2304
2304
int indicatorBarRefresh ()
2305
2305
{
2306
- if (gInterfaceBarWindow != -1 && gIndicatorBarIsVisible && !_intfaceHidden ) {
2306
+ if (gInterfaceBarWindow != -1 && gIndicatorBarIsVisible && !gInterfaceBarHidden ) {
2307
2307
for (int index = 0 ; index < INDICATOR_SLOTS_COUNT; index++) {
2308
2308
gIndicatorSlots [index] = -1 ;
2309
2309
}
0 commit comments