updating text on nextslideaction
This commit is contained in:
parent
25b07dbab9
commit
db73165b63
1 changed files with 15 additions and 15 deletions
|
@ -125,25 +125,25 @@ Item {
|
||||||
print(textIndex);
|
print(textIndex);
|
||||||
if (itemType === "song") {
|
if (itemType === "song") {
|
||||||
if (textIndex === 0) {
|
if (textIndex === 0) {
|
||||||
previewSlide.text = root.text[textIndex];
|
SlideObject.setText(root.text[textIndex]);
|
||||||
print(root.text[textIndex]);
|
print(root.text[textIndex]);
|
||||||
textIndex++;
|
textIndex++;
|
||||||
} else if (textIndex < root.text.length) {
|
} else if (textIndex < root.text.length) {
|
||||||
previewSlide.text = root.text[textIndex];
|
SlideObject.setText(root.text[textIndex]);
|
||||||
print(root.text[textIndex]);
|
print(root.text[textIndex]);
|
||||||
textIndex++;
|
textIndex++;
|
||||||
} else {
|
} else {
|
||||||
print("Next slide time");
|
print("Next slide time");
|
||||||
textIndex = 0;
|
textIndex = 0;
|
||||||
/* clearText(); */
|
clearText();
|
||||||
nextSlide();
|
nextSlide();
|
||||||
}
|
}
|
||||||
} else if (itemType === "video") {
|
} else if (itemType === "video") {
|
||||||
/* clearText(); */
|
clearText();
|
||||||
nextSlide();
|
nextSlide();
|
||||||
}
|
}
|
||||||
else if (itemType === "image") {
|
else if (itemType === "image") {
|
||||||
/* clearText(); */
|
clearText();
|
||||||
nextSlide();
|
nextSlide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -157,19 +157,19 @@ Item {
|
||||||
print(textIndex);
|
print(textIndex);
|
||||||
if (itemType === "song") {
|
if (itemType === "song") {
|
||||||
if (textIndex === 0) {
|
if (textIndex === 0) {
|
||||||
/* clearText(); */
|
clearText();
|
||||||
nextSlide();
|
nextSlide();
|
||||||
} else if (textIndex <= root.text.length) {
|
} else if (textIndex <= root.text.length) {
|
||||||
previewSlide.text = root.text[textIndex];
|
SlideObject.setText(root.text[textIndex]);
|
||||||
print(root.text[textIndex]);
|
print(root.text[textIndex]);
|
||||||
--textIndex;
|
--textIndex;
|
||||||
}
|
}
|
||||||
} else if (itemType === "video") {
|
} else if (itemType === "video") {
|
||||||
/* clearText(); */
|
clearText();
|
||||||
previousSlide();
|
previousSlide();
|
||||||
}
|
}
|
||||||
else if (itemType === "image") {
|
else if (itemType === "image") {
|
||||||
/* clearText(); */
|
clearText();
|
||||||
previousSlide();
|
previousSlide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -181,18 +181,18 @@ Item {
|
||||||
|
|
||||||
function changeSlide() {
|
function changeSlide() {
|
||||||
if (itemType === "song") {
|
if (itemType === "song") {
|
||||||
previewSlide.text = root.text[textIndex];
|
SlideObject.setText(root.text[textIndex]);
|
||||||
print(root.text[textIndex]);
|
print(root.text[textIndex]);
|
||||||
textIndex++;
|
textIndex++;
|
||||||
} else if (itemType === "video") {
|
} else if (itemType === "video") {
|
||||||
/* clearText(); */
|
clearText();
|
||||||
}
|
}
|
||||||
else if (itemType === "image") {
|
else if (itemType === "image") {
|
||||||
/* clearText(); */
|
clearText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* function clearText() { */
|
function clearText() {
|
||||||
/* previewSlide.text = ""; */
|
SlideObject.setText("");
|
||||||
/* } */
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue