use of com.talosvfx.talos.editor.widgets.propertyWidgets.EditableLabelWidget in project talos by rockbite.
the class GameObject method getListOfProperties.
@Override
public Array<PropertyWidget> getListOfProperties() {
Array<PropertyWidget> properties = new Array<>();
EditableLabelWidget labelWidget = new EditableLabelWidget("Name", new Supplier<String>() {
@Override
public String get() {
return name;
}
}, new PropertyWidget.ValueChanged<String>() {
@Override
public void report(String value) {
SceneEditorAddon.get().workspace.changeGOName(GameObject.this, value);
}
});
properties.add(labelWidget);
return properties;
}
Aggregations