This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Quote from EnderGaming135 Want this in blockluancher or a mod? Anyway PM me and we can discuss it there. Ok?
Quote from MattdaveMatt can i join in? I need help with a GUI button. no matter who helps me. no script for GUI works. Please add me to the convo. Thanks! ~MattdaveMatt
var GUI; var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); function newLevel(){ ctx.runOnUiThread(new java.lang.Runnable(){ run: function(){ try{ GUI = new android.widget.PopupWindow(); var layout = new android.widget.LinearLayout(ctx); var btn = new android.widget.Button(ctx); btn.setText("EXPLODE"); layout.setOrientation(android.widget.LinearLayout.VERTICAL); layout.setGravity(android.view.Gravity.RIGHT); layout.addView(btn); GUI.setContentView(layout); GUI.setHeight(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT); GUI.setWidth(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT); GUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.BOTTOM | android.view.Gravity.RIGHT, 0, 0); btn.setOnClickListener(new android.view.View.OnClickListener(){ onClick: function(view){ clientMessage("Hello World!"); } }); } catch (e){ print ("Error: "+ e) } }}); } function leaveGame(){ ctx.runOnUiThread(new java.lang.Runnable(){ run: function(){ if(GUI != null){ GUI.dismiss(); } } }); }
Quote from The5heep Here's the code to a button on the bottom right hand corner and says test: var GUI; var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); function newLevel(){ ctx.runOnUiThread(new java.lang.Runnable(){ run: function(){ try{ GUI = new android.widget.PopupWindow(); var layout = new android.widget.LinearLayout(ctx); var btn = new android.widget.Button(ctx); btn.setText("EXPLODE"); layout.setOrientation(android.widget.LinearLayout.VERTICAL); layout.setGravity(android.view.Gravity.RIGHT); layout.addView(btn); GUI.setContentView(layout); GUI.setHeight(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT); GUI.setWidth(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT); GUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.BOTTOM | android.view.Gravity.RIGHT, 0, 0); btn.setOnClickListener(new android.view.View.OnClickListener(){ onClick: function(view){ clientMessage("Hello World!"); } }); } catch (e){ print ("Error: "+ e) } }}); } function leaveGame(){ ctx.runOnUiThread(new java.lang.Runnable(){ run: function(){ if(GUI != null){ GUI.dismiss(); } } }); } There you go I will put the code in a file if I get 10 +1's!
Quote from The5heep I added a download OK?
Quote from BeATz_UnKNoWN Do you guys see TBPM's GUI mods on the forums or are you blind. This was asked 2 months ago...
Quote from Lambo_car16 No one would even want I download, as we could just copy and paste. Yes, I know.
Quote from BeATz_UnKNoWN Or make it ourselves.
Why we call TBPM ?-Three boys play minecraft
Awesomeeee!
can i join in? I need help with a GUI button. no matter who helps me. no script for GUI works.
Thanks!
~MattdaveMatt
Same, GUI is so frustrating!
I am secretly a modder, who works only for himself, seldom publishes.
var GUI; var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); function newLevel(){ ctx.runOnUiThread(new java.lang.Runnable(){ run: function(){ try{ GUI = new android.widget.PopupWindow(); var layout = new android.widget.LinearLayout(ctx); var btn = new android.widget.Button(ctx); btn.setText("EXPLODE"); layout.setOrientation(android.widget.LinearLayout.VERTICAL); layout.setGravity(android.view.Gravity.RIGHT); layout.addView(btn); GUI.setContentView(layout); GUI.setHeight(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT); GUI.setWidth(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT); GUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.BOTTOM | android.view.Gravity.RIGHT, 0, 0); btn.setOnClickListener(new android.view.View.OnClickListener(){ onClick: function(view){ clientMessage("Hello World!"); } }); } catch (e){ print ("Error: "+ e) } }}); } function leaveGame(){ ctx.runOnUiThread(new java.lang.Runnable(){ run: function(){ if(GUI != null){ GUI.dismiss(); } } }); }There you go
Download: https://www.dropbox.com/s/k9wsgavyf0yoioo/BUTTON.js
Please click that little green button down there to if I helped!
We can put this code in a file ourself.
Please click that little green button down there to if I helped!
Please click that little green button down there to if I helped!
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
Or make it ourselves.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
Please click that little green button down there to if I helped!