Character art is now handled differently in visual novels to incorporate character art of any width. Release Build 8923.

This commit is contained in:
sigonasr2 2024-04-14 15:31:18 -05:00
parent bdf126820a
commit f769a77e42
5 changed files with 8 additions and 4 deletions

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 1
#define VERSION_PATCH 0
#define VERSION_BUILD 8921
#define VERSION_BUILD 8923
#define stringify(a) stringify_(a)
#define stringify_(a) #a

View File

@ -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());

View File

@ -105,6 +105,6 @@ Images
# Full Class Icons
GFX_Warrior_Full = characters/commercial_assets/Player_F_NoOutline.png
GFX_Wizard_Full = wizard_full_render.png
GFX_Wizard_Full = characters/commercial_assets/Wizard_F_NoOutline.png
GFX_Unknown_Full = unknown_full_render.png
}