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;
}
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);
}
}
Aggregations