Add in emscripten-specific branching menus and special load/save routines for online saving.

This commit is contained in:
2024-01-02 05:54:43 -06:00
parent 2a900fa06e
commit 497db80b9b
15 changed files with 161 additions and 60 deletions
+3 -3
View File
@@ -78,8 +78,8 @@ protected:
vf2d adjustedScale={scale,scale};
vf2d labelTextSize=
proportional?
vf2d(game->GetWrappedTextSizeProp(label,rect.size.x,adjustedScale)):
vf2d(game->GetWrappedTextSize(label,rect.size.x,adjustedScale));
vf2d(game->GetWrappedTextSizeProp(label,rect.size.x-8,adjustedScale)):
vf2d(game->GetWrappedTextSize(label,rect.size.x-8,adjustedScale));
if(fitToLabel){
labelTextSize=
@@ -93,7 +93,7 @@ protected:
}
}
vf2d drawPos=rect.middle()-vf2d{labelTextSize}/2; //Assume centered.
vf2d drawPos=vf2d{-4.f,0.f}+rect.middle()-vf2d{labelTextSize}/2; //Assume centered.
if(!centered){
drawPos=vf2d{rect.pos.x+2,rect.middle().y-labelTextSize.y/2}; //We should at least vertically align here.
}