Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: robingravel on December 10, 2003, 08:20:10 PM

Title: about Print command
Post by: robingravel on December 10, 2003, 08:20:10 PM
There is a way to use Print at position x and y anywhere on the screen like Print in agi?


Robin Gravel
Title: Re:about Print command
Post by: Brian Provinciano on December 10, 2003, 09:45:44 PM
Yes. Just use the #at parameter. You can see all available options, just look in Controls.sc. You can also add your own.

eg.
...
         (case #title
            ++paramCnt
            (send hDialog:text(params[paramCnt]))
         )
         (case #at
            = diagX params[++paramCnt]
            = diagY params[++paramCnt]
         )
         (case #draw
            Animate(
               (send gCast:elements)
               0
            )
         )
...
Title: Re:about Print command
Post by: robingravel on December 10, 2003, 11:00:58 PM
Thanks Brian

It works.


Robin Gravel