v0.9.4: fixed a camera zoom error with text input
This commit is contained in:
@@ -38,7 +38,8 @@ public class WndTextInput extends Window {
|
||||
txtTitle.setPos((width - txtTitle.width()) / 2, 2);
|
||||
add(txtTitle);
|
||||
|
||||
TextInput textBox = new TextInput(Chrome.get(Chrome.Type.TOAST_WHITE), multiLine);
|
||||
int textSize = (int)PixelScene.uiCamera.zoom * (multiLine ? 6 : 9);
|
||||
TextInput textBox = new TextInput(Chrome.get(Chrome.Type.TOAST_WHITE), multiLine, textSize);
|
||||
if (initialValue != null) textBox.setText(initialValue);
|
||||
textBox.setMaxLength(maxLength);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user