Add Logarithmic sliders and Color picker (#1564)

* Pass ViewOptions meta data to WebUi

* Add Color ViewOption

* Add Logarithmic ViewOption

* Update gui hash to get slider and color picker UI features
This commit is contained in:
Emma Broman
2021-04-27 09:24:36 +02:00
committed by GitHub
parent 4353741c54
commit 8a30dc570e
13 changed files with 60 additions and 49 deletions

View File

@@ -153,9 +153,11 @@ RenderablePlane::RenderablePlane(const ghoul::Dictionary& dictionary)
}
_multiplyColor = p.multiplyColor.value_or(_multiplyColor);
_multiplyColor.setViewOption(properties::Property::ViewOptions::Color);
addProperty(_billboard);
_size.setViewOption(properties::Property::ViewOptions::Logarithmic);
addProperty(_size);
_size.onChange([this](){ _planeIsDirty = true; });