Implement main menu with text entry label. Update text entry mode in PGE, removed the ability to jump between saved commands and enter no longer clears or disables text entry by default.

This commit is contained in:
2024-01-01 01:59:41 -06:00
parent cbdd317068
commit dd2146ebda
18 changed files with 250 additions and 27 deletions
+2 -1
View File
@@ -86,9 +86,10 @@ protected:
proportional?
vf2d(game->GetTextSizeProp(label)*adjustedScale):
vf2d(game->GetTextSize(label)*adjustedScale);
float sizeRatio=((labelTextSize*adjustedScale).x)/(rect.size.x-2);
float sizeRatio=(labelTextSize.x)/(rect.size.x-2);
if(sizeRatio>1){
adjustedScale.x/=sizeRatio;
labelTextSize.x/=sizeRatio;
}
}