Skip to content

Commit

Permalink
Release Track icon selector v1.07 (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoranKovac authored Oct 3, 2024
1 parent 13aa0fb commit 0e57064
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Tracks/reapertips_Track icon selector.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
-- @description Track icon selector
-- @author Reapertips & Sexan
-- @version 1.06
-- @version 1.07
-- @changelog
-- Add traceback report
-- Add padding whitespaces into name size calculation (to keep UI as it was)
-- Show Console message with unsupported image path
-- @provides
-- reatips_Track icon selector/Menu.png
-- reatips_Track icon selector/Reset.png
Expand Down Expand Up @@ -363,7 +362,9 @@ local function PngSelector(button_size)

imgui.PushID(ctx, n)
if not imgui.ValidatePtr(FILTERED_PNG[n + 1].img_obj, 'ImGui_Image*') then
FILTERED_PNG[n + 1].img_obj = imgui.CreateImage(image)
if not pcall(function() FILTERED_PNG[n + 1].img_obj = imgui.CreateImage(image) end) then
r.ShowConsoleMsg("Unsupported image : " .. image .. "\n\n")
end
end

if imgui.ImageButton(ctx, "##png_select", FILTERED_PNG[n + 1].img_obj, button_size, button_size, 0, 0, 1, 1) then
Expand Down

0 comments on commit 0e57064

Please sign in to comment.