Search in sources :

Example 6 with ModuleWrapperGroup

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();
}
Also used : ModuleWrapperGroup(com.talosvfx.talos.editor.data.ModuleWrapperGroup)

Example 7 with ModuleWrapperGroup

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;
}
Also used : ModuleWrapperGroup(com.talosvfx.talos.editor.data.ModuleWrapperGroup)

Aggregations

ModuleWrapperGroup (com.talosvfx.talos.editor.data.ModuleWrapperGroup)7 ParticleEmitterWrapper (com.talosvfx.talos.editor.ParticleEmitterWrapper)2 ModuleWrapper (com.talosvfx.talos.editor.wrappers.ModuleWrapper)2 Color (com.badlogic.gdx.graphics.Color)1 Array (com.badlogic.gdx.utils.Array)1 IntMap (com.badlogic.gdx.utils.IntMap)1 ObjectSet (com.badlogic.gdx.utils.ObjectSet)1 ReflectionException (com.badlogic.gdx.utils.reflect.ReflectionException)1 ModuleBoardWidget (com.talosvfx.talos.editor.widgets.ui.ModuleBoardWidget)1 ParticleEmitterDescriptor (com.talosvfx.talos.runtime.ParticleEmitterDescriptor)1 ConnectionData (com.talosvfx.talos.runtime.serialization.ConnectionData)1