New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed rotation to CW to match regular Bob behaviour #3
Conversation
@@ -84,7 +84,7 @@ | |||
cw: clockwise rotation | |||
ccw: counterclockwise rotation | |||
The amount of rotation is always 90°. Only required for supportsRotation=true --> | |||
<rotationDirection>ccw</rotationDirection> | |||
<rotationDirection>cw</rotationDirection> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By doing this, it matches the rest of the layout+code in Bob/Editor
|
||
<!-- Exporter version --> | ||
<version>1.0</version> | ||
<version>1.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, we have the version number in two places.
SHould investigate if we can get this number in the exporter script.
out.rotated = srcSprite.getRotated(); | ||
boolean rotated = srcSprite.getRotated(); | ||
|
||
out.setName(srcSprite.getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the setters api.
// For legacy reasons, the other bob code wants it already rotated | ||
if (rotated) | ||
{ | ||
width = originalSize.getHeight(); | ||
height = originalSize.getWidth(); | ||
} | ||
else | ||
{ | ||
width = originalSize.getWidth(); | ||
height = originalSize.getHeight(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another fix that highlights that we still have some more stuff to stream line to avoid extra confusion.
No description provided.