mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 11:50:02 +01:00
Patch for UI
This commit is contained in:
@@ -8,11 +8,18 @@ function AddStep(ref, image, name, o) {
|
||||
o.container = o_.container || ref.options.selector;
|
||||
o.image = image;
|
||||
|
||||
var UI = ref.UI({
|
||||
o.identity = {
|
||||
stepName: o.name,
|
||||
stepID: o.number,
|
||||
imageName: o.image
|
||||
});
|
||||
};
|
||||
o.UIFs = ref.UI();
|
||||
var UI = {
|
||||
onSetup: function(){o.UIFs.onSetup(o.identity);},
|
||||
onDraw: function(){o.UIFs.onSetup(o.identity);},
|
||||
onComplete: function(out){o.UIFs.onSetup(o.identity,out);},
|
||||
onRemove: function(){o.UIFs.onSetup(o.identity);},
|
||||
}
|
||||
var module = ref.modules[name](o,UI);
|
||||
ref.images[image].steps.push(module);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user