v0.9.4: overhauled text input, now multiplatform using libGDX textField
This commit is contained in:
@@ -160,22 +160,6 @@ public class AndroidPlatformSupport extends PlatformSupport {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void promptTextInput(final String title, final String hintText, final int maxLen, final boolean multiLine, final String posTxt, final String negTxt, final TextCallback callback) {
|
||||
Game.runOnRenderThread( new Callback() {
|
||||
@Override
|
||||
public void call() {
|
||||
Game.scene().addToFront(new WndAndroidTextInput(title, hintText, maxLen, multiLine, posTxt, negTxt) {
|
||||
@Override
|
||||
protected void onSelect(boolean positive) {
|
||||
callback.onSelect(positive, getText());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/* FONT SUPPORT */
|
||||
|
||||
//droid sans / roboto, or a custom pixel font, for use with Latin and Cyrillic languages
|
||||
|
||||
Reference in New Issue
Block a user