Skip to content

Commit

Permalink
chore: autopublish 2024-01-17T16:01:49Z
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 17, 2024
1 parent f373d87 commit 7b79df9
Show file tree
Hide file tree
Showing 69 changed files with 1,082 additions and 343 deletions.
39 changes: 30 additions & 9 deletions dist/barline_chooser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1808,18 +1808,27 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
local methods = class.Methods
local private = setmetatable({}, {__mode = "k"})
local function create_control(self, func, num_args, ...)
local control = self["Create" .. func .. "__"](self, ...)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
local result = self["Create" .. func .. "__"](self, ...)
local function add_control(control)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
end
if func == "RadioButtonGroup" then
for control in each(result) do
add_control(control)
end
else
add_control(result)
end
local control_name = select(num_args + 1, ...)
if control_name then
control_name = type(control_name) == "userdata" and control_name.LuaString or control_name
if private[self].NamedControls[control_name] then
error("A control is already registered with the name '" .. control_name .. "'", 2)
end
private[self].NamedControls[control_name] = control
private[self].NamedControls[control_name] = result
end
return control
return result
end

function class:Init()
Expand Down Expand Up @@ -1853,12 +1862,24 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
for num_args, ctrl_types in pairs({
[0] = {"CancelButton", "OkButton",},
[2] = {"Button", "Checkbox", "CloseButton", "DataList", "Edit", "TextEditor",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown", "ComboBox",
},
[3] = {"HorizontalLine", "VerticalLine",},
[3] = {"HorizontalLine", "VerticalLine", "RadioButtonGroup"},
}) do
for _, control_type in pairs(ctrl_types) do
if not finale.FCCustomWindow.__class["Create" .. control_type] then
local type_exists = false
if finenv.IsRGPLua then
type_exists = finale.FCCustomWindow.__class["Create" .. control_type]
else

for k, _ in pairs(finale.FCCustomWindow.__class) do
if tostring(k) == "Create" .. control_type then
type_exists = true
break
end
end
end
if not type_exists then
goto continue
end
methods["Create" .. control_type] = function(self, ...)
Expand Down Expand Up @@ -2843,7 +2864,7 @@ package.preload["mixin.FCXCtrlUpDown"] = package.preload["mixin.FCXCtrlUpDown"]

if private[self].AlignWhenMoving then

local num_steps = tonumber(tostring(value / step_def.value))
local num_steps = tonumber(tostring(value / step_def.value)) or 0
if num_steps ~= math.floor(num_steps) then
if delta > 0 then
value = math.ceil(num_steps) * step_def.value
Expand Down
39 changes: 30 additions & 9 deletions dist/cross_staff_offset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1902,18 +1902,27 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
local methods = class.Methods
local private = setmetatable({}, {__mode = "k"})
local function create_control(self, func, num_args, ...)
local control = self["Create" .. func .. "__"](self, ...)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
local result = self["Create" .. func .. "__"](self, ...)
local function add_control(control)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
end
if func == "RadioButtonGroup" then
for control in each(result) do
add_control(control)
end
else
add_control(result)
end
local control_name = select(num_args + 1, ...)
if control_name then
control_name = type(control_name) == "userdata" and control_name.LuaString or control_name
if private[self].NamedControls[control_name] then
error("A control is already registered with the name '" .. control_name .. "'", 2)
end
private[self].NamedControls[control_name] = control
private[self].NamedControls[control_name] = result
end
return control
return result
end

function class:Init()
Expand Down Expand Up @@ -1947,12 +1956,24 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
for num_args, ctrl_types in pairs({
[0] = {"CancelButton", "OkButton",},
[2] = {"Button", "Checkbox", "CloseButton", "DataList", "Edit", "TextEditor",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown", "ComboBox",
},
[3] = {"HorizontalLine", "VerticalLine",},
[3] = {"HorizontalLine", "VerticalLine", "RadioButtonGroup"},
}) do
for _, control_type in pairs(ctrl_types) do
if not finale.FCCustomWindow.__class["Create" .. control_type] then
local type_exists = false
if finenv.IsRGPLua then
type_exists = finale.FCCustomWindow.__class["Create" .. control_type]
else

