mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Adding the possibility to test new Effects ... (#282)
* Update effects_configurator.html * Update content_effectsconfigurator.js * Update hyperion.js * Update de.json * Add argument QString "pythonScript" to runEffect function * Update Hyperion.h * Update EffectEngine.cpp * Update Hyperion.cpp * Update JsonClientConnection.cpp * Update schema-effect.json
This commit is contained in:
committed by
brindosch
parent
864538f188
commit
08dfec20c5
@@ -48,6 +48,30 @@ $(hyperion).one("cmd-config-getschema", function(event) {
|
||||
|
||||
});
|
||||
|
||||
$('#btn_test').off().on('click',function() {
|
||||
|
||||
effectName = $('#name-input').val();
|
||||
if (effectName == "")
|
||||
{
|
||||
showInfoDialog('error','INVALID NAME FIELD','Effect name is empty! Please fill in a name and try again.')
|
||||
}
|
||||
else
|
||||
{
|
||||
var errors = effects_editor.validate();
|
||||
if(errors.length)
|
||||
{
|
||||
showInfoDialog('error','INVALID VALUES','Please check for red marked inputs and try again.')
|
||||
}
|
||||
else
|
||||
{
|
||||
var args = effects_editor.getEditor('root.args');
|
||||
requestTestEffect(effectName, ":/effects/" + effectPy.slice(1), JSON.stringify(args.getValue()));
|
||||
showInfoDialog('success','SUCCESS!','Your effect has been started!')
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$(document).ready( function() {
|
||||
requestServerConfigSchema();
|
||||
});
|
||||
|
Reference in New Issue
Block a user