| 2645 | } |
| 2646 | |
| 2647 | drawTextButtons(){ |
| 2648 | /* |
| 2649 | this.textbuttonContainer.addChild(new Button("nexttext",PIXI.Texture.from('images/buttons/next.png'),layout.NEXTSLIDE_X,layout.NEXTSLIDE_Y,true)); |
| 2650 | this.textbuttonContainer.addChild(new Button("prevtext",PIXI.Texture.from('images/buttons/back.png'), layout.PREVSLIDE_X,layout.NEXTSLIDE_Y,false)); |
| 2651 | |
| 2652 | var slide = this; |
| 2653 | if(slide.textContainer.children.length<=1){ |
| 2654 | this.textbuttonContainer.getChildByName("nexttext").visible=false; |
| 2655 | } |
| 2656 | |
| 2657 | this.textbuttonContainer.getChildByName("nexttext").on('click', function(e){ |
| 2658 | slide.textcount++; |
| 2659 | slide.textContainer.getChildAt(slide.textcount).visible=true; |
| 2660 | |
| 2661 | if(slide.textcount==slide.textContainer.children.length-1){ |
| 2662 | this.visible=false; |
| 2663 | } |
| 2664 | |
| 2665 | if(slide.textcount>=1){ |
| 2666 | slide.textbuttonContainer.getChildByName("prevtext").visible=true; |
| 2667 | } |
| 2668 | }); |
| 2669 | |
| 2670 | this.textbuttonContainer.getChildByName("prevtext").on('click', function(e){ |
| 2671 | slide.textContainer.getChildAt(slide.textcount).visible=false; |
| 2672 | slide.textcount--; |
| 2673 | |
| 2674 | if(slide.textcount<1){ |
| 2675 | slide.textbuttonContainer.getChildByName("prevtext").visible=false; |
| 2676 | } |
| 2677 | if(slide.textcount<slide.textContainer.children.length-1){ |
| 2678 | slide.textbuttonContainer.getChildByName("nexttext").visible=true; |
| 2679 | } |
| 2680 | });*/ |
| 2681 | } |
| 2682 | |
| 2683 | /* |
| 2684 | var textInstruct = [ |