Skip to content

Commit

Permalink
Update smandrap_Search Tracks.lua
Browse files Browse the repository at this point in the history
Add pre-post actions count
  • Loading branch information
smandrap committed Mar 4, 2024
1 parent 014d03b commit 0a40aa7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Tracks/smandrap_Search Tracks.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
-- @description Search Tracks
-- @author smandrap
-- @version 1.7.2
-- @version 1.7.3
-- @donation https://paypal.me/smandrap
-- @changelog
-- + Add rudimentary support for Pre-Post Actions, defined insde the script.
-- + Add rudimentary support for pre-post actions (default: disabled)
-- # Display pre-post actions count in settings (that's exquisite UI work here lol)
--
-- @about
-- Cubase style track search with routing capabilities


--------------------------------------
------- USER AREA --------------------
--------------------------------------
Expand All @@ -31,6 +32,7 @@ PRE_ACTIONS = {


PRE_ACTIONS = {

}

POST_ACTIONS = {
Expand Down Expand Up @@ -62,7 +64,7 @@ local normal_cursor = js_api and reaper.JS_Mouse_LoadCursor(0)


local settings = {
version = '1.7.2',
version = '1.7.3',
uncollapse_selection = false,
show_in_tcp = true,
show_in_mcp = false,
Expand All @@ -73,8 +75,8 @@ local settings = {
hide_titlebar = false,
use_routing_cursor = true,
dim_hidden_tracks = true,
do_pre_actions = false,
do_post_actions = false
do_pre_actions = true,
do_post_actions = true
}

----------------------
Expand Down Expand Up @@ -409,8 +411,8 @@ local function DrawSettingsMenu()
reaper.ImGui_EndTooltip(ctx)
end
end
_, settings.do_pre_actions = reaper.ImGui_MenuItem(ctx, 'Pre-actions', nil, settings.do_pre_actions)
_, settings.do_post_actions = reaper.ImGui_MenuItem(ctx, 'Post-actions', nil, settings.do_post_actions)
_, settings.do_pre_actions = reaper.ImGui_MenuItem(ctx, 'Pre-actions ('..#PRE_ACTIONS..')', nil, settings.do_pre_actions)
_, settings.do_post_actions = reaper.ImGui_MenuItem(ctx, 'Post-actions ('..#POST_ACTIONS..')', nil, settings.do_post_actions)


reaper.ImGui_Separator(ctx)
Expand Down

0 comments on commit 0a40aa7

Please sign in to comment.