Back Previous Next


Linguist graphics package - show

Syntax:

   show {stage}
   show [view {n} of] {actor}
   show {speechbubble} {text}
      [at {position}]
      [below/above]
      [right/left]
      [for {duration}]
   show html {url} using {browser}

Keyword handler:

   linguist.graphics.keyword.GKShow.class

Runtime handler(s):

   linguist.graphics.handler.GHShow.class

Function:

The first form makes a stage visible. See also hide.

The form show [view {n} of] {actor} causes the given actor to show the specified view of itself. Views are used to do simple animation, by cycling through a set of views rapidly enough to give the impression of smooth motion.

The show {speechbubble} form activates a speech bubble, causing it to display its message at the requested position for the given duration. If the duration is zero the bubble will remain until explicitly hidden or until another show is called on the same bubble. The position is that relative to the top left of the actor that the bubble is tracking.

The show html form loads an HTML document into a browser. You can provide a full URL or simply a local file name.

Example(s):

   show view 1 of Button2
   show Bubble "Feed me!" at 35 24 below right for 10 seconds
   show html "index.html" using MainTextPanel


Back Previous Next