Skip to content

Commit

Permalink
Only show spec info and cam selection if UI sequence "playing"
Browse files Browse the repository at this point in the history
  • Loading branch information
araszka committed Sep 30, 2024
1 parent ebc1916 commit c9adf6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ main(){
while(True){
yield;

declare shouldBeDisplayed = InputPlayer != Null && InputPlayer.SpawnStatus == CSmPlayer::ESpawnStatus::NotSpawned;
declare shouldBeDisplayed = InputPlayer != Null
&& InputPlayer.SpawnStatus == CSmPlayer::ESpawnStatus::NotSpawned
&& UI.UISequence == CUIConfig::EUISequence::Playing;

if(!shouldBeDisplayed){
if(mainFrame.Visible){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ main() {
while(True){
yield;

if(GUIPlayer == Null){
declare shouldBeDisplayed = GUIPlayer != Null && UI.UISequence == CUIConfig::EUISequence::Playing;

if(!shouldBeDisplayed){
if(mainFrame.Visible){
mainFrame.Hide();
}
sleep(100);
continue;
}

Expand Down

0 comments on commit c9adf6e

Please sign in to comment.