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

Added graying out for UI options as in #3755 #3761

Merged
merged 5 commits into from
Mar 23, 2016

Conversation

lasalvavida
Copy link
Contributor

Add the changes suggested in #3755 and made the pull request to the correct branch this time.

@lilleyse
Copy link
Contributor

I haven't looked too much into it, but you may be able to utilize knockout to achieve something cleaner. If there's no obvious solution, I'm fine with what you have here.

@lasalvavida
Copy link
Contributor Author

I'll look into it

@lasalvavida
Copy link
Contributor Author

Updated

@@ -144,6 +167,7 @@
Cesium.knockout.getObservable(viewModel, 'cascades').subscribe(updateShadows);
Cesium.knockout.getObservable(viewModel, 'lightSource').subscribe(updateShadows);
Cesium.knockout.getObservable(viewModel, 'size').subscribe(updateSettings);
Cesium.knockout.getObservable(viewModel, 'softShadows').subscribe(updateShadows);
Copy link
Contributor

Choose a reason for hiding this comment

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

The latest shadows code that you merged in also added this line above, so you can remove this.

@lilleyse
Copy link
Contributor

The dropdowns and check-boxes are still interactive when they should be disabled.

if (uiOptions.disable[viewModel.lightSource].indexOf(setting) > -1) {
viewModel[setting + 'Enabled'] = false;
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Small thing, but we usually put the else on the same line.

@lilleyse
Copy link
Contributor

That's all my comments. I like the new approach.

@lasalvavida
Copy link
Contributor Author

Updated

@lilleyse
Copy link
Contributor

Awesome this looks great!

@lilleyse lilleyse closed this Mar 23, 2016
@lilleyse lilleyse reopened this Mar 23, 2016
@lilleyse lilleyse merged commit ce1260f into CesiumGS:shadows Mar 23, 2016
@lilleyse lilleyse deleted the shadows-sandcastle-ui branch March 23, 2016 18:02
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.

2 participants