boionfire81 Posted July 6, 2016 Posted July 6, 2016 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 Quote
NonStopCoding Posted July 6, 2016 Posted July 6, 2016 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 Quote
IllegalPigeon Posted July 6, 2016 Posted July 6, 2016 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. Quote
NonStopCoding Posted July 6, 2016 Posted July 6, 2016 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 Quote
IllegalPigeon Posted July 6, 2016 Posted July 6, 2016 lol was just a suggestion :P but yea i see your point Was just pointing it out! At least now you know :) 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.