Skip to content
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

Feature draw #80

Merged
merged 12 commits into from
Jan 10, 2020
Merged

Feature draw #80

merged 12 commits into from
Jan 10, 2020

Conversation

ipiv
Copy link
Contributor

@ipiv ipiv commented Dec 11, 2019

Some basic drawing features.
(2D - draw in front of camera, 3D - draw so that objects stick to the field object even when in free cam) - Wasn't sure how to name these modes.

#41

@dtracers
Copy link
Member

Can you submit a screenshot example of eah?

@ipiv
Copy link
Contributor Author

ipiv commented Dec 13, 2019

Can you submit a screenshot example of eah?

It would be hard to explain the difference in screenshots...

@ipiv ipiv marked this pull request as ready for review December 18, 2019 14:23
@@ -1,8 +1,8 @@
import { ReplayData } from "../../models/ReplayData"
import { ReplayMetadata } from "../../models/ReplayMetadata"

const fetchByURL = (url: string) =>
fetch(url, {
const fetchByURL = (url: string, local?: boolean) =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file changes were just to make fewer network calls while testing.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should make it a prop that is passed in by the host?
That way we can change it as needed in the future?
Especially options as we use it in more and more different places.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@ipiv ipiv Dec 24, 2019

Choose a reason for hiding this comment

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

Get's a bit tricky when you are in dev and want to load a different replay, instead of just changing local variable to false or not passing it at all:

  • you would need to stop the webpack server
  • run webpack-dev-server manually without "--mode development" argument

edit: it turns out that running running without "--mode development" NODE_ENV is still set to development. I needed to specify "--mode production" to get it to be set to production.

@dtracers dtracers merged commit 838b612 into SaltieRL:master Jan 10, 2020
@ipiv ipiv deleted the feature-draw branch May 17, 2020 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants