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:
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user