|
|
|
@ -239,14 +239,18 @@ void VisualNovel::Draw(){ |
|
|
|
|
std::u32string character(leftCharacters[i].begin(),leftCharacters[i].end()); |
|
|
|
|
Pixel fadeColor=WHITE; |
|
|
|
|
if(character!=actualSpeakerName)fadeColor={128,128,128,255}; |
|
|
|
|
game->DrawRotatedDecal(vi2d{0,game->GetScreenSize().y}-vi2d{-i*64-36,152},GFX[GetCharacterImage(character)].Decal(),0,GFX[GetCharacterImage(character)].Sprite()->Size()/2,vf2d{72.f,168.f}/GFX[GetCharacterImage(character)].Sprite()->Size(),fadeColor); |
|
|
|
|
float yScaling=168.f/GFX[GetCharacterImage(character)].Sprite()->height; |
|
|
|
|
|
|
|
|
|
game->DrawRotatedDecal(vi2d{0,game->GetScreenSize().y}-vi2d{-i*64-36,152},GFX[GetCharacterImage(character)].Decal(),0,GFX[GetCharacterImage(character)].Sprite()->Size()/2,vf2d{yScaling,yScaling},fadeColor); |
|
|
|
|
} |
|
|
|
|
for(int i=rightCharacters.size()-1;i>=0;i--){ |
|
|
|
|
//Start 72 from the bottom.
|
|
|
|
|
std::u32string character(rightCharacters[i].begin(),rightCharacters[i].end()); |
|
|
|
|
Pixel fadeColor=WHITE; |
|
|
|
|
if(character!=actualSpeakerName)fadeColor={128,128,128,255}; |
|
|
|
|
game->DrawRotatedDecal(game->GetScreenSize()-vi2d{i*64+36,152},GFX[GetCharacterImage(character)].Decal(),0,GFX[GetCharacterImage(character)].Sprite()->Size()/2,vf2d{-72.f,168.f}/GFX[GetCharacterImage(character)].Sprite()->Size(),fadeColor); |
|
|
|
|
float yScaling=168.f/GFX[GetCharacterImage(character)].Sprite()->height; |
|
|
|
|
|
|
|
|
|
game->DrawRotatedDecal(game->GetScreenSize()-vi2d{i*64+36,152},GFX[GetCharacterImage(character)].Decal(),0,GFX[GetCharacterImage(character)].Sprite()->Size()/2,vf2d{-yScaling,yScaling},fadeColor); |
|
|
|
|
} |
|
|
|
|
if(locationDisplayTime>0){ |
|
|
|
|
std::u32string locationStr=std::u32string(locationDisplayText.begin(),locationDisplayText.end()); |
|
|
|
|