Notifications
Clear all

[Closed] On Screen Message Display Tool

i found my own resourcewasting way of doin it


fn ViewPortText text pos: count: interval: = (

	rollout test "" (
		local text=""

		local timeToDisplay=7

		local textPos = [10,((getMAXWindowpos())+((getMAXWindowSize())/2+100))[2],0]

		local interval = 1000
		local ticks = 0
		timer clock interval:0001


		fn drawtext = (
			completeRedraw() ;

			if test.ticks <= (timeToDisplay) then (
				gw.wtext (test.textPos-[0,75,0]+[0,(10*test.ticks),0]) test.text color:((color 250 150 50)/test.ticks)
				gw.enlargeUpdateRect #whole ; gw.updateScreen()
			)else(
				test.clock.active=false
				destroydialog test
			)
		)

		on test open do (
			drawtext()

		)
		on test close do (
			completeRedraw() ;
		)

		on clock tick do (
			if ticks == 0 do clock.interval=interval
			ticks += 1
			drawtext()
		)

	)
	createdialog test 50 0 -999999999 -999999999

	test.text=text as string

	if pos != unsupplied do (
		test.textPos=[(pos[1]),(pos[2]),0]
	)
	if count != unsupplied do (
		test.timeToDisplay=count as integer
	)
	if interval != unsupplied do (
		test.interval=interval as Integer
	)
	OK
)

ViewPortText <String> [count:Integer] [Interval:Integer (msec.)] [pos:Point2 ]


Ah, the tool to smack animators on a distance:D I do recall the talk we had about that:P Good stuff, but I do get a broken link atm. Deffinately want to have a look at it. Please let us know when you can fix it:)

 PEN

If you want this script it is back up now.

 PEN

Interestingly enough it isn’t working in 2008, draws the box and doesn’t throw and error but I don’t see any text. I believe that I wrote it in 2008. Does it work for any one else?

 PEN

Disregard, I’m an idiot, I must have been messing with it some before saving it last and had the text commented out:shrug:

Page 3 / 3