The title says everything. This is a sprint&sneak mod! It also uses a costum gui to make everything better.
Sprinting Tap the running stickman button to make you sprint. You can only sprint when you have a least 5 hearts.
Sneaking Tap the other button next to the sprinting button to activate sneaking(the image needs tweaking) you can sneak at any time.
How to use Download the zip file and patch the js file. Take the folder named sprint&sneak thats in the zip file and put it in the root of your sdcard.
If youre asking how he did it:
He created a variable for a bitmap object (and the url in the brackets is the link to the file you want to make a bitmap object).
var img1 = new android.graphics.BitmapFactory.decodeFile("mnt/sdcard/sprint&sneak/sprint.png");
He then created another variable which is a drawable that wraps the bitmap object:
var sp = new android.graphics.drawable.BitmapDrawable(img1);
and then when actually coding the button he added the code below which sets the bitmap object as the background for the button:
btn.setBackgroundDrawable(sp);
It's hard to explain, you should look into android development, and it'd make coding GUI alot easier for you.
PS: Also in the thread title you spelt "costum" wrong. It should be custom. Also @the OP, I like your trainer gold skin.
If youre asking how he did it:
He created a variable for a bitmap object (and the url in the brackets is the link to the file you want to make a bitmap object).
var img1 = new android.graphics.BitmapFactory.decodeFile("mnt/sdcard/sprint&sneak/sprint.png");
He then created another variable which is a drawable that wraps the bitmap object:
var sp = new android.graphics.drawable.BitmapDrawable(img1);
and then when actually coding the button he added the code below which sets the bitmap object as the background for the button:
btn.setBackgroundDrawable(sp);
It's hard to explain, you should look into android development, and it'd make coding GUI alot easier for you.
PS: Also in the thread title you spelt "costum" wrong. It should be custom. Also @the OP, I like your trainer gold skin.
For as much as Android Development is good to learn, it isn't just about creating custom UI's. Also, am I the only person who uses ImageView's?
Rollback Post to RevisionRollBack
I'M BACK!
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]
For as much as Android Development is good to learn, it isn't just about creating custom UI's. Also, am I the only person who uses ImageView's?
Probably. xD
I actually want to see if I can create a gui mod with images that'd be fun.
Yeah true, but alot of the things you learn from android development, the experience/knowledge can transfer to modding.
If youre asking how he did it:
He created a variable for a bitmap object (and the url in the brackets is the link to the file you want to make a bitmap object).
var img1 = new android.graphics.BitmapFactory.decodeFile("mnt/sdcard/sprint&sneak/sprint.png");
He then created another variable which is a drawable that wraps the bitmap object:
var sp = new android.graphics.drawable.BitmapDrawable(img1);
and then when actually coding the button he added the code below which sets the bitmap object as the background for the button:
btn.setBackgroundDrawable(sp);
It's hard to explain, you should look into android development, and it'd make coding GUI alot easier for you.
PS: Also in the thread title you spelt "costum" wrong. It should be custom. Also @the OP, I like your trainer gold skin.
Whoops lol I will fix that and so you noticed the skin thanks!
Probably. xD
I actually want to see if I can create a gui mod with images that'd be fun.
Yeah true, but alot of the things you learn from android development, the experience/knowledge can transfer to modding.
If I could describe this mod, I'd say that this mod is ABSO-FREAKING-LUTELY THE MOST PHENOMENAL SPRINT MOD I HAVE EVER USED.
The images fit the mod, relates to how you can't run in real life because you get too tired, everything is perfect! But there is one problem. The buttons are a bit too small. But other than that, this mod is amazing. You get a +1 and a follow, and a friend.
Rollback Post to RevisionRollBack
Buy some banners, renders, and profile pics from me here: bit.ly/NeKroGFX
If I could describe this mod, I'd say that this mod is ABSO-FREAKING-LUTELY THE MOST PHENOMENAL SPRINT MOD I HAVE EVER USED.
The images fit the mod, relates to how you can't run in real life because you get too tired, everything is perfect! But there is one problem. The buttons are a bit too small. But other than that, this mod is amazing. You get a +1 and a follow, and a friend.
Thank you! And you really think the buttons are too small? Ok I will make them bigger
For as much as Android Development is good to learn, it isn't just about creating custom UI's. Also, am I the only person who uses ImageView's?
No. I'm an android developer as well. ImageViews are a big part of Android Development. I actually use ImageViews all the time when it comes to making graphics.
No. I'm an android developer as well. ImageViews are a big part of Android Development. I actually use ImageViews all the time when it comes to making graphics.
ImageViews are a lot easier.
var iv = new android.widget.ImageView(ctx);
iv.setImageBitmap(bitmap);
//or
iv.setImageDrawable(drawable);
Yes but then how am I going to set the image on the button?
Because I tryed doing that but it made a image that you couldn't use like a button (I am not good at java).
Yes but then how am I going to set the image on the button?
Because I tryed doing that but it made a image that you couldn't use like a button (I am not good at java).
A view already has an onClick method built in. All views have an onClickListener.
A view already has an onClick method built in. All views have an onClickListener.
Yep. And I prefer ImageViews as well, because you can set a different image to each view, rather then have one image for the whole PopupWindow.
Rollback Post to RevisionRollBack
I'M BACK!
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]
There could be 2 problems
1. You messed up on putting the gui images in the right place. When you download the zip there should be, inside the zip file, a folder labeled sprint&sneak and a js file named the same thing. Patch the js file through blocklauncher and move the folder to your sdcard (in your device not on a real sdcard that looks like a micro chip).
2. Your screen is really small and I would have to fix it.
Actually I just relized your device is a tablet so its probably problem 1 so as I used a 7 inch tablet to make this mod.
The title says everything. This is a sprint&sneak mod! It also uses a costum gui to make everything better.
Sprinting
Tap the running stickman button to make you sprint. You can only sprint when you have a least 5 hearts.
Sneaking
Tap the other button next to the sprinting button to activate sneaking(the image needs tweaking) you can sneak at any time.
How to use
Download the zip file and patch the js file. Take the folder named sprint&sneak thats in the zip file and put it in the root of your sdcard.
Download
http://goo.gl/FxUOml
Screenshot(while sneaking is turned on)
Please give a +1 if you like this mod and it would be awsome if someone did a mod review on it
Link:
http://www.minecraft.../#entry29816329
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIf youre asking how he did it:
He created a variable for a bitmap object (and the url in the brackets is the link to the file you want to make a bitmap object).
var img1 = new android.graphics.BitmapFactory.decodeFile("mnt/sdcard/sprint&sneak/sprint.png");
He then created another variable which is a drawable that wraps the bitmap object:
var sp = new android.graphics.drawable.BitmapDrawable(img1);
and then when actually coding the button he added the code below which sets the bitmap object as the background for the button:
btn.setBackgroundDrawable(sp);
It's hard to explain, you should look into android development, and it'd make coding GUI alot easier for you.
PS: Also in the thread title you spelt "costum" wrong. It should be custom. Also @the OP, I like your trainer gold skin.
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
For as much as Android Development is good to learn, it isn't just about creating custom UI's. Also, am I the only person who uses ImageView's?
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]
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI actually want to see if I can create a gui mod with images that'd be fun.
Yeah true, but alot of the things you learn from android development, the experience/knowledge can transfer to modding.
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Whoops lol I will fix that and so you noticed the skin thanks!
Just like how Hexdro said.
I found imageviews kinda confusing
Link:
http://www.minecraft.../#entry29816329
The images fit the mod, relates to how you can't run in real life because you get too tired, everything is perfect! But there is one problem. The buttons are a bit too small. But other than that, this mod is amazing. You get a +1 and a follow, and a friend.
Buy some banners, renders, and profile pics from me here: bit.ly/NeKroGFX
Thank you! And you really think the buttons are too small? Ok I will make them bigger
Well ok what mod are you making?
Link:
http://www.minecraft.../#entry29816329
Screenshot:
Link:
http://www.minecraft.../#entry29816329
No. I'm an android developer as well. ImageViews are a big part of Android Development. I actually use ImageViews all the time when it comes to making graphics.
ImageViews are a lot easier.
Yes but then how am I going to set the image on the button?
Because I tryed doing that but it made a image that you couldn't use like a button (I am not good at java).
Link:
http://www.minecraft.../#entry29816329
A view already has an onClick method built in. All views have an onClickListener.
Yep. And I prefer ImageViews as well, because you can set a different image to each view, rather then have one image for the whole PopupWindow.
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]
Ohhh silly me
Link:
http://www.minecraft.../#entry29816329
Link:
http://www.minecraft.../#entry29816329
There could be 2 problems
1. You messed up on putting the gui images in the right place. When you download the zip there should be, inside the zip file, a folder labeled sprint&sneak and a js file named the same thing. Patch the js file through blocklauncher and move the folder to your sdcard (in your device not on a real sdcard that looks like a micro chip).
2. Your screen is really small and I would have to fix it.
Actually I just relized your device is a tablet so its probably problem 1 so as I used a 7 inch tablet to make this mod.
Link:
http://www.minecraft.../#entry29816329
Dont know if its a lot to ask, but can you do a mod review on it because your mod reviews are awsome
[Edit] srry thought you were xDarkAbsolute the profile gif fooled me.
Link:
http://www.minecraft.../#entry29816329