Skip to content
Permalink
Browse files

Updated API dev tools to API version 6

  • Loading branch information...
Eduard Mueller
Eduard Mueller committed Aug 27, 2019
1 parent 516d756 commit 6f14deff6203c20977501e8b7df9cdce1fa10856
@@ -191,7 +191,7 @@ renoise.tool().app_became_active_observable:add_notifier(function()
handle_app_became_active_notification()
end)

-- Invoked, as soon as the application loses focus, another app
-- Invoked, as soon as the application looses focus, another app
-- became the foreground window.
renoise.tool().app_resigned_active_observable:add_notifier(function()
handle_app_resigned_active_notification()
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<RenoiseScriptingTool doc_version="0">
<ApiVersion>5</ApiVersion>
<ApiVersion>6</ApiVersion>
<Id>com.renoise.ExampleTool</Id>
<Version>1.0</Version>
<Author>taktik [taktik@renoise.com]</Author>
@@ -1321,13 +1321,14 @@ function handle_key_events()
vb:multiline_text {
id = "key_text",
width = TEXT_ROW_WIDTH,
height = 78,
height = 92,
paragraphs = {
"key.state:",
"key.name:",
"key.modifiers:",
"key.character:",
"key.note:",
"key.repeat:"
"key.repeat:",
},
font = "mono",
}
@@ -1338,6 +1339,7 @@ function handle_key_events()

-- update key_text to show what we got
vb.views.key_text.paragraphs = {
("key.state: '%s'"):format(key.state or "nil"),
("key.name: '%s'"):format(key.name),
("key.modifiers: '%s'"):format(key.modifiers),
("key.character: '%s'"):format(key.character or "nil"),
@@ -1351,9 +1353,14 @@ function handle_key_events()
end
end

-- handler options
local options = {
send_key_repeat = true,
send_key_release = true
}
-- show a dialog as usual, but this time also pass a keyboard handler ref
renoise.app():show_custom_dialog(
"Handling Keyboard Events", content_view, key_handler)
"Handling Keyboard Events", content_view, key_handler, options)

end

@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<RenoiseScriptingTool>
<ApiVersion>5.0</ApiVersion>
<RenoiseScriptingTool doc_version="0">
<ApiVersion>6</ApiVersion>
<Id>com.renoise.ExampleToolGui</Id>
<Version>1.0</Version>
<Name>Renoise ViewBuilder API Example</Name>
<Author>taktik [taktik@renoise.com]</Author>
<Description>A XRNX tool which describes step by step how to create custom GUIs for your Renoise XRNX tools. Please have a look at the source files of this tool (manifest.xml and main.lua) for more info. Also creates a new menu 'Example Tool GUI' in the global 'Tools' menu.</Description>
<Name>Renoise ViewBuilder API Example</Name>
<Category>Tool Development</Category>
<Description>A XRNX tool which describes step by step how to create custom GUIs for your Renoise XRNX tools. Please have a look at the source files of this tool (manifest.xml and main.lua) for more info. Also creates a new menu 'Example Tool GUI' in the global 'Tools' menu.</Description>
<Homepage>http://scripting.renoise.com</Homepage>
</RenoiseScriptingTool>

@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<RenoiseScriptingTool>
<ApiVersion>5.0</ApiVersion>
<Version>1.0</Version>
<RenoiseScriptingTool doc_version="0">
<ApiVersion>6</ApiVersion>
<Id>com.renoise.ExampleToolSlicedProcess</Id>
<Version>1.0</Version>
<Author>taktik [taktik@renoise.com]</Author>
<Category>Tool Development</Category>
<Name>Renoise Scripting Tool Example</Name>
<Category>Tool Development</Category>
<Description>Example tool that shows how to use coroutines to slice up processing functions.</Description>
</RenoiseScriptingTool>

0 comments on commit 6f14def

Please sign in to comment.
You can’t perform that action at this time.