use of com.talosvfx.talos.editor.nodes.widgets.AbstractWidget in project talos by rockbite.
the class UniformNode method setValue.
public void setValue(float value) {
AbstractWidget val = widgetMap.get("val");
if (val instanceof ValueWidget) {
ValueWidget valueWidget = (ValueWidget) val;
valueWidget.setValue(value);
}
}
use of com.talosvfx.talos.editor.nodes.widgets.AbstractWidget in project talos by rockbite.
the class AbstractShaderNode method write.
@Override
public void write(Json json) {
super.write(json);
json.writeObjectStart("properties");
for (String name : widgetMap.keys()) {
AbstractWidget widget = widgetMap.get(name);
widget.write(json, name);
}
writeProperties(json);
json.writeObjectEnd();
}
Aggregations