Glimmr Canvas Editor

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Tabs

    A tab is a kind of sprite. The display status of a tab is usually g-active. The graphlink status of a tab is usually g-active. The associated canvas of a tab is the control-canvas. The display-layer is 3.

    A tab has a list of g-elements called the members. [Used to turn all of the UI elements associated with a tab on or off at once.]

    A tab-background is a kind of UI-element. The display status of a tab-background is g-active. The graphlink status is g-inactive. The origin is {22, 12}. The associated canvas is the control-canvas. The display-layer is 1.

    The activated background layer is a number that varies. The activated background layer is 2. [This is a global variable containing the display layer to be used for an active tab.]
    The inactivated background layer is a number that varies. The inactivated background layer is 1.

    Some tab-backgrounds are defined by the Table of Tab Backgrounds.

    Table of Tab Backgrounds
    sprite  image-ID  active-state  inactive-state  
    Select_bkgd  Figure of Select Bkgd Inactive  Figure of Select Bkgd  Figure of Select Bkgd Inactive  
    Scale_bkgd  Figure of Scale Bkgd Inactive  Figure of Scale Bkgd  Figure of Scale Bkgd Inactive  
    Move_bkgd  Figure of Move Bkgd Inactive  Figure of Move Bkgd  Figure of Move Bkgd Inactive  


    A tab has a tab-background called the underlayment.

    The activated tab layer is a number that varies. The activated tab layer is 4. [This is a global variable containing the display layer to be used for an active tab.]
    The inactivated tab layer is a number that varies. The inactivated tab layer is 3.

    To decide which tab is the current tab:
        repeat with item running through the list of tabs:
            if the display-layer of item is the activated tab layer, decide on item;
        decide on Select_tab.

    Some tabs are defined by the Table of Tab-Sprites.

    Table of Tab-Sprites
    sprite  image-ID  linked replacement-command  origin  underlayment  
    Select_tab  Figure of Select Tab  "SELECT MODE"  {251, 558}  Select_bkgd  
    Scale_tab  Figure of Scale Tab  "SCALE MODE"  {411, 558}  Scale_bkgd  
    Move_tab  Figure of Move Tab  "MOVE MODE"  {332, 558}  Move_bkgd  


    The display-layer of Move_tab is usually 4. [Sets the tab that will be activated on startup.]