Skip to content

Commit

Permalink
1551535513
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromaSen committed Jun 16, 2024
1 parent 9f9cad3 commit 5e65188
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions source/gameObjects/userInterface/DialogueBox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class DialogueBox extends FlxSpriteGroup

// cur portrait
portrait = new FNFSprite(800, 160);
portrait.visible=true;

// thank u sammu for fixing alphabet.hx
// i dont wanna touch it ever
Expand Down Expand Up @@ -323,6 +324,9 @@ class DialogueBox extends FlxSpriteGroup
public function updatePortrait(force:Bool = false)
{
var newChar = dialogueData.dialogue[curPage].portrait;
if(PlayState.SONG.song.toLowerCase()=='reaper-rhythm'){
portrait.visible=false;
}else{portrait.visible=true;}

if (curCharacter != newChar || force)
{
Expand Down
2 changes: 1 addition & 1 deletion source/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ class PlayState extends MusicBeatState
aspdojojdfsapjfds=true;
trace("121212231");
}
if(FlxG.keys.justPressed.SHIFT&&DialogueBox.voiceline!=null&&SONG.song.toLowerCase()!="reaper-rhythm"||SONG.song.toLowerCase()!="deadbattle"){
if(FlxG.keys.justPressed.SHIFT&&DialogueBox.voiceline!=null&&SONG.song.toLowerCase()!="reaper-rhythm"&&SONG.song.toLowerCase()!="deadbattle"){
DialogueBox.voiceline.stop();
dialogueBox.closeDialog();
}
Expand Down

0 comments on commit 5e65188

Please sign in to comment.