for k, _ in pairs(finale.FCCustomWindow.__class) do
if tostring(k) == "Create" .. control_type then
type_exists = true
break
end
end
end
if not type_exists then
goto continue
end
methods["Create" .. control_type] = function(self, ...)
Expand Down Expand Up @@ -2937,7 +2958,7 @@ package.preload["mixin.FCXCtrlUpDown"] = package.preload["mixin.FCXCtrlUpDown"]

if private[self].AlignWhenMoving then

local num_steps = tonumber(tostring(value / step_def.value))
local num_steps = tonumber(tostring(value / step_def.value)) or 0
if num_steps ~= math.floor(num_steps) then
if delta > 0 then
value = math.ceil(num_steps) * step_def.value
Expand Down
39 changes: 30 additions & 9 deletions dist/cue_notes_create.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2134,18 +2134,27 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
local methods = class.Methods
local private = setmetatable({}, {__mode = "k"})
local function create_control(self, func, num_args, ...)
local control = self["Create" .. func .. "__"](self, ...)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
local result = self["Create" .. func .. "__"](self, ...)
local function add_control(control)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
end
if func == "RadioButtonGroup" then
for control in each(result) do
add_control(control)
end
else
add_control(result)
end
local control_name = select(num_args + 1, ...)
if control_name then
control_name = type(control_name) == "userdata" and control_name.LuaString or control_name
if private[self].NamedControls[control_name] then
error("A control is already registered with the name '" .. control_name .. "'", 2)
end
private[self].NamedControls[control_name] = control
private[self].NamedControls[control_name] = result
end
return control
return result
end

function class:Init()
Expand Down Expand Up @@ -2179,12 +2188,24 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
for num_args, ctrl_types in pairs({
[0] = {"CancelButton", "OkButton",},
[2] = {"Button", "Checkbox", "CloseButton", "DataList", "Edit", "TextEditor",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown", "ComboBox",
},
[3] = {"HorizontalLine", "VerticalLine",},
[3] = {"HorizontalLine", "VerticalLine", "RadioButtonGroup"},
}) do
for _, control_type in pairs(ctrl_types) do
if not finale.FCCustomWindow.__class["Create" .. control_type] then
local type_exists = false
if finenv.IsRGPLua then
type_exists = finale.FCCustomWindow.__class["Create" .. control_type]
else

for k, _ in pairs(finale.FCCustomWindow.__class) do
if tostring(k) == "Create" .. control_type then
type_exists = true
break
end
end
end
if not type_exists then
goto continue
end
methods["Create" .. control_type] = function(self, ...)
Expand Down Expand Up @@ -3169,7 +3190,7 @@ package.preload["mixin.FCXCtrlUpDown"] = package.preload["mixin.FCXCtrlUpDown"]

if private[self].AlignWhenMoving then

local num_steps = tonumber(tostring(value / step_def.value))
local num_steps = tonumber(tostring(value / step_def.value)) or 0
if num_steps ~= math.floor(num_steps) then
if delta > 0 then
value = math.ceil(num_steps) * step_def.value
Expand Down
39 changes: 30 additions & 9 deletions dist/cue_notes_overlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1902,18 +1902,27 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
local methods = class.Methods
local private = setmetatable({}, {__mode = "k"})
local function create_control(self, func, num_args, ...)
local control = self["Create" .. func .. "__"](self, ...)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
local result = self["Create" .. func .. "__"](self, ...)
local function add_control(control)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
end
if func == "RadioButtonGroup" then
for control in each(result) do
add_control(control)
end
else
add_control(result)
end
local control_name = select(num_args + 1, ...)
if control_name then
control_name = type(control_name) == "userdata" and control_name.LuaString or control_name
if private[self].NamedControls[control_name] then
error("A control is already registered with the name '" .. control_name .. "'", 2)
end
private[self].NamedControls[control_name] = control
private[self].NamedControls[control_name] = result
end
return control
return result
end

