Search in sources :

Example 1 with PropertiesPanel

use of com.talosvfx.talos.editor.addons.bvb.PropertiesPanel in project talos by rockbite.

the class PropertyPanel 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();
    providerPanelMap.clear();
    for (IPropertyProvider provider : list) {
        PropertiesPanel panel = new PropertiesPanel(provider, getSkin());
        container.add(panel).growX().top().padBottom(5);
        container.row();
        panelList.add(panel);
        providerPanelMap.put(provider, panel);
    }
}
Also used : Array(com.badlogic.gdx.utils.Array) PropertiesPanel(com.talosvfx.talos.editor.addons.bvb.PropertiesPanel) IPropertyProvider(com.talosvfx.talos.editor.widgets.propertyWidgets.IPropertyProvider)

Aggregations

Array (com.badlogic.gdx.utils.Array)1 PropertiesPanel (com.talosvfx.talos.editor.addons.bvb.PropertiesPanel)1 IPropertyProvider (com.talosvfx.talos.editor.widgets.propertyWidgets.IPropertyProvider)1