-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
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. |
I'll look into it |
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); |
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.
The latest shadows code that you merged in also added this line above, so you can remove this.
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 { |
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.
Small thing, but we usually put the else on the same line.
That's all my comments. I like the new approach. |
Updated |
Awesome this looks great! |
Add the changes suggested in #3755 and made the pull request to the correct branch this time.