Skip to content

Use properties for costumes - #36

Merged
Tymewalk merged 17 commits into
masterfrom
newCostumeMethod
Mar 31, 2016
Merged

Tymewalk merged 17 commits into
masterfrom
newCostumeMethod

Conversation

@Tymewalk

Copy link
Copy Markdown
Member

So we don't have to use set functions.

Expands on #34.

So I can start the pull request.
@Tymewalk

Copy link
Copy Markdown
Member Author

The first commit is just so I can create the pull request - I'm working on the new costume methods now.

Just testing this.
@Tymewalk

Copy link
Copy Markdown
Member Author

OK, I've made costumeNumber a property.
@BookOwl, I've never tried that before, I just made it based on your code. Is that right?

Comment thread slither/__init__.py Outdated
def costumeNumber(self, val):
self.setCostumeByName(val)

# TODO: Fix these

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I think that what has to be done here is all the checks and stuff done in setCostumeByNumber/Name go into recalculateCostumeNumber/Name functions.
Seems 'simple'.

@Tymewalk Tymewalk self-assigned this Mar 30, 2016
@Tymewalk Tymewalk mentioned this pull request Mar 30, 2016
@BookOwl

BookOwl commented Mar 31, 2016

Copy link
Copy Markdown
Member

When do you think this will be ready?

@Tymewalk

Copy link
Copy Markdown
Member Author

@BookOwl I completely forgot about this. There's not that much left to do, though, so it shouldn't be too hard.
Then we can release 0.2.0 (#44).

@Tymewalk

Copy link
Copy Markdown
Member Author

Strange... my local Slither repo doesn't have this branch?

@BookOwl

BookOwl commented Mar 31, 2016

Copy link
Copy Markdown
Member

Strange... my local Slither repo doesn't have this branch?

That's weird.

@BookOwl

BookOwl commented Mar 31, 2016

Copy link
Copy Markdown
Member

It's not in mine either. :/

@Tymewalk

Copy link
Copy Markdown
Member Author

OK... I'll just try rewriting __init__.py to remove the conflicts. Then I'll just push to newCostumeMethod

… into newCostumeMethod

Yeah, I messed my local repo up bad.
But this fixes the conflicts so I can finish this...
Hooray...?
Conflicts:
	slither/__init__.py
@Tymewalk

Copy link
Copy Markdown
Member Author

AGH WHY DOES MERGING ALWAYS MESS UP

@Tymewalk

Copy link
Copy Markdown
Member Author

Anyways, the conflicts look to be fixed.

@BookOwl

BookOwl commented Mar 31, 2016

Copy link
Copy Markdown
Member

Great!

@BookOwl BookOwl mentioned this pull request Mar 31, 2016
So this should do it... hopefully.
@Tymewalk

Copy link
Copy Markdown
Member Author

Alright @BookOwl, how does it look?

@BookOwl

BookOwl commented Mar 31, 2016

Copy link
Copy Markdown
Member

@Tymewalk looks good to me!

@Tymewalk

Copy link
Copy Markdown
Member Author

Don't merge it - I found another problem.

@BookOwl

BookOwl commented Mar 31, 2016

Copy link
Copy Markdown
Member

@Tymewalk ok, I'll let you merge when you finish

It's better this way.
Just something I did while checking to see if there's any other errors.
@Tymewalk

Copy link
Copy Markdown
Member Author

Done. There's no more errors. I'm merging now and then we can get to work on #44.

@Tymewalk
Tymewalk merged commit 58db21a into master Mar 31, 2016
@BookOwl

BookOwl commented Mar 31, 2016

Copy link
Copy Markdown
Member

Deleting newCostumeMethod

@BookOwl
BookOwl deleted the newCostumeMethod branch March 31, 2016 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants