[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

MagicHat

inherits from ControlBarGadget

... <- Viewable <- Stamp <- Gadget <- ControlBarGadget <- MagicHat



Operations

Get list of all operations

Class MagicHat defines no new operations.


Attributes

Get list of all attributes

AuthoringMode


Fields

Field Type
Viewable: superview: Viewable
relativeOrigin: Dot
contentSize: Dot
viewFlags: Flags
labelStyle: TextStyle
color: Unsigned
altColor: Unsigned
shadow: Shadow
sound: Playable
Stamp: image: Image
Gadget: target: Object
canSwallow: Boolean
pullOut: Boolean
pullOutCopy: Boolean
showOccupied: Boolean
useStarburst: Boolean
setTarget: Boolean
useScaledText: Boolean
acceptTools: Boolean
acceptStationery: Boolean
ControlBarGadget: preferredSlot: Unsigned
MagicHat: images: ObjectList


Instance template

instance MagicHat tag;
 relativeOrigin: <0.0,0.0>;
    contentSize: <0.0,0.0>;
      viewFlags: 0x00000000;
     labelStyle: nilObject;
          color: 0;
       altColor: 0;
         shadow: nilObject;
          sound: nilObject;
          image: nilObject;
         target: nilObject;
     canSwallow: false;
        pullOut: false;
    pullOutCopy: false;
   showOccupied: false;
   useStarburst: false;
      setTarget: false;
  useScaledText: false;
    acceptTools: false;
acceptStationery: false;
  preferredSlot: 0;
         images: nilObject;
end instance;

Class definition

 
 
Define Class MagicHat;
    inherits from ControlBarGadget;

    field images: ObjectList;
        // list of two images, one for normal mode and one for authoring mode

    overrides SetAuthoringMode;
        // if authoring mode is turning on, sets self's image to be 2nd image in images list;
        // else sets self's image to be 1st image in images list
end class;