Skip to content

Commit

Permalink
Update slideshow_welcome.lua
Browse files Browse the repository at this point in the history
Blätterpfeile unterschiedlich
  • Loading branch information
rstockm committed Mar 11, 2021
1 parent 88c6fb1 commit 49d14c2
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Scripts/Ultraschall_Slideshows/slideshow_welcome.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,21 @@ function buildGui(slide_number)

table.insert(GUI.elms, picture)


-----------------------------------------------------------------
-- Blätterpfeile je nach OS unterschiedlich
-----------------------------------------------------------------

os = reaper.GetOS()
if string.match(os, "OS") then -- unter Windiows Klammern statt Pfeile nehmen
arrow1 = ""
arrow2 = ""
else
arrow1 = " <"
arrow2 = " >"
end


-----------------------------------------------------------------
-- Zurück-Button
-----------------------------------------------------------------
Expand All @@ -129,7 +144,7 @@ function buildGui(slide_number)

previous_slide_number = slide_number -1

button_settings = GUI.Btn:new(555, 663, 35, 39, "", buildGui, previous_slide_number)
button_settings = GUI.Btn:new(555, 663, 35, 39, arrow1, buildGui, previous_slide_number)
table.insert(GUI.elms, button_settings)

end
Expand All @@ -141,7 +156,7 @@ function buildGui(slide_number)
if slide_number ~= #slideshow_table then

next_slide_number = slide_number +1
button_settings = GUI.Btn:new(592, 663, 35, 40, "", buildGui, next_slide_number)
button_settings = GUI.Btn:new(592, 663, 35, 40, arrow2, buildGui, next_slide_number)
table.insert(GUI.elms, button_settings)

else
Expand Down

0 comments on commit 49d14c2

Please sign in to comment.