Skip to content

Commit

Permalink
MIDI -> Items 2.4.3
Browse files Browse the repository at this point in the history
 - fixed missed formats variable in the object.
- Added ImGui_Script.lua Template.
  • Loading branch information
Zly-u committed Feb 17, 2024
1 parent fcd2ae0 commit 60198b6
Show file tree
Hide file tree
Showing 4 changed files with 414 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
index.xml
.idea
.idea
_Tests
16 changes: 12 additions & 4 deletions MIDI/MIDI_To_Items/Zly_MIDI_To_Items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ local ch10_drum_names = {
--[[===================================================]]--

local M2I = {
version = "2.4.2",
version = "2.4.3",

sources = {},
chords_channels = {},
Expand Down Expand Up @@ -405,7 +405,13 @@ local M2I = {
ImGui.PushID(_ctx, index)
--if ImGui.Button(_ctx, "Set") then
if ImGui.SmallButton(_ctx, "Set") then
local retval, fileNames = JS.Dialog_BrowseForOpenFiles("Source to use for Media Items", os.getenv("HOMEPATH") or "", "", formats_string, false)
local retval, fileNames = JS.Dialog_BrowseForOpenFiles(
"Source to use for Media Items",
os.getenv("HOMEPATH") or "",
"",
self.formats_string,
false
)
if retval and fileNames ~= "" then
self.sources[index] = fileNames
end
Expand Down Expand Up @@ -989,8 +995,10 @@ function M2I:UI(ctx)
if ImGui.SmallButton(ctx, "Set") then
local retval, fileNames = JS.Dialog_BrowseForOpenFiles(
"Source to use for all Channels",
os.getenv("HOMEPATH") or "", "",
self.formats_string, false
os.getenv("HOMEPATH") or "",
"",
self.formats_string,
false
)
if retval and fileNames ~= "" then
for i = 1, 16 do
Expand Down
4 changes: 2 additions & 2 deletions MIDI/meta_MIDI_To_Items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@metapackage
@description MIDI To Items Converter
@author Zly
@version 2.4.2.1
@version 2.4.3
@provides
[main] .\MIDI_To_Items\Zly_MIDI_To_Items.lua
@about
Expand All @@ -24,5 +24,5 @@
@donation
Donate https://boosty.to/zly
@changelog
- Visual version change to the appropriate one.
- Fixed missed formats variable in the object.
--]]
Loading

0 comments on commit 60198b6

Please sign in to comment.