function class:Init()
Expand Down Expand Up @@ -1947,12 +1956,24 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
for num_args, ctrl_types in pairs({
[0] = {"CancelButton", "OkButton",},
[2] = {"Button", "Checkbox", "CloseButton", "DataList", "Edit", "TextEditor",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown", "ComboBox",
},
[3] = {"HorizontalLine", "VerticalLine",},
[3] = {"HorizontalLine", "VerticalLine", "RadioButtonGroup"},
}) do
for _, control_type in pairs(ctrl_types) do
if not finale.FCCustomWindow.__class["Create" .. control_type] then
local type_exists = false
if finenv.IsRGPLua then
type_exists = finale.FCCustomWindow.__class["Create" .. control_type]
else

for k, _ in pairs(finale.FCCustomWindow.__class) do
if tostring(k) == "Create" .. control_type then
type_exists = true
break
end
end
end
if not type_exists then
goto continue
end
methods["Create" .. control_type] = function(self, ...)
Expand Down Expand Up @@ -2937,7 +2958,7 @@ package.preload["mixin.FCXCtrlUpDown"] = package.preload["mixin.FCXCtrlUpDown"]

if private[self].AlignWhenMoving then

local num_steps = tonumber(tostring(value / step_def.value))
local num_steps = tonumber(tostring(value / step_def.value)) or 0
if num_steps ~= math.floor(num_steps) then
if delta > 0 then
value = math.ceil(num_steps) * step_def.value
Expand Down
39 changes: 30 additions & 9 deletions dist/deletion_chooser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1808,18 +1808,27 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
local methods = class.Methods
local private = setmetatable({}, {__mode = "k"})
local function create_control(self, func, num_args, ...)
local control = self["Create" .. func .. "__"](self, ...)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
local result = self["Create" .. func .. "__"](self, ...)
local function add_control(control)
private[self].Controls[control:GetControlID()] = control
control:RegisterParent(self)
end
if func == "RadioButtonGroup" then
for control in each(result) do
add_control(control)
end
else
add_control(result)
end
local control_name = select(num_args + 1, ...)
if control_name then
control_name = type(control_name) == "userdata" and control_name.LuaString or control_name
if private[self].NamedControls[control_name] then
error("A control is already registered with the name '" .. control_name .. "'", 2)
end
private[self].NamedControls[control_name] = control
private[self].NamedControls[control_name] = result
end
return control
return result
end

function class:Init()
Expand Down Expand Up @@ -1853,12 +1862,24 @@ package.preload["mixin.FCMCustomWindow"] = package.preload["mixin.FCMCustomWindo
for num_args, ctrl_types in pairs({
[0] = {"CancelButton", "OkButton",},
[2] = {"Button", "Checkbox", "CloseButton", "DataList", "Edit", "TextEditor",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown",
"ListBox", "Popup", "Slider", "Static", "Switcher", "Tree", "UpDown", "ComboBox",
},
[3] = {"HorizontalLine", "VerticalLine",},
[3] = {"HorizontalLine", "VerticalLine", "RadioButtonGroup"},
}) do
for _, control_type in pairs(ctrl_types) do
if not finale.FCCustomWindow.__class["Create" .. control_type] then
local type_exists = false
if finenv.IsRGPLua then
type_exists = finale.FCCustomWindow.__class["Create" .. control_type]
else

for k, _ in pairs(finale.FCCustomWindow.__class) do
if tostring(k) == "Create" .. control_type then
type_exists = true
break
end
end
end
if not type_exists then
goto continue
end
methods["Create" .. control_type] = function(self, ...)
Expand Down Expand Up @@ -2843,7 +2864,7 @@ package.preload["mixin.FCXCtrlUpDown"] = package.preload["mixin.FCXCtrlUpDown"]

if private[self].AlignWhenMoving then

local num_steps = tonumber(tostring(value / step_def.value))
local num_steps = tonumber(tostring(value / step_def.value)) or 0
if num_steps ~= math.floor(num_steps) then
if delta > 0 then
value = math.ceil(num_steps) * step_def.value
Expand Down
Loading

0 comments on commit 7b79df9

Please sign in to comment.