Getting some functionality in switching slides

This commit is contained in:
Chris Cochrun 2022-03-11 07:04:23 -06:00
parent 1fa5aa8a0a
commit cc8f447166
7 changed files with 72 additions and 4 deletions

View file

@ -155,7 +155,8 @@ Controls.Page {
/* showPassiveNotification("used to be: " + presentation.text); */
presentation.text = text;
/* showPassiveNotification("next"); */
presentationSlide.text = text;
if (slideItem)
slideItem.text = text;
/* showPassiveNotification("last"); */
}
@ -166,13 +167,31 @@ Controls.Page {
if (type == "image") {
presentation.vidbackground = "";
presentation.imagebackground = background;
if (slideItem) {
slideItem.videoSource = "";
slideItem.stopVideo();
slideItem.imageSource = background;
}
} else {
presentation.imagebackground = "";
presentation.vidbackground = background;
presentation.loadVideo()
if (slideItem) {
slideItem.imageSource = "";
slideItem.videoSource = background;
slideItem.loadVideo()
}
}
}
function changeSlideNext() {
showPassiveNotification("next slide please")
}
function changeSlidePrevious() {
showPassiveNotification("previous slide please")
}
function editSwitch(edit) {
if (edit)
mainPageArea.push(songEditorComp, Controls.StackView.Immediate)