Search in sources :

Example 6 with IPropertyProvider

use of com.talosvfx.talos.editor.widgets.propertyWidgets.IPropertyProvider in project talos by rockbite.

the class GameObject method getPropertyProviders.

@Override
public Iterable<IPropertyProvider> getPropertyProviders() {
    Array<IPropertyProvider> list = new Array<>();
    list.add(this);
    for (IPropertyProvider provider : components) {
        list.add(provider);
    }
    return list;
}
Also used : IPropertyProvider(com.talosvfx.talos.editor.widgets.propertyWidgets.IPropertyProvider)

Example 7 with IPropertyProvider

use of com.talosvfx.talos.editor.widgets.propertyWidgets.IPropertyProvider in project talos by rockbite.

the class PropertyPanelContainer method build.

public void build() {
    container.clear();
    Array<IPropertyProvider> list = new Array<>();
    for (IPropertyProvider provider : providerSet.values()) {
        list.add(provider);
    }
    list.sort(new Comparator<IPropertyProvider>() {

        @Override
        public int compare(IPropertyProvider o1, IPropertyProvider o2) {
            return o1.getPriority() - o2.getPriority();
        }
    });
    panelList.clear();
    for (IPropertyProvider provider : list) {
        PropertiesPanel panel = new PropertiesPanel(provider, getSkin());
        container.add(panel).growX().top().padBottom(5);
        container.row();
        panelList.add(panel);
    }
}
Also used : Array(com.badlogic.gdx.utils.Array) IPropertyProvider(com.talosvfx.talos.editor.widgets.propertyWidgets.IPropertyProvider)

Aggregations

IPropertyProvider (com.talosvfx.talos.editor.widgets.propertyWidgets.IPropertyProvider)7 Array (com.badlogic.gdx.utils.Array)4 PropertiesPanel (com.talosvfx.talos.editor.addons.bvb.PropertiesPanel)1 GameObject (com.talosvfx.talos.editor.addons.scene.logic.GameObject)1 Prefab (com.talosvfx.talos.editor.addons.scene.logic.Prefab)1 FilePropertyProvider (com.talosvfx.talos.editor.addons.scene.utils.FilePropertyProvider)1 PropertyWidget (com.talosvfx.talos.editor.widgets.propertyWidgets.PropertyWidget)1