[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]

LessonButton

inherits from Button

Object <- Viewable <- Stamp <- Button <- LessonButton



Operations

Get list of all operations

Action


Attributes

Get list of all attributes

Lesson
ShouldCloseWindow
UseScaledText


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
HasBorder: border: Border
LessonButton: lesson: LessonStepList
leapTo: Object


Instance template

instance LessonButton 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;
         border: nilObject;
         lesson: nilObject;
         leapTo: nilObject;
end instance;

Class definition

Define Class LessonButton;
    inherits from Button;

    field lesson:       LessonStepList, getter, setter; 
        //  the lesson called by this button
    field leapTo:       Object, weak;                           
        //  scene or card to jump to before starting lesson (usually nilObject)

    attribute Lesson:               LessonStepList;
    attribute ShouldCloseWindow:    Boolean, readOnly;      
        //  if true, close enclosing window (if any) before starting lesson; true at this level
    overrides Action;                                       
        //  start the lesson
#ifdef SCALED_SCREEN
    overrides UseScaledText;
#endif
end class;