use of com.talosvfx.talos.editor.data.ModuleWrapperGroup in project talos by rockbite.
the class ModuleBoardWidget method setCurrentEmitter.
public void setCurrentEmitter(ParticleEmitterWrapper currentEmitterWrapper) {
this.currentEmitterWrapper = currentEmitterWrapper;
groupContainer.clearChildren();
moduleContainer.clearChildren();
if (this.currentEmitterWrapper == null)
return;
for (ModuleWrapper wrapper : getModuleWrappers()) {
moduleContainer.addActor(wrapper);
}
for (ModuleWrapperGroup group : getGroups()) {
groupContainer.addActor(group);
}
resetCameraToWorkspace();
}
use of com.talosvfx.talos.editor.data.ModuleWrapperGroup in project talos by rockbite.
the class ModuleBoardWidget method createGroupForWrappers.
public ModuleWrapperGroup createGroupForWrappers(ObjectSet<ModuleWrapper> wrappers) {
if (wrappers == null || wrappers.size == 0)
return null;
for (ModuleWrapperGroup other : getGroups()) {
other.removeWrappers(wrappers);
}
ModuleWrapperGroup group = new ModuleWrapperGroup(mainStage.getSkin());
group.setWrappers(wrappers);
getGroups().add(group);
groupContainer.addActor(group);
TalosMain.Instance().ProjectController().setDirty();
clearSelection();
return group;
}
Aggregations