Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Adds CameraOrthoPrefab #1188

Merged
merged 1 commit into from
Dec 1, 2018
Merged

Adds CameraOrthoPrefab #1188

merged 1 commit into from
Dec 1, 2018

Conversation

mtsr
Copy link
Contributor

@mtsr mtsr commented Nov 27, 2018

I wanted to be able to set the CameraOrtho world coordinates in a Prefab, so I created a quick CameraOrthoPrefab.

Copy link
Contributor

@AnneKitsune AnneKitsune left a comment

Choose a reason for hiding this comment

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

Normally you should be able to derive PrefabData for this using the macro. @Rhuagh ?

@@ -86,6 +89,35 @@ impl Component for CameraOrtho {
type Storage = DenseVecStorage<Self>;
}

/// CameraOrtho prefab
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to have a tiny bit more doc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Heh, I'lll try the derive. Hadn't seen that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think it still needs docs if it's just a derive?

Copy link
Member

@azriel91 azriel91 left a comment

Choose a reason for hiding this comment

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

Btw, can you add an entry to the changelog? Thanks!

Copy link
Contributor

@AnneKitsune AnneKitsune left a comment

Choose a reason for hiding this comment

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

You also need to add a link to your PR under the Fixed section of the changelog like this:

[#1188]: https://github.com/amethyst/amethyst/pull/1188

@mtsr mtsr force-pushed the camera_ortho_prefab branch 2 times, most recently from 7c1f1d6 to 6fb32ea Compare November 28, 2018 08:01
Copy link
Member

@torkleyy torkleyy left a comment

Choose a reason for hiding this comment

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

This looks good to me! I'd say let's merge this.
cc @amethyst/engine-devs

@torkleyy torkleyy added type: improvement An improvement or change to an existing feature. team: assets status: ready labels Dec 1, 2018
@torkleyy
Copy link
Member

torkleyy commented Dec 1, 2018

@mtsr Unfortunately there's a conflict with the changelog (yes, this happens too often, I'll fix it soon). Would you mind rebasing this PR so we can merge it?

@mtsr
Copy link
Contributor Author

mtsr commented Dec 1, 2018

Just rebased it.

@LucioFranco
Copy link
Member

LucioFranco commented Dec 1, 2018

Thanks! 👍

bors r=azriel91,jojolepro

bors bot added a commit that referenced this pull request Dec 1, 2018
1188: Adds CameraOrthoPrefab r=azriel91,jojolepro a=mtsr

I wanted to be able to set the CameraOrtho world coordinates in a Prefab, so I created a quick CameraOrthoPrefab.

Co-authored-by: Jonas Matser <jonas@jonasmatser.nl>
@bors
Copy link
Contributor

bors bot commented Dec 1, 2018

Build succeeded

@bors bors bot merged commit 753a742 into amethyst:master Dec 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team: assets type: improvement An improvement or change to an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants