| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		ShakeyAir
 
 
 
  Joined: 27 Apr 2004 Posts: 93
 
  | 
		
			
				 Posted: Sun Dec 26, 2010 9:31 am    Post subject: clipping a slice | 
				     | 
			 
			
				
  | 
			 
			
				particularly a text slice. is there a way to do this?
 
 
by pixel would be amazing, by line would work just fine.
 
 
as in:
 
 
"i'm a text slice and i think i'm so cool
 
because you can read me and theres
 
no way to shut me up lalalalalalalala"
 
 
showing up as:
 
 
"i'm a text slice and i think i'm so cool
 
because you can read me and theres"
 
 
or:
 
 
"because you can read me and theres
 
no way to shut me up lalalalalalalala"
 
 
while still having the full text stored inside the slice? | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		TMC On the Verge of Insanity
 
 
 
  Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
  | 
		
			
				 Posted: Sun Dec 26, 2010 2:38 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				You can clip slices to a rectangle. I'm also working on some line-by-line scrolling features for textslices. To clip a slice, put it in a container slice of the correct size and position, and set the container to clip with 'set slice clipping'
 
 
For example, to hide the top 10 pixels (one line) of a text slice, parent it to a sufficiently large container slice set to clip, and offset it at 0,-10 so that the top 10 pixels are over the edge of the container. _________________ "It is so great it is insanely great." | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		ShakeyAir
 
 
 
  Joined: 27 Apr 2004 Posts: 93
 
  | 
		
			
				 Posted: Tue Dec 28, 2010 12:33 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				awesome. thanks!
 
 
EDIT:while im at it...
 
 
is there still no way to check text box conditionals from a plotscript?
 
 
ive gotten around it before but it would be much easier if i didn't have to... | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		TMC On the Verge of Insanity
 
 
 
  Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
  | 
		
			
				 Posted: Tue Dec 28, 2010 10:58 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				Nope.
 
 
We have some plans for improvements to Textbox conditionals; after the next release would be good time to work on them. It would also be a good time to add some script commands for them. _________________ "It is so great it is insanely great." | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |