Jump to content
MakeWebGames

Recommended Posts

Posted

Have put anything up here since the mailbox/event widgets so here's my remodeled gym.

You're unable to view this code.

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

 

You're unable to view this code.

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

 

This is just the layout/workout section. It changes colors based on their rank in each stat. Quick push of the button for amount of energy to spend (which checks their energy level prior to button display).

Kinda basic but it's midnight here and just wanted to put something there for ya. Can't do the whole gym, cause I have about 4 mods running through it >.<

anyways, midnight and I'm going to sleep Zzzzzz

 

Posted

you can cut your code down with the if statements for example you can still use the text inside the {} brackets like this

 

You're unable to view this code.

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

 

can also be done in a switch statement aswell as if and else if look ugly lol

Posted
you can cut your code down with the if statements for example you can still use the text inside the {} brackets like this

You're unable to view this code.

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

can also be done in a switch statement aswell as if and else if look ugly lol

Just FYI, I wouldn't really use Control Structures without curly braces. Not only is it ugly (IMHO), but it's also not PSR compliant. Plus, it's a nightmare for consistency considering that this method will only look for the next expression, if you use curly braces, it will treat everything inside of the if as a grouped expression.

Posted

 

Just FYI, I wouldn't really use Control Structures without curly braces. Not only is it ugly (IMHO), but it's also not PSR compliant. Plus, it's a nightmare for consistency considering that this method will only look for the next expression, if you use curly braces, it will treat everything inside of the if as a grouped expression.

lol was just a suggestion :P but yea i see your point

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...