Hey guys, I have been trying to add a nametag into minecraft, when u click the name tag, it will show this GUI where u can rename the name tag to name an entity:
function nametaggui(){
var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({ run: function(){
try{
var dialog = new android.app.Dialog(ctx);
var scroll = new android.app.Dialog(ctx);
var tagLayout = new android.widget.LinearLayout(ctx);
var nametagname= new android.widget.EditText(ctx);
var applybtn = new android.widget.Button(ctx);
var exit2 = new android.widget.Button(ctx);
}
catch(e){
for(var i = 30; i > 1; i--)
{
print(""+error);
}
}
}
}));
}
the issue is that a keyboard does show when I click on the space for typing, but u can't type anything into the textbox, if u can fix this, plz leave a comment below telling me how, thx
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
GUI EditText Keyboard