Jump to content
MakeWebGames

Recommended Posts

Posted

Heres a small fix for those using the 150 energy bar mod. Some will have noticed that when its changed from 100-150 the bar stretches and becomes longer than the other bars.

This small fix will make the energy bar stay at 100 lenght no matter what size the bar is.. open header.php and add this before PRINT <<<OUT section for where your energy bar is..

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now alter your image part of the bar to read

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Change the img llink to that of your own...

Your energy bar wont overstretch anymore

You can apply the same rule for the other bars but make sure you change the energy and maxenergy to the bar your editing...

Posted

Re: [MCCODES V2] Fix Overstreteched Stat Bars

This is nice +1 but do you think you could do something else like this... soo lets say a user has 10/10 brave their brave bar will be 100% maxed out, but if they have 20/10 brave then their brave bar will be double size, is there a way of reducing it so it is the same size as 10/10?

Thanks for reading, +1 again ;)

Edit: I figured it out, here goes :D

find:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then under it add...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Thats with brave, just repeat that with the other and change the "br" to the other begining letters of each bar and you should be fine :D

Posted

Re: [MCCODES V2] Fix Overstreteched Stat Bars

 

This is nice +1 but do you think you could do something else like this... soo lets say a user has 10/10 brave their brave bar will be 100% maxed out, but if they have 20/10 brave then their brave bar will be double size, is there a way of reducing it so it is the same size as 10/10?

Thanks for reading, +1 again ;)

Just make an if statement.

if(users_energy >= users_max_energy)

{

print full energy bar

}

else

{

regular energy bar

}

Posted

Re: [MCCODES V2] Fix Overstreteched Stat Bars

 

This is nice +1 but do you think you could do something else like this... soo lets say a user has 10/10 brave their brave bar will be 100% maxed out, but if they have 20/10 brave then their brave bar will be double size, is there a way of reducing it so it is the same size as 10/10?

Thanks for reading, +1 again ;)

Just make an if statement.

if(users_energy >= users_max_energy)

{

print full energy bar

}

else

{

regular energy bar

}

Umm... Sorry but i already did it :P just ready again :) but thanks anyway

